1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| CWnd* pwndPropSheetCont = GetDlgItem(IDC_PICPLAN);
m_mysheetplann = new CSheetGeneralite(_T("sheet"),pwndPropSheetCont,0);
if (!m_mysheetplann->Create(pwndPropSheetCont,
WS_CHILD | WS_VISIBLE, 0))
{
delete m_mysheetplann;
m_mysheetplann = NULL;
//return;
}
// fit the property sheet into the place holder window, and show it
CRect rectPropSheet;
pwndPropSheetCont->GetWindowRect(rectPropSheet);
m_mysheetplann->SetWindowPos(NULL, 0, 0,
rectPropSheet.Width(), rectPropSheet.Height(),
SWP_NOZORDER | SWP_NOACTIVATE); |
Partager