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