All pastes #122321 Raw Edit

Someone

public text v1 · immutable
·published 2006-08-08 16:31 UTC
rendered paste body
		case WM_CTLCOLORSTATIC:			// Color message received
			if ((HWND)lParam == GetDlgItem(hWnd, IDC_STATUS_IDLE))	// make sure its our text
			{
				//SetBkMode((HDC)wParam, TRANSPARENT);
				//SetBkColor((HDC)wParam, GetTextColor(GetDC(m_hWnd)));

				RECT rect;
				GetWindowRect(GetDlgItem(hWnd, IDC_STATUS_IDLE), &rect);
				FillRect(GetDC(m_hWnd), &rect, (HBRUSH)GetStockObject(LTGRAY_BRUSH));

//				SetTextColor((HDC)wParam, RGB(0, 0, 255));
				return (int)CreateSolidBrush (GetSysColor(COLOR_MENU));
			}