Article View: comp.windows.ms.programmer
Article #452Re: MS MDI question
From: Peter Haller
Date: Thu, 16 Apr 1992 23:46
Date: Thu, 16 Apr 1992 23:46
24 lines
1728 bytes
1728 bytes
In a previous article, wan@pollux.usc.edu (Qiang Wan) says: >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. You must call SetScrollRange() with the ranges not equal to each other. This forces the scroll bars to be drawn. PCH -- Peter C. Haller | 'If you do what you Imagination Processing Systems | have always done, aa596@cleveland.Freenet.Edu | expect what you have "Are we having fun yet?" | always recieved.'
Technical Details
Message-ID:
<1992Apr16.234647.1732@usenet.ins.cwru.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!cleveland.Freenet.Edu!aa596References:
<kuroqvINNdka@pollux.usc.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.windows.ms.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!cleveland.Freenet.Edu!aa596 From: aa596@cleveland.Freenet.Edu (Peter Haller) Subject: Re: MS MDI question Message-ID: <1992Apr16.234647.1732@usenet.ins.cwru.edu> Sender: news@usenet.ins.cwru.edu Nntp-Posting-Host: cwns6.ins.cwru.edu Reply-To: aa596@cleveland.Freenet.Edu (Peter Haller) Organization: Case Western Reserve University, Cleveland, OH (USA) References: <kuroqvINNdka@pollux.usc.edu> Date: Thu, 16 Apr 92 23:46:47 GMT Lines: 25