for now I use this function for font (thanks to a one mr parksie)
is there anyway to add a color parameter to this function? I don't know where to start...I've never used colorCode:void SetFont(HWND hWnd, int iPointSize, const char *pcFontName) { //(obviously) sets fonts of controls HFONT hTheFont; HDC hDC = GetDC(hWnd); int nHeight = -MulDiv(iPointSize, GetDeviceCaps(hDC, LOGPIXELSY), 72); hTheFont = CreateFont(nHeight, 0, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE, DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH, pcFontName); ReleaseDC(hWnd, hDC); SendMessage(hWnd, WM_SETFONT, (WPARAM)hTheFont, TRUE); }
![]()




)
Reply With Quote