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…

 

Enable/Disable XP Visual Styles for your application

Via resource editor For VC6 add this one line to your .rc file, open it in a text editor…. CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST “YourAppName.exe.manifest” YourAppName.exe.manifest should be your application’s manifest file. Or you can paste YourAppName.exe.manifest to your application folder and XP themes gets enabled. From VC8 onwards manifest file should only be in your res folder, […]
Continue reading…