Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can I make a child window unmovable when I domodal from the parent window in a dialog based MFC application??

Can someone please suggest me, thanks in advance.
Posted
Comments
Richard MacCutchan 12-Apr-13 4:13am    
What child window are you talking about?

1 solution

To prevent the windows from moving, you can implement a handler for the WM_WINDOWPOSCHANGING message and modify the flags in the WINDOWPOS structure to set the SWP_NOMOVE flag so the x, y position is ignored.

See here for more details: http://msdn.microsoft.com/en-us/library/ms632653(v=vs.85).aspx[^]
 
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