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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sizing a window

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hello all. My program spawns a thread that creates a dialog for displaying a graph. When the dialog is created, WM_SIZE is sent several times as the graph orients itself.

Inside my MFC OnSize event, I would like to be able to separate out any calls that come from the end-user using the mouse to resize from everything else.

So my question is...is there any way to tell that a size message has come from the mouse event of pulling a window wider?

Thanks for any help you can give!

 
It seems to me that since the messages are completely separate in the message pump, one event cannot be associated with the other.

Perhaps there's another solution if you can explain why you are trying to do this.

For one thing, you could set (or reset) an "initialize" flag after the window has been created and initially sized, to indicate to the OnSize() code in the future that you're done with that and want to do something different???
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top