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