Article View: comp.os.os2.programmer
Article #3269Creating windows with WinCreateStdWindow
From: Bob Jackiewicz
Date: Tue, 05 Jan 1993 04:56
Date: Tue, 05 Jan 1993 04:56
21 lines
1542 bytes
1542 bytes
I have a parent window defined. I then create child windows. Maybe 50% of the time, however, the title bar of the child window is created 'under' the menu bar of the parent window. That is, the child's title bar is hidden under the parent's menu bar, or even further 'up.' Now, one way to take care of this is to call WinSetWindowPos with SWP_MAXIMIZE to maximize the window. However, when I go back to a non-maximized window, the title bar goes back to it's original position. Is there a way to take care of this initial position? Am I doomed to WinCreateWindow? On a related note, is there any way to create a maximized window with WinCreateStdWindow? It states in the online docs that all WS_ parameters affect the window style, except WS_MAXIMIZED and WS_MINMIZED (so why are they there??). Right now, I'm doing it as above, with WinSetWindowPos. Brought to you by the sick mind of University of Illinois at Chicago Bob Jackiewicz, writer of wrongs, BITNET: U09046@UICVM wronger of rights; not UIC. InterNet: U09046@uicvm.uic.edu Windows: From the people who brought you EDLIN!
Technical Details
Message-ID:
<93004.225626U09046@uicvm.uic.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!wupost!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!uicvm.uic.edu!u09046Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!wupost!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!uicvm.uic.edu!u09046 Organization: University of Illinois at Chicago Date: Monday, 4 Jan 1993 22:56:26 CST From: Bob Jackiewicz <U09046@uicvm.uic.edu> Message-ID: <93004.225626U09046@uicvm.uic.edu> Newsgroups: comp.os.os2.programmer Subject: Creating windows with WinCreateStdWindow Lines: 21