home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / os2 / programm / 7321 < prev    next >
Encoding:
Text File  |  1993-01-05  |  1.2 KB  |  31 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!spool.mu.edu!umn.edu!csus.edu!netcom.com!daveb
  3. From: daveb@netcom.com (Dave Briccetti)
  4. Subject: Re: Creating windows with WinCreateStdWindow
  5. Message-ID: <1993Jan5.070158.1213@netcom.com>
  6. Organization: Dave Briccetti & Assoc., OS/2 Consulting
  7. References: <93004.225626U09046@uicvm.uic.edu>
  8. Date: Tue, 5 Jan 1993 07:01:58 GMT
  9. Lines: 20
  10.  
  11. U09046@uicvm.uic.edu (Bob Jackiewicz) writes:
  12. : I have a parent window defined. I then create child windows. Maybe 50%
  13. : of the time, however, the title bar of the child window is created 'under'
  14. : the menu bar of the parent window. That is, the child's title bar is
  15. : hidden under the parent's menu bar, or even further 'up.'
  16.  
  17. I assume you are creating the child window with WinCreateStdWindow.  Why
  18. not leave off the WS_VISIBLE style and the FCF_SHELLPOSITION frame control
  19. flag, and then position the window however you like (including maximized)
  20. with WinSetWindowPos.  Be sure to specify SWP_SHOW to make it visible.
  21.  
  22. Also, please be aware if you are using FCF_STANDARD that it includes
  23. FCF_SHELLPOSITION, so you may need to AND out that bit.
  24.  
  25. -- 
  26.  
  27. Dave Briccetti, Owner, Dave Briccetti & Associates
  28. OS/2 Developer/Consultant
  29. P.O. Box 1713
  30. Lafayette, CA  94549-7013
  31.