Click here to Skip to main content
15,891,943 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,


how can I place the child window over on parent window.

when parent window the client window automatically move with parent window.

i can design my child window is MOdeless Dialog window

pls help me.
Posted
Updated 9-Feb-15 8:01am
v3

1 solution

Use GetClientRect to find the position and size of the parent. Use GetWindowRect to find the size of the child. Then from those values you can work out where to move the child window in relation to the parent.
 
Share this answer
 
Comments
Richard MacCutchan 10-Feb-15 4:06am    
Sample code for what? And I don't understand what you mean by Alt+Space; the user should always be able to move windows about the screen.
Member 11417637 10-Feb-15 4:10am    
thank you

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