HeaderPane
Main
Hide
Share Link
Print

ControlInfo

Defines the combo box control's attributes.

C

BOOL WINAPI SftBox_GetControlInfo(HWND hwndCtl, LPSFTBOX_CONTROL lpCtl);
BOOL WINAPI SftBox_SetControlInfo(HWND hwndCtl, LPSFTBOX_CONTROL lpCtl);

C++

BOOL CSftBox::GetControlInfo(LPSFTBOX_CONTROL lpCtl) const;
BOOL CSftBox::SetControlInfo(LPSFTBOX_CONTROL lpCtl);

Parameters

hwndCtl

The window handle of the combo box control.

lpCtl

A pointer to a SFTBOX_CONTROL structure containing the combo box control definitions. GetControlInfo uses this structure to return the current settings. SetControlInfo uses the contents of this structure to define the new settings. The cbSize member of the SFTBOX_CONTROL structure must be initialized to the size of the structure (sizeof(SFTBOX_CONTROL)) before calling GetControlInfo or SetControlInfo.

Returns

The return value is TRUE if the function was successful, otherwise FALSE is returned. FALSE is returned if the cbSize member of the SFTBOX_CONTROL structure is not set to the size of the structure.

Comments

The GetControlInfo and SetControlInfo functions define the combo box control's attributes.

To modify a control's attributes, the GetControlInfo function is used to retrieve its current attributes. The SFTBOX_CONTROL structure can then be modified, setting the desired attributes. Finally, the control's attributes are updated by a call to the SetControlInfo function.

If the SetControlInfo function fails because a structure member contains an invalid value, the SFTBOX_CONTROL structure's errorValue member contains an error code, indicating which structure member has caused the failure. In this case, none of the attributes are changed.

See Also C/C++ API | Categories | Notifications


Last Updated 11/21/2026 - (email)
© 2026 Softel vdm, Inc.