home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.os2.programmer
- Path: sparky!uunet!spool.mu.edu!umn.edu!csus.edu!netcom.com!daveb
- From: daveb@netcom.com (Dave Briccetti)
- Subject: Re: Creating windows with WinCreateStdWindow
- Message-ID: <1993Jan5.070158.1213@netcom.com>
- Organization: Dave Briccetti & Assoc., OS/2 Consulting
- References: <93004.225626U09046@uicvm.uic.edu>
- Date: Tue, 5 Jan 1993 07:01:58 GMT
- Lines: 20
-
- U09046@uicvm.uic.edu (Bob Jackiewicz) writes:
- : 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.'
-
- I assume you are creating the child window with WinCreateStdWindow. Why
- not leave off the WS_VISIBLE style and the FCF_SHELLPOSITION frame control
- flag, and then position the window however you like (including maximized)
- with WinSetWindowPos. Be sure to specify SWP_SHOW to make it visible.
-
- Also, please be aware if you are using FCF_STANDARD that it includes
- FCF_SHELLPOSITION, so you may need to AND out that bit.
-
- --
-
- Dave Briccetti, Owner, Dave Briccetti & Associates
- OS/2 Developer/Consultant
- P.O. Box 1713
- Lafayette, CA 94549-7013
-