home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / os2 / programm / 7319 < prev    next >
Encoding:
Internet Message Format  |  1993-01-05  |  1.5 KB

  1. Path: sparky!uunet!spool.mu.edu!wupost!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!uicvm.uic.edu!u09046
  2. Organization: University of Illinois at Chicago
  3. Date: Monday, 4 Jan 1993 22:56:26 CST
  4. From: Bob Jackiewicz <U09046@uicvm.uic.edu>
  5. Message-ID: <93004.225626U09046@uicvm.uic.edu>
  6. Newsgroups: comp.os.os2.programmer
  7. Subject: Creating windows with WinCreateStdWindow
  8. Lines: 21
  9.  
  10. I have a parent window defined. I then create child windows. Maybe 50%
  11. of the time, however, the title bar of the child window is created 'under'
  12. the menu bar of the parent window. That is, the child's title bar is
  13. hidden under the parent's menu bar, or even further 'up.'
  14.  
  15.    Now, one way to take care of this is to call WinSetWindowPos with
  16. SWP_MAXIMIZE to maximize the window. However, when I go back to a
  17. non-maximized window, the title bar goes back to it's
  18. original position. Is there a way to take care of this initial position?
  19. Am I doomed to WinCreateWindow?
  20.  
  21. On a related note, is there any way to create a maximized window with
  22. WinCreateStdWindow? It states in the online docs that all WS_
  23. parameters affect the window style, except WS_MAXIMIZED and WS_MINMIZED
  24. (so why are they there??). Right now, I'm doing it as above, with
  25. WinSetWindowPos.
  26.  
  27.   Brought to you by the sick mind of      University of Illinois at Chicago
  28.   Bob Jackiewicz, writer of wrongs,                    BITNET: U09046@UICVM
  29.   wronger of rights; not UIC.                InterNet: U09046@uicvm.uic.edu
  30.   Windows: From the people who brought you EDLIN!
  31.