Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can be any elements put on the notebook pages?

Status
Not open for further replies.

firelex

Programmer
Jan 10, 2002
118
DE
Hello, all!
My problem is:
I'm trying my luck with Visual C++. I've got the MS Visual Studio 6.0 and am trying to make some apps with it. I wanted to create a notebook with registercards (tabs) - it's OK, no problem.
BUT!!!! When I try to put anything on a page - it lands just BEHIND the notebook! And I cannot see it any more. It looks like I cannot get to the pages of the notebook.

In Borland it quite easy - you can click on the tabs and the page is ready to get any elements... And here I can only choose the notebook itself and not the pages separately.

Can any one help me?
Thanks.
 
Try using PropertySheets. Basically create a dialog without OK/Cancel buttons for each page. Create the PROPSHEETHEADER structure, fill it up with all the dialogs, one PROPSHEETPAGE each and then create the dialog by calling PropertySheet
 
It means that I won't use the pre-defined by Visual Studio register cards at all?!

Why do people use them then? [evil]

Doesn't it go anyhow with 'em?
 
You can use the register cards if you wish. However, if all you want is registercards and an OK and a Cancel button, it is a lot easier to use the Property Sheet. It is like saying why have assembler when you can program in C. Well, it is there if you need it but you don't have to use it if you don't want to.

The nice thing about register cards is that you can change the orientation and position of the tabs. I've never bothered doing this with property sheets but it may still be possible.

Also, don't forget to call InitCommonControlsEx somewhere before you pop up the dialog.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top