OK, Abbrechen, Übernehmen Buttons im Property Sheet
-
ich habe ein property sheet in einem CFormView view.
das ps ist subclassed. die property pages sind ebenfalls subclassed. denke es ist soweit auch alles bekannt. eine simple geschichte. funktioniert auch einwandfrei.
ich möchte in meinem programm einstellungen mit hilfe eines ps vornehmen lassen. das ps und das layout ist bereits fertig. und zwar passt sich das frame an das ps an. d.h. das child fenster ist genau so gross wie das ps und die darin verwalteten pp's.
weiss jemand, wie ich unter das ps noch ein paar buttons hinzufügen kann?
hier meine onsize aus dem psView:
void CEinstellungenView::OnSize(UINT nType, int cx, int cy) { if (nType != SIZE_MINIMIZED && cx != 0 && cy != 0 && m_pPropSheet != NULL) { if (m_bSizedBefore == FALSE) { m_bSizedBefore = TRUE; // get the size of the property sheet CRect rectSized; m_pPropSheet->GetWindowRect(rectSized); // calculate the size of the frame CFrameWnd* pFrame = GetParentFrame(); if (pFrame != NULL) { pFrame->CalcWindowRect(rectSized); CWnd* pParent = pFrame->GetParent(); if (pParent != NULL) pParent->ScreenToClient(rectSized); // resize and reposition the frame pFrame->MoveWindow(rectSized); } } } }