🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #3271

Re: Creating windows with WinCreateStdWindow

#3271
From: Dave Briccetti
Date: Tue, 05 Jan 1993 07:01
20 lines
1289 bytes
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
Technical Details
Message-ID: <1993Jan5.070158.1213@netcom.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!umn.edu!csus.edu!netcom.com!daveb
References: <93004.225626U09046@uicvm.uic.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer
Path: arc1-ca.pugleaf.net!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