Newsgroups: comp.windows.ms.programmer Path: utzoo!utgpu!watserv1!watmath!hyper.hyper.com!bonneau From: bonneau@hyper.hyper.com (Paul Bonneau) Subject: Re: HOW CAN I GET AN MDI-CHILD W/ STYLE OF (WS_BORDER|WS_MINIMIZEBOX)!!!!!!!!!! Message-ID: <1991Jun25.192416.5548@hyper.hyper.com> Reply-To: bonneau@hyper.UUCP (Paul Bonneau,,) Organization: HyperCube Inc. References: <7458@vela.acs.oakland.edu> Date: Tue, 25 Jun 1991 19:24:16 GMT In article <7458@vela.acs.oakland.edu> rdthomps@vela.acs.oakland.edu (Robert D. Thompson) writes: > >Someone, > > I have an MDI Application and I want the Child/Document Windows > of it not to have thickframes (for resizing) and not to have > a maximize box. I need all other functionality of the MDI > API, including tiling, cascading, minimizing into icons, etc... > > But my windows are dialogs - and I do not want the user to be > able to size them and maximize. > > I have tried, > > GetWindowLong, XOR with WS_THICKFRAME and WS_MAXIMIZE BOX > > and it works - at first. > > Subsequent MDI calls cause the style to revert once again back > to a thickframe with a maximize box. > Your problem is that SetWindowLong() only affects a particular window (ie. an instance of a class, ie. object), not the entire class. What might try to do is use the SetWindowLong() in the WM_CREATE message (or perhaps WM_NCCREATE mesasge if you get one) of the window proc itself. cheers - Paul Bonneau.