The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: msmith on March 19, 2006, 08:34:12 PM

Title: Resizing window
Post by: msmith on March 19, 2006, 08:34:12 PM
After receiving the WM_SIZE, I do a SetWindowPos on the edit control which causes the edit control to "conform to the new windiw size. The problem is that the status bar stays where it was. What is the best way to cause the stausbar to move to the bottom of the new window?
Title: Re: Resizing window
Post by: anon on March 19, 2006, 08:47:19 PM

invoke MoveWindow,hStatusBar,0,0,0,0,TRUE

Always works for me.
Title: Re: Resizing window
Post by: msmith on March 19, 2006, 09:40:28 PM
Thank you anon.

Before I got your solution, I found i could make it work by destroying the statusbar and then recreating it.

I like your solution much better.