Link to home
Start Free TrialLog in
Avatar of cost
cost

asked on

Redraw after WM_SIZE

I have an mfc-application that I want to be able to resize, so whenever I get a WM_SIZE message  I recalculate the size of each control in the window. If I resize horizontally everything works fine, but if I resize vertically the window and the controlls are not repainted correctly. If I get a WM_PAINT message due to minimize or another window ontop it looks great, but how do I set the window to repaint automaticly as it does when resizing horizontally?

I know there are styles as CS_VREDRAW and CS_HREDRAW which should be set when registrating the class, but since mfc does that for me I have no clue in how to do this.

/ Andreas
ASKER CERTIFIED SOLUTION
Avatar of mnguyen021997
mnguyen021997

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial