Solved

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

Posted on 2008-10-06
2
744 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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
Show shut-down message as Windows 8 shuts down. 9 99
deburging in oracle form 12 104
How to know only "File created" with EventLog 3 35
Message not shown 5 67
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…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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…

840 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