怎么样调整属性页的大小?
我在CFormView中加了一个属性框,并在属性框中加了两个属性页.
CMyPropSheet::CMyPropSheet(CWnd *pParentWnd)
:CPropertySheet(AFX_IDS_APP_TITLE,pParentWnd)
{
AddPage(&m_MyPage1);
AddPage(&m_MyPage2);
}
我在CFormView中初始化占位符和属性框大小:
CRect rectTemp;
this->GetWindowRect(rectTemp);
pwndPropSheetHolder->SetWindowPos(NULL,0,0,rectTemp.Width(),rectTemp.Height(),0);
pwndPropSheetHolder->GetWindowRect(rectTemp);
m_pMyPropSheet->SetWindowPos(NULL,0,0,rectTemp.Width(),rectTemp.Height(),SWP_NOZORDER|SWP_NOACTIVATE);
但运行结果只是占位符充满了速个CFormView视图,属性框只是跟最大的那个属性页一样大.
问:怎么样用语句调整属性页的大小??