SELF SATISFACTION?自己満足?なBLOG
猫も杓子もブログ!ブログ!
HOME > 自己満足なBLOG
2006/02/16

ダイアログのフォントの設定

BOOL CTestDlg::OnInitDialog()
{
CDialog::OnInitDialog();

LOGFONT lftTemp;
CFont* pfntTemp;

pfntTemp = GetFont();
pfntTemp->GetLogFont(&lftTemp);
lftTemp.lfWeight = FW_BOLD;
lftTemp.lfHeight = 200;
m_font.CreatePointFontIndirect(&lftTemp);

//m_font.CreateFont( 36,0,0,0,FW_DONTCARE,FALSE,FALSE,FALSE,SHIFTJIS_CHARSET,
// OUT_DEFAULT_PRECIS,CLIP_DEFAULT_PRECIS,DRAFT_QUALITY,DEFAULT_PITCH,"MS UI Gothic" );

SetFont(&m_font);
SendMessageToDescendants( WM_SETFONT, (WPARAM)(HFONT)m_font, MAKELPARAM(TRUE, 0) );

return TRUE; // return TRUE unless you set the focus to a control
// 例外 : OCX プロパティ ページは必ず FALSE を返します。
}
なるほど

0 Comments:

コメントを投稿

?????????e
ThunderBird - 添付ファイル名が正しく表示されない
Multi-Touch Interaction Research
ブルブル振るえるコショウ入れ 『Shaking Shakers』
Windows XP に自動ログオンするには?
Yahoo! UI Library
phpspot開発日誌
映画ドラえもん『のび太の恐竜2006』公式サイト
Subversion によるバージョン管理
折田先生(像)年表
24th century interior design
?????????e
2005/09
2005/10
2005/11
2005/12
2006/01
2006/02
2006/03
2006/04
2006/05
2006/06
2006/07
2006/08
2006/09
2006/10
2006/11
2006/12
2007/01
2007/02
2007/03
2007/04
2007/05
2007/06
2007/07
2007/09
2007/12
2008/01
2008/02
2008/04
2008/07






Powered by Blogger



HOME TOP Copyright © 1997-2005 Nori All Rights Reserved.