Re: Win32Lib: Must be a Flag
- Posted by cklester <cklester at yahoo.com> Aug 11, 2004
- 464 views
Don wrote: > procedure Window1_onResize (integer self, integer event, sequence > params)--params is > ( int style, int cx, int cy ) > -- showWindow(CWindow2,SW_MAX) > -- showWindow(CWindow2,SW_SHOWMAXIMIZED) > setRect( CWindow2, 0, 0, params[2], params[3], 1 ) > end procedure > setHandler( Window1, w32HResize, routine_id("Window1_onResize")) Using this method, the child window is no longer maximized. I want it to remain maximized. For example, run the code. Then, click the child's maximize button. Notice how you no longer see the border of the child. Then resize the parent. You'll notice that the child becomes restored (or whatever) such that you can see the border. It's no longer maximized. This: showWindow(CWindow2,SW_MAX) should actually do what I want, according to the Win32Lib docs... "Maximize but not activate the window." -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/