Solved

CTabCtrl and Cdialog

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How can i compile this github project?? 2 83
Recommendation vb6 to vb.net or others 14 148
How do ASP.NET and MVC work together? 4 47
Where did System.Data.Objects go? 2 27
Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
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 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…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

776 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