Dissable Button

Started by Jean-pierre Leroy, April 15, 2004, 12:17:59 PM

Previous topic - Next topic

Jean-pierre Leroy

OK somebody had to be first

Having a bit of trouble moving over from DDT . I can't find, and yes I really have looked, for the function to disable a button. What I need is the button version of this menu function


EnableMenuItem Function

The EnableMenuItem function enables, disables, or grays the specified menu item.

Syntax

BOOL EnableMenuItem(      
   HMENU hMenu,
   UINT uIDEnableItem,
   UINT uEnable
);

Or DDT version

CONTROL DISABLE hDlg, id&



Michael

George Bleck

EnableWindow hButton, bAction

hButton is the handle of the button (or listview, or combobox, or editbox...)
BAction is %TRUE (enable) or %FALSE (disable)

Jean-pierre Leroy

Thanks George

Up and running

Michael