|
// *********************************************************
// フォントのセット
// 戻り値 : true 成功, false 失敗
// *********************************************************
BOOL LboxListbox::SetFont( int nType, int nSize, BOOL bBold )
{
if ( LboxListbox::hFont != NULL ) {
DeleteObject( LboxListbox::hFont );
}
LboxListbox::hFont = LboxCreateFont(
nType,
nSize,
bBold
);
if ( LboxListbox::hFont == NULL ) {
return false;
}
SendMessage(
LboxListbox::hWnd,
WM_SETFONT,
(WPARAM)(LboxListbox::hFont),
MAKELPARAM(true, 0)
);
return true;
}
| |