MFC CPropertySheet/CPropertyPage

Good day.
I use MFC classes CPropertySheet and CPropertyPage to implement tabbed application.
I've got some questions:
1. How can I move tabs to the top of screen I tried to apply TCS_BOTTOM attribute, but it doesn't work:
CTabCtrl* pTabs = this->GetTabControl();
DWORD flags = pTabs->GetExtendedStyle();
flags |= TCS_BOTTOM;
pTabs->SetExtendedStyle(flags);


2. When I have only one PropertyPage in my Sheet, components of this page are slightly displaced from their places.

3. When I try to add pages dynamically, bottom tab bar isn't being painted - i see only white rectangle on it's place. This only happens when I initially have one page. If i create more pages in, for example, InitDialog() function of my App, everything works properly.
So I can foresee 2 solutions:
a) to make tabs bar visible even if I have only 1 page;
b) to force tabs bar to paint properly when the page is added dynamically.

P.S.
In the 3rd question, the problem only appears when th PropertySheet dialog is the main window of the app.


Answer this question

MFC CPropertySheet/CPropertyPage

  • Stut

    >> You will have to repaint tab bar for this to be fixed

    And how do I do it

  • Vytas

    Hello, can anybody help me

  • StevenR2

    eVC 4, SP 2, Microsoft Pocket PC 2003 SDK
    Windows 2003 SE, ARMV4

  • debeerBiz

     Shedal wrote:

    1. How can I move tabs to the top of screen


    This is impossible. PocketPC forces tabs to be at the bottom of the screen and all other styles are not supported.

     Shedal wrote:

    2. When I have only one PropertyPage in my Sheet, components of this page are slightly displaced from their places.


    You will have to manually reposition dialog for this to be fixed

     Shedal wrote:

    3. When I try to add pages dynamically, bottom tab bar isn't being painted - i see only white rectangle on it's place.


    You will have to repaint tab bar for this to be fixed


  • djchapin

    Hi,

    Can you let me know the sdk(PPC/SP/standard_sdk) and the version that you are targetting

    Thanks



  • simon mcinnes

    Hello there :-/
    Anyone from Microsoft...

  • MFC CPropertySheet/CPropertyPage