Hi
I' changing the main windows backgoundcolor to grea with this class definition:
But when i use DrawText to write something into the window, the backgound of the characters is still white. changing the character backgound to transparent doesn't help,because while scrolling up they overleap somehow. how can i solve that (i would like that it still works if i change the main windows background to red, i.e.Code:wndclass.style = CS_HREDRAW |CS_VREDRAW; wndclass.lpfnWndProc = WndProc; wndclass.cbClsExtra = 0; wndclass.cbWndExtra = 0; wndclass.hInstance = hInstance; wndclass.hIcon = LoadIcon(hInstance, szAppName); wndclass.hCursor = LoadCursor(NULL, IDC_ARROW); wndclass.hbrBackground = (HBRUSH)(COLOR_BTNFACE+1); wndclass.lpszMenuName = szAppName; wndclass.lpszClassName = szAppName;
thanks



LinkBack URL
About LinkBacks


