SetDefault method


Available for Button objects.

Prototype

SetDefault Proto hWnd:HWND, bDefault:BOOL

Syntax

Invoke SetDefault, hWnd, bDefault

Function

Sets the Default property for a Button object.

Parameters

hWnd

Handle to the object.

bDefault

A BOOL value specifying the new default state for the button.

Return value

Eax returns TRUE if succesful, or FALSE if not.


REMARKS
: The code for the default button is executed when pressing the <Enter> key.