Disable system menu on dialog from source

Post Reply
User avatar
Jeff Barnes
Posts: 912
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada
Contact:

Disable system menu on dialog from source

Post by Jeff Barnes »

Hi Everybody,

I know I'm overlooking something easy but I just can't disable the system menu in a dialog from source code.

Can someone please point me in the right direction.

Thanks,
Jeff
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post by James Bott »

Jeff,

Try:

DEFINE DIALOG oDlg...STYLE nOR( DS_MODALFRAME, WS_POPUP, WS_CAPTION)

James
User avatar
Jeff Barnes
Posts: 912
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada
Contact:

Post by Jeff Barnes »

Thanks James,

I was trying with STYLE nOR( WS_SYSMENU) with no luck.

Your solution works perfectly.

Jeff
Post Reply