?
Solved

tab control in a dialog box... ?

Posted on 1998-12-29
4
Medium Priority
?
223 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
[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
  • 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 100 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
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…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

762 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