by hide21 » 2006年9月22日(金) 20:37
Indigo Visualist 様 返信ありがとうございます。
下の2行はプログラムの先頭の
「' TODO: この位置にグローバルな変数、構造体、定数、関数を定義します。」
の下にあります。
>Dim hFont_Text As HFONT
>hFont_Text=CreateFont(-24,0,0,0,600,0,0,0,128,3,2,1,50,"MS Pゴシック")
下の1行は
「Function MainWndProc(hWnd As HWND, dwMsg As DWord, wParam As WPARAM, lParam As LPARAM) As DWord」
の下に書きました。
>SendDlgItemMessage(hMainWnd as DWord,EditBox,WM_SETFONT,hFont_Text as DWord,0)
そして,最後の「フォントの破棄」は
「Sub MainWnd_Destroy()」
に
「DeleteObject(hFont_Text)」
と記述しました。
Indigo Visualist 様 いかがでしょうか?
Indigo Visualist 様 返信ありがとうございます。
下の2行はプログラムの先頭の
「' TODO: この位置にグローバルな変数、構造体、定数、関数を定義します。」
の下にあります。
>Dim hFont_Text As HFONT
>hFont_Text=CreateFont(-24,0,0,0,600,0,0,0,128,3,2,1,50,"MS Pゴシック")
下の1行は
「Function MainWndProc(hWnd As HWND, dwMsg As DWord, wParam As WPARAM, lParam As LPARAM) As DWord」
の下に書きました。
>SendDlgItemMessage(hMainWnd as DWord,EditBox,WM_SETFONT,hFont_Text as DWord,0)
そして,最後の「フォントの破棄」は
「Sub MainWnd_Destroy()」
に
「DeleteObject(hFont_Text)」
と記述しました。
Indigo Visualist 様 いかがでしょうか?