Solved

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

Posted on 2008-10-06
2
747 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

691 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