// Create the IDOK button
m_pbtnOk = new CButtonST;
m_pbtnOk->Create(_T("&Ok"), WS_CHILD | WS_VISIBLE |
WS_GROUP | WS_TABSTOP, CRect(10, 10, 200, 100), this,
IDOK);
// Set the same font of the application
m_pbtnOk->SetFont(GetFont());
B""3"#
"+
if (m_pbtnOk) delete m_pbtnOk;
Class methods
SetIcon,380-
>3
>"
// Parameters:
// [IN] nIconIn
// ID number of the icon resource to show when
the mouse is over the button.
// Pass NULL to remove any icon from the
button.
// [IN] nCxDesiredIn
// Specifies the width, in pixels, of the icon
to load.
// [IN] nCyDesiredIn
// Specifies the height, in pixels, of the
icon to load.
// [IN] nIconOut
// ID number of the icon resource to show when
the mouse is outside the button. Can be NULL.
// If this parameter is the special value
BTNST_AUTO_GRAY (cast to int) the second
// icon will be automatically created starting
from nIconIn and converted to grayscale.