PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: David Martin on April 04, 2004, 04:41:25 PM

Title: Window Properties Question
Post by: David Martin on April 04, 2004, 04:41:25 PM
What properties do I need to not have a system menu/icon, no minimize button, no maximum box but to still have a close box on my window?

Thanks,

David
Title: Window Properties Question
Post by: TechSupport on April 04, 2004, 05:40:12 PM
WS_CAPTION
WS_SYSMENU
WS_VISIBLE

... and most importantly, in the ExStyles.....

WS_EX_DLGMODALFRAME

The SysMenu will appear in the designer, but will not when the Form is compiled and shown.
Title: Window Properties Question
Post by: David Martin on April 04, 2004, 05:43:32 PM
Quote from: "TechSupport"WS_EX_DLGMODALFRAME

Thats the one I missed.

Thanks
Title: Window Properties Question
Post by: TechSupport on April 04, 2004, 05:50:28 PM
Yes, I usually design all my modal forms this way. It looks a lot nicer than having to use the WS_EX_SMCAPTION style.