Help Center

CButton.SetDropDownStatemethod

Sets the drop down state for a specified button with style of BS_SPLITBUTTON.

WindowsmethodCButton.incdocumented

Syntax

FUNCTION SetDropDownState (BYVAL hButton AS HWND, BYVAL fDropDown AS BOOLEAN) AS BOOLEAN

Parameters

NameDescription
fDropDownA BOOLEAN that is TRUE for state of BST_DROPDOWNPUSHED, or FALSE otherwise.

Return value

Returns TRUE if successful, or FALSE otherwise.

Description

Sets the drop down state for a specified button with style of BS_SPLITBUTTON.

Remarks

To use this message, you must provide a manifest specifying Comclt32.dll version 6.0.

Example

CButton.SetDropDownState(hButton, TRUE)

Reference

  • Include file CButton.inc
  • Defined in AfxNova/CButton.inc:446
  • Documented in Windows/WIndows Controls/CButton Class.md
  • Topic: CButton Class