How to change the background color of AfxControlBar*, CToolBar's parent window ?
-
Hi, I have changed the background color of my CToolBar. Now I would like to change the background color CToolBar's parent window which is AfxControlBar*. How could I do this ? Any help would be appreciated. Thanks, Paresh
-
Hi, I have changed the background color of my CToolBar. Now I would like to change the background color CToolBar's parent window which is AfxControlBar*. How could I do this ? Any help would be appreciated. Thanks, Paresh
-
What exactly you trying to do?? Anyways simple way to change background color is Handle WM_CTLCOLOR message and return a brush of new color.
Hi Sandip, I want to paint the background color of the CToolbar. However, I am able to paint only the area which belongs to CToolbar and not the AfxControlBar, which is the parent of CToolbar. (though we have a m_wndToolbar as a member of CMainFrm). I hope you understand the issue. Regards, Paresh.