• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 226
  • Last Modified:

tab control in a dialog box... ?

Hi!
I want to use a "tab control" in a dialogbox, created with the resource tool in MS developer studio.
I don't know hom to create the second tab and its childcontrols.

Anyone who can help me with this.?
NT 4.0
C
MS Developer studio 5.0
0
AndersCarlsson
Asked:
AndersCarlsson
  • 2
1 Solution
 
The_BrainCommented:
I will answer this question just now... I have to watch the cricket highlight SA vs WestInd

I am SA.
0
 
BudVVeezerCommented:
Hey brain...what exactly did that comment have to do with anything?

~Aaron
0
 
The_BrainCommented:
I was going to answer the question, but the cricket came on... :)

So I just left a message to say that I was comming back.  I have tried a new project with prop pages and I don't really feel that that is what you want.

You could try this, give your tab control a member name, and add new pages by right clicking on the resource displays on the left.
and choose insert...
then new dialog and it ask for a whole bunch of options.  three large, medium, small prop pages.

Well i guess that is my suggestion good luck.

0
 
jmayfieldCommented:
Anders, I have done this often.

First, to add columns to a tab control, this has to be done in the WM_INITDIALOG of the dialog where the tab control resides. Send TCM_INSERTITEM to the tab control.

Second create child dialogs for the dialog where the tab control is located. I then hide all the dialogs but the one that is selected. When a user selects a new tab a TCN_SELCHANGE is sent to the tab control. Use TCN_GETCHANGE to find out the current tab to show. Hide all child dialogs and then show the dialog that corresponds to the tab.

If you need any more help or sample code, just write back.
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.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now