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.

MFC CPropertySheet/CPropertyPage
Stut
And how do I do it
Vytas
StevenR2
Windows 2003 SE, ARMV4
debeerBiz
This is impossible. PocketPC forces tabs to be at the bottom of the screen and all other styles are not supported.
You will have to manually reposition dialog for this to be fixed
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
Anyone from Microsoft...