Solved

CTabCtrl and Cdialog

Posted on 2011-09-29
1
595 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 31

Accepted Solution

by:
Zoppo earned 500 total points
ID: 36815167
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
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.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

920 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

16 Experts available now in Live!

Get 1:1 Help Now