Solved

Display in a tab control

Posted on 2000-04-19
5
201 Views
Last Modified: 2013-11-20
HI,
    How to display something in tab control?. In particular how to display any result of a query of a database in different controls. Each and every time one press a different tab the corresponding page must be displayed.

Thanx,
Thiru
0
Comment
Question by:thirumaran
  • 3
5 Comments
 
LVL 1

Expert Comment

by:yarond
ID: 2741917
A regular tab control actually don't contain any or your data-windows. You need to create (by code, or from a template) a different child-dialog for each of your tab page. Then when the tab sends a TCN_SELCHANGE message, you can get the selected tab number (using TabCtrl_GetCurSel, or sending a TCM_GETCURSEL message) and display the appropriate dialog.
0
 
LVL 1

Expert Comment

by:Mensana
ID: 2757104
The best exemple that explains to you how to deal with tab controls can be found at:
http://www.visionx.com/mfcpro/mfc-l/t5290.htm
I used it myself when I developed a UI with a tab control. If you have any further problems, just let me know, maybe I can help.
Good luck.
0
 
LVL 1

Expert Comment

by:Mensana
ID: 2757109
One more thing:
I used Terry Wellmann's solution!
0
 

Author Comment

by:thirumaran
ID: 2758011
Hi Mensana/anyone,
   One important point is that one of my dialog box is bigger than the size of the window,so implementation of scrollbar arises and 'am not able to make the scroll bar to move the page downwards.

Help me in this regard,

Thanx,
Thiru
0
 
LVL 1

Accepted Solution

by:
Mensana earned 25 total points
ID: 2759212
I don’t understand what are you trying to do. If you have so many controls on one tab that there is not enough real estate you can actually add a new tab and try to split the controls between two tabs. Eventually you can consider the possibility of having a tab control within a tab control. Basically, on a tab page for a tab control you can throw controls of any kind. I don’t understand what are you trying to scroll! A tab control is used on a dialog box oriented app. There is no way of scrolling such a window. You may want to look into resizing the controls or taking a different approach by using MDI apps. Try to be more specific so I can understand exactly the nature of your problem.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Different colored text in ComboBox without Subclassing 8 66
Error on moodle after upgrade 3 140
WinWaitActive parameters 12 31
sumDigits challenge 9 170
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.

828 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