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

capture of maximise event

Status
Not open for further replies.

shetlandbob

Programmer
Mar 9, 2004
528
GB
Does anyone know if you can capture an event maximise event?

Scenario:

I have a dialog control which I can resize, it has a number of controls on it which move around when the user resizes it. However if they resize it, to say have the available window, and then click the maximse button the controls are not located in the correct position??

Cheers
 
I handle the OnSizing function, where I alter the location of all the GUI controls.

Would it be better to put these in the WM_SIZE event? Then it would take care of the Maximise as well?

 
Yes, the wParam will be

SIZE_MAXHIDE
SIZE_MAXIMIZED
SIZE_MAXSHOW
SIZE_MINIMIZED
SIZE_RESTORED

Ion Filipski
1c.bmp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top