PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Jean-pierre Leroy on April 15, 2004, 12:17:59 PM

Title: Dissable Button
Post by: Jean-pierre Leroy on April 15, 2004, 12:17:59 PM
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
Title: Dissable Button
Post by: George Bleck on April 15, 2004, 12:40:12 PM
EnableWindow hButton, bAction

hButton is the handle of the button (or listview, or combobox, or editbox...)
BAction is %TRUE (enable) or %FALSE (disable)
Title: Dissable Button
Post by: Jean-pierre Leroy on April 15, 2004, 12:59:37 PM
Thanks George

Up and running

Michael