News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Button_disabled

Started by santa, March 19, 2006, 11:20:19 AM

Previous topic - Next topic

santa

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)

hutch--

Just use EnableWindow() with the FALSE flag.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

Mincho Georgiev

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.


santa