Page 1 of 1

Disable system menu on dialog from source

Posted: Thu Mar 16, 2006 4:01 pm
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

Re: Disable system menu on dialog from source

Posted: Thu Mar 16, 2006 5:05 pm
by Enrico Maria Giordano
Can I see a little sample of what you tried so far?

EMG

Posted: Thu Mar 16, 2006 5:14 pm
by James Bott
Jeff,

Try:

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

James

Posted: Thu Mar 16, 2006 5:35 pm
by Jeff Barnes
Thanks James,

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

Your solution works perfectly.

Jeff