?
Solved

How to use a resource?

Posted on 1999-07-27
1
Medium Priority
?
154 Views
Last Modified: 2013-11-20
Hi... I have a Tab control resource which I can use it in my program.... suppose the ID of the control is IDC_OPTIONS. I have seen the help for TabCtrl and nothing gives me a hint on how I can do that. The constructor is called with no parameters, and the Create( ) method works only if I pass the RECT structure as a parameter, but if the resource is already created with that ID number, how can I do that?

Thanks in advance
0
Comment
Question by:demarcy
[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 23

Accepted Solution

by:
chensu earned 200 total points
ID: 1311685
If the control is already created, use CWnd::GetDlgItem  to get the pointer.

CTabCtrl *pt = (CTabCtrl *)this->GetDlgItem(IDC_OPTIONS);
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

719 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