Click here to Skip to main content
15,911,711 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear All,
How do I make a dialog box with fixed position.
And it can't be changed position by any user drag the dialog box.
But allow user to press the maxium buttom on the uper-right side of dialog.

EX.
if I want the dialog be created in the center of the desktop.
It can't be moved.
It's always at the center.
But when I press the maxium buttom, it can be enlarge to cover the desktop like all others did.
and can restore it by press it again.
But it will be back to the center.

Thanks!!
Posted

1 solution

You need to capture any WM_MOVE[^] and WM_SIZE[^] messages and override any changes that the user tries to make.
 
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