How to set the BackGround color of a window?
-
Hi, I'm using this wonderful Tab control : http://www.codeproject.com/tabctrl/XPTabApp.asp[^] my problem is that the background color of the tab control is white,and when i'm adding a window to a tab,the window background color is gray. How can I set the Background color of the window to the tab control color? I tried to set the transparent property of the window to true but it's not working. Also,I tried to do this with the following:
CDC *pDC = MyWindow->GetDC();
SetBkColor(pDC->m_hDC , RGB(255,255,255));
ReleaseDC(pDC);But again,it's not working. anyone? regards, Eli :doh:
-
Hi, I'm using this wonderful Tab control : http://www.codeproject.com/tabctrl/XPTabApp.asp[^] my problem is that the background color of the tab control is white,and when i'm adding a window to a tab,the window background color is gray. How can I set the Background color of the window to the tab control color? I tried to set the transparent property of the window to true but it's not working. Also,I tried to do this with the following:
CDC *pDC = MyWindow->GetDC();
SetBkColor(pDC->m_hDC , RGB(255,255,255));
ReleaseDC(pDC);But again,it's not working. anyone? regards, Eli :doh:
-
Hi, I'm using this wonderful Tab control : http://www.codeproject.com/tabctrl/XPTabApp.asp[^] my problem is that the background color of the tab control is white,and when i'm adding a window to a tab,the window background color is gray. How can I set the Background color of the window to the tab control color? I tried to set the transparent property of the window to true but it's not working. Also,I tried to do this with the following:
CDC *pDC = MyWindow->GetDC();
SetBkColor(pDC->m_hDC , RGB(255,255,255));
ReleaseDC(pDC);But again,it's not working. anyone? regards, Eli :doh:
It depends on the ... window. Could you be more explicit ? SkyWalker