Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
need to implement a functionality while changing window size (ez:dragging or minimizing or maximizing) need to call function with updated window width().
could you please help me if any function is there to call depends on window size changes.
vc++ mfc

What I have tried:

currently getting current window size width and drawing some text there but while changing window size the text is moving to some other place(because width is updating)
Posted
Updated 17-Apr-17 20:52pm

You need to respond to the WM_SIZE[^] and WM_MOVE[^] messages.
 
Share this answer
 
Override CWnd::OnSize[^] of your window class.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900