My goal is to redraw some rectangle. So, during PF_Cmd_EVENT I call PF_InvalidateRect for the current context passing the rectangle I want to redraw. But after PF_Event_DO_CLICK and PF_Event_DRAG I always recieve PF_Event_DRAW event and context fully invalidated. What should I do to prevent fully invalidation of context after mouse events?