Click here to Skip to main content
15,749,039 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.
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:[^]
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