Solved

CTabCtrl and Cdialog

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

Ready to get started with anonymous questions?

It's easy! Check out this step-by-step guide for asking an anonymous question on Experts Exchange.

Question has a verified solution.

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

Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
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 goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
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…

623 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