Solved

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

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

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

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…
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.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now