The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: santa on March 19, 2006, 11:20:19 AM

Title: Button_disabled
Post by: santa on March 19, 2006, 11:20:19 AM
Hi all,

I've been preparing a small text editor. I'm wondering how to disable save button, if this operation has been done a few second before.

Regards  :8)
Title: Re: Button_disabled
Post by: hutch-- on March 19, 2006, 12:36:47 PM
Just use EnableWindow() with the FALSE flag.
Title: Re: Button_disabled
Post by: Mincho Georgiev on March 19, 2006, 01:46:14 PM
Maybe is a dump question, but if you making a text editor, do you mean MENU ITEM instead of button. In that case ,you can use:
invoke EnableMenuItem,hMenu,IDM_SAVE,MF_GRAYED.
Otherwise, Hutch is right.

Title: Re: Button_disabled
Post by: santa on March 19, 2006, 02:11:20 PM

Thanks  :8)