Solved

customize the MFC tabs (Property Page) with propertysheet.addpage()

Posted on 2008-10-06
2
740 Views
Last Modified: 2013-11-20
When I have many property pages,  It gets ordered in a certain way (number of tabs in each row).

How do i customize what tabs go in which row. All I able to do is call addpage() and the property pages get added in that order but I have no way of controlling if I want a certain property page in a certain row.

Any suggestions ?

Thanks
0
Comment
Question by:suda4130
2 Comments
 
LVL 31

Accepted Solution

by:
Zoppo earned 300 total points
ID: 22657854
Hi suda4130,

I don't think there's an easy way to do this - it might be possible to rearrange the pages by directly accessing the members of the PROPSHEETHEADER pointed to by CPropertySheet::m_psh, but I'm not sure.

So maybe the only way to do this is to remove all pages (CPropertySheet::RemovePage) and re-add them in the order you want to have them. You can use LockWindowUpdate and UnlockWindowUpdate to avoid the property sheet is redrawn with any remove/add action.

Hope that helps,

ZOPPO
0
 
LVL 39

Assisted Solution

by:itsmeandnobodyelse
itsmeandnobodyelse earned 100 total points
ID: 22657910
Zoppo is right. I had the same issue some years ago. To insert a page x at row y we removed all pages from the minimum of x and y to the end. Then we added the pages in the order we wanted to show them.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

776 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