Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!athena.mit.edu!vpsingha From: vpsingha@athena.mit.edu (Vivek P. Singhal) Newsgroups: comp.windows.ms Subject: Re: SDK Question - CreateWWindow Keywords: minimize Message-ID: <8410@bloom-beacon.MIT.EDU> Date: 12 Dec 88 16:42:30 GMT References: <713@ethz.UUCP> Sender: daemon@bloom-beacon.MIT.EDU Reply-To: vpsingha@athena.mit.edu (Vivek P. Singhal) Organization: Massachusetts Institute of Technology Lines: 20 In article <713@ethz.UUCP> hoss@ethz.UUCP (Guido Hoss) writes: >I wish to create a resizable child window with a system menu. The 'Minimize' >function should be disabled. I can delete the 'Minimize' option from the >system menu, but how do I get rid of the down arrow in the upper right >corner? When you create the window using the CreateWindow function, you must specify a 'style' for the window. If you XOR the style with WS_MINIMIZEBOX (e.g. WS_CHILD | ... | ... ^ WS_MINIMIZEBOX), then the down arrow will be removed. Also, it will automatically grey out the Minimize option on the system menu. It is probably a good idea to follow the Applications Style Guide and not remove the menu item, but just mark it as unusable. Vivek _____________________________________________________________________________ | Vivek Singhal: vpsingha@athena.mit.edu 474 Memorial Drive | | vivek@newt.lcs.mit.edu Cambridge, MA 02139 | | (617) 225-7576 (617) 621-0405 |