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.
P.P.S. eVC 4, SP 2, Microsoft Pocket PC 2003 SDK, Windows 2003 SE, ARMV4
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.
P.P.S. eVC 4, SP 2, Microsoft Pocket PC 2003 SDK, Windows 2003 SE, ARMV4