• Welcome to PlanetSquires Forums.
 

Window Properties Question

Started by David Martin, April 04, 2004, 04:41:25 PM

Previous topic - Next topic

David Martin

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

TechSupport

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.

David Martin

Quote from: "TechSupport"WS_EX_DLGMODALFRAME

Thats the one I missed.

Thanks

TechSupport

Yes, I usually design all my modal forms this way. It looks a lot nicer than having to use the WS_EX_SMCAPTION style.