Win32Lib: Set Window Maximized / getWindowSize Questions
- Posted by Smith Ray <Ray.Smith at FUJITSU.COM.AU> Mar 22, 1999
- 522 views
Hi all, In Win32Lib: How do you set the window to Maximized when it opens. I have tried using WS_MAXIMIZE in the paramters but it doesn't seem to work - constant frmMain = create(Window, APP_NAME, 0, Default,Default,555,350, or_all({WS_SYSMENU, WS_DLGFRAME, WS_MINIMIZEBOX, WS_MAXIMIZEBOX, WS_MAXIMIZE})) Second question: How do I then get the WindowSize. As a test I used - rect = getWindowSize( frmMain ) printf(1, "x=%d, y=%d\n", {rect[1], rect[2]}) and ended up with x=-3, y=-3. Any responce will be very appreciated. Ray Smith