Article View: comp.windows.ms.programmer
Article #444MS MDI question
From: Qiang Wan
Date: Thu, 16 Apr 1992 20:28
Date: Thu, 16 Apr 1992 20:28
19 lines
1446 bytes
1446 bytes
I started to write an MDI (Multiple Document Interface) application under MS Window 3.0, using Borland C++. I encountered the following problems: 1. According to MS Windows reference manual pages on MDICREATESTRUCT, a child window in MDI has four valid window styles: WM_MINIMIZE, WM_MAXIMIZE, WM_HSCROLL, and WM_VSCROLL. The problem is that I could not get the scroll-bars to appear at all, while the minimize and maximize styles seem to work OK. The MS Windows programming guide shows some MDI child windows bearing scroll-bars. I wonder if people who have MS SDK package could verify for me if these scroll-bars were created by setting the window style in the MDICREATESTRUCT style field, or by calling CreateWindow's. 2. I registered a window class for the MDI child windows with CS_NOCLOSE set, which is supposed to suppress the WM Close button in the window pulldown menu. This doesn't seem to work either. The Close button is always shown. Hope some netters would have some suggestion on this. Thanks in advance. Ching Wan
Technical Details
Message-ID:
<kuroqvINNdka@pollux.usc.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!usc!newsShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!news From: wan@pollux.usc.edu (Qiang Wan) Newsgroups: comp.windows.ms.programmer Subject: MS MDI question Date: 16 Apr 1992 13:28:15 -0700 Organization: University of Southern California, Los Angeles, CA Lines: 20 Sender: wan@pollux.usc.edu (Qiang Wan) Distribution: usa Message-ID: <kuroqvINNdka@pollux.usc.edu> NNTP-Posting-Host: pollux.usc.edu