Solved

CTabCtrl and Cdialog

Posted on 2011-09-29
1
601 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

734 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