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