emmi
July 28th, 2005, 06:02 AM
hi,
i have a propertypage wizard. on an english windows it works fine. if i try it on a japanes windows (it's unicode) the surface is much larger than on the english one. the dialog is larger and the controls on the pages are larger, too.
i tried to set the size of the sheet by hand. but i have a problem to set the size and pos of the tab control.
- why is it larger on japanes windows
- how can i set the size and pos of the tab control
thanks for help
best regars
emmi
BOOL CSetup32Sheet::OnInitDialog()
{
....
// the sheet
CRect rectWnd;
GetWindowRect(rectWnd);
rectWnd.left = 0;
rectWnd.right=503;
rectWnd.top =0;
rectWnd.bottom = 394;
this->MoveWindow(rectWnd);
// the page
CPropertyPage* pPage = GetActivePage();
pPage->GetWindowRect(rectWnd);
rectWnd.left = 0;
rectWnd.top = 0;
rectWnd.right = 497;
rectWnd.bottom = 315;
pPage->MoveWindow(rectWnd);
}
i have a propertypage wizard. on an english windows it works fine. if i try it on a japanes windows (it's unicode) the surface is much larger than on the english one. the dialog is larger and the controls on the pages are larger, too.
i tried to set the size of the sheet by hand. but i have a problem to set the size and pos of the tab control.
- why is it larger on japanes windows
- how can i set the size and pos of the tab control
thanks for help
best regars
emmi
BOOL CSetup32Sheet::OnInitDialog()
{
....
// the sheet
CRect rectWnd;
GetWindowRect(rectWnd);
rectWnd.left = 0;
rectWnd.right=503;
rectWnd.top =0;
rectWnd.bottom = 394;
this->MoveWindow(rectWnd);
// the page
CPropertyPage* pPage = GetActivePage();
pPage->GetWindowRect(rectWnd);
rectWnd.left = 0;
rectWnd.top = 0;
rectWnd.right = 497;
rectWnd.bottom = 315;
pPage->MoveWindow(rectWnd);
}