Solved

tab control in a dialog box... ?

Posted on 1998-12-29
4
217 Views
Last Modified: 2013-12-03
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
Comment
Question by:AndersCarlsson
  • 2
4 Comments
 
LVL 1

Expert Comment

by:The_Brain
ID: 1417815
I will answer this question just now... I have to watch the cricket highlight SA vs WestInd

I am SA.
0
 
LVL 3

Expert Comment

by:BudVVeezer
ID: 1417816
Hey brain...what exactly did that comment have to do with anything?

~Aaron
0
 
LVL 1

Expert Comment

by:The_Brain
ID: 1417817
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
 

Accepted Solution

by:
jmayfield earned 50 total points
ID: 1417818
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Enable Clear Text in Win 8.1 7 45
File Watcher and Deleter with Email notification 5 100
Should CArray be used for a list of pointers in C++? 19 117
Windows Process running 3 58
With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
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…
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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

839 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