Help Center

CButton.SetStylemethod

Sets the style of a button.

WindowsmethodCButton.incdocumented

Syntax

SUB SetStyle (BYVAL hButton AS HWND, BYVAL dwStyle AS DWORD, BYVAL fRedraw AS BOOLEAN)

Parameters

NameDescription
dwStyleThe button style. This parameter can be a combination of button styles.
fRedrawA BOOLEAN that specifies whether the button is to be redrawn. A value of TRUE redraws the button; a value of FALSE does not redraw the button.

Description

Sets the style of a button.

For a table of button styles, see Button Styles.

Reference

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