How to make tab control pages transparent while using XP themes?

Having trouble with tab control pages’  gray background while using XP themes? Well to solve this problem we need to do some additional housekeeping(AFAIK)… Add a message map entry for WM_CTLCOLOR… [sourcecode language=’cpp’]BEGIN_MESSAGE_MAP(CTabPage, CDialog)      ON_WM_CTLCOLOR() END_MESSAGE_MAP()[/sourcecode] Override OnCtlColor and add following code… [sourcecode language=’cpp’]HBRUSH CTabPage::OnCtlColor( CDC* pDC_i, CWnd* pWnd_i, UINT uCntrlType_i ) { // First […]
Continue reading…