Jump to content
  • Advertisement
Sign in to follow this  
Slug

Avoid a Dlg Box from being drag? How?

This topic is 4717 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
Why do you want this behavior? Anything that deviates from what is expected will piss off users, so an immobile dialog box is probably not something you should stive for without a real good reason.

CM

Share this post


Link to post
Share on other sites
No, for this special case, i just want to know how to do it.
That's it!

Share this post


Link to post
Share on other sites
Windows send a WM_MOVE message when they are moved. Just move the window to the deisred position whenever it gets moved.

Share this post


Link to post
Share on other sites
I would suggest a slight alteration to smack0007's idea. Instead of moving back just return that you handled the move and dont' do anything. Making sure not to pass on the move message of course.

You'll also want to do something similar for the sizeing messages.

Cheers
Chris

Share this post


Link to post
Share on other sites
You want the WM_MOVING message. You can set the coordinates of the drag box in that message, so just set it to the current location of the dialog and they should just see an undraggable outline (if they have the 'show contents while dragging' turned of, otherwise the window just won't move I think).

Share this post


Link to post
Share on other sites
You could do all those things with WM_MOVE, or create a Dialog box without a title bar... just as a POPUPWINDOW.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!