Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

creating an unmovable window

Status
Not open for further replies.

hadas

Programmer
Oct 30, 2002
3
DE
Hi,
I've created a dialog but I don't want the user to be able to move the dialog. How do I do it?
Thank you
Hadas
 
I do not know if there is an API for you to handle that.
Maybe you can subclass the window and handle the WM_WINDOWPOSCHANGING message ?
 
If you create the dialog so that it has no title bar and cannot be resized, then there is no way for the user to move it. You could still put a color band at the top so it sort of looks like a title bar.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top