I tried to change this when i altered the font:
This doesn't work. In addition i'd like to set the foregroudcolor as well.Code:int SetFont(HWND hWnd, int iSize, char *achFace){ int iRet, iHeight; HFONT hf; HDC hDC; hDC=GetDC(hWnd); iHeight = -MulDiv(iSize, GetDeviceCaps(hDC, LOGPIXELSY), 72); hf=CreateFont(iHeight ,0 ,0 ,0 ,FW_THIN ,0 ,0 ,0 ,1 ,OUT_DEFAULT_PRECIS ,0 ,PROOF_QUALITY ,0 ,achFace); iRet=SendMessage(hWnd,WM_SETFONT,(WPARAM)hf, MAKELPARAM(TRUE, 0)); SetBkColor(hDC, 0xFF0000); ReleaseDC(hWnd, hDC); return(iRet); }
Could anyone hint me in the right direction?
Edit:
I forgot to mention that I'm using MSVC++ 6.0, resource script, and not MFC