Solved

CTabCtrl and Cdialog

Posted on 2011-09-29
1
592 Views
Last Modified: 2012-05-12
Hello,

Iam using a CTabCtrl that shows different CDialogs. In the past, working with Propery Sheets the Dialogs had te same color than the property sheet ( TabControl). What I have to do to show a CDialog on a CTAbCtrl with the same Background than the CTabCtrl (On Win7 it is white).

Thanks,
Ocrana
0
Comment
Question by:Ocrana
1 Comment
 
LVL 30

Accepted Solution

by:
Zoppo earned 500 total points
Comment Utility
Hi Ocrana,

the child-dialog's background should be drawn the same as the tab-control's background when you call 'EnableThemeDialogTexture( pChildDlg->GetSafeHwnd(), ETDT_ENABLETAB )' where pChildDlg has to be a pointer to the already created child-dialog.

Hope that helps,

ZOPPO
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now