Sign in to follow this  
Slug

Avoid a Dlg Box from being drag? How?

Recommended Posts

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
Except that WM_MOVE is sent _AFTER_ the window is moved, so they'll be able to drag it around and when they let go it snaps back to the original position, which would probably be quite confusing compared to not letting them move it in the first place.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this