XLL+ Class Library (6.3)

CXlControlOK::CXlControlOK

Constructs a CXlControlOK object, without displaying it

CXlControlOK(
   UINT id = -1,
   const char* pszText = 0,
   USHORT x = 0,
   USHORT y = 0,
   USHORT cx = 0,
   USHORT cy = 0
);

Parameters

id

Numeric identifier of the control, which can be used to refer to it in event handlers. The ID does not need to be unique.

pszText

Button text. If 0, then "OK" will be used.

x

Coordinate of left side of control. Ignored if 0.

y

Coordinate of top of control. Ignored if 0.

cx

Width of control. Ignored if 0.

cy

Height of control. Ignored if 0.

Remarks

This constructor creates a push-button. When the user presses it the OnOK() event handler will be invoked. By default, this method dismisses the dialog with result TRUE. It can be overriden in classes descended from CDialog.

Methods of parent class

Requirements

Header: xldialog.h

See Also

CXlControlOK Class | CXlControlOK Methods