PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Window Properties Question  (Read 1128 times)

David Martin

  • Guest
Window Properties Question
« 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
Logged

TechSupport

  • Guest
Window Properties Question
« Reply #1 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.
Logged

David Martin

  • Guest
Window Properties Question
« Reply #2 on: April 04, 2004, 05:43:32 PM »

Quote from: "TechSupport"
WS_EX_DLGMODALFRAME

Thats the one I missed.

Thanks
Logged

TechSupport

  • Guest
Window Properties Question
« Reply #3 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.
Logged