Background Color
-
I'm using the CHOOSECOLOR to change the background color on a hEdit = CreateWindowEx(WS_EX_CLIENTEDGE, "EDIT",..... control window. However there is only the background on the main window that changes hwnd = CreateWindowEx(WS_EX_CLIENTEDGE,MainWindow,..... Part of the code SetClassLong(hwnd, GCL_HBRBACKGROUND, (LONG)hbrush); InvalidateRgn(hwnd, NULL, TRUE); What's wrong? Is it possible to edit the bg color on the hedit window?
-
I'm using the CHOOSECOLOR to change the background color on a hEdit = CreateWindowEx(WS_EX_CLIENTEDGE, "EDIT",..... control window. However there is only the background on the main window that changes hwnd = CreateWindowEx(WS_EX_CLIENTEDGE,MainWindow,..... Part of the code SetClassLong(hwnd, GCL_HBRBACKGROUND, (LONG)hbrush); InvalidateRgn(hwnd, NULL, TRUE); What's wrong? Is it possible to edit the bg color on the hedit window?
leifmikael wrote: Is it possible to edit the bg color on the hedit window? Yes, You have to handle WM_CTLCOLOREDIT Message in your WndProc!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta
-
leifmikael wrote: Is it possible to edit the bg color on the hedit window? Yes, You have to handle WM_CTLCOLOREDIT Message in your WndProc!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta
Thank You very much now i'm on track againa'
-
Thank You very much now i'm on track againa'
leifmikael wrote: Thank You Mention Not! :)
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta