I know that I would sent the child wind a WM_SETFONT message, but what would the WPARAM be to set it to Courier? Thanks!
I know that I would sent the child wind a WM_SETFONT message, but what would the WPARAM be to set it to Courier? Thanks!
1978 Silver Anniversary Corvette
Hey Garfield.
I have some code at home to do this, but im at aschool at the moment so when i get back tonight i will put it up if no one has answered.
TNT
TNT
You Can Stop Me, But You Cant Stop Us All
Hey ok here ya go:
Make this fucntion:
void SetEditFont(HWND hwndEdit, LPCSTR lpFontName, int FontSize, DWORD dwCharSet, BOOL bBold, BOOL bItalic, BOOL bUnderLine, BOOL bStrikeOut)
{
HFONT hFont;
DWORD Bold = 200;
if (bBold == TRUE) { Bold = FW_BOLD; }
hFont = CreateFont(FontSize, 0, 0, 0, Bold, bItalic, bUnderLine, bStrikeOut,
dwCharSet, 0, 0, PROOF_QUALITY, 0, lpFontName);
SendMessage(hwndEdit, WM_SETFONT, (WPARAM)hFont, TRUE);
}
Then call it like this:
SetEditFont(hWndEdit, "Courier", 0, ANSI_CHARSET, FALSE, FALSE, FALSE, FALSE);
Worked for me
Hope that helps, i havnt had time to test that code tonight, but i think its ok...
Hope that helps
TNT
TNT
You Can Stop Me, But You Cant Stop Us All
Thanks, buddy! I'll give it a whirl
1978 Silver Anniversary Corvette