I have a control derived from COleControl. When loading this control , it calls OnSize, Within OnSize I am getting ClientRect area by calling GetClientRect and moving the control to the area got from GetClientRect.
First time when initializing the GetClientRect returns sizes in right and bottom. But next time when referesh happens, GetClientRect returns the area with bottom as 0. So I couldn't able to view the control.
Is there any way to get proper Client rect area in referesh also?
Or Any idea how this client rect size determined?