002
25.03.2004, 20:07 Uhr
~AbsoluteMfcBeginner
Gast
|
Da ist mein Code, der View wird ja angezeigt, nur die Toolbar halt leider nicht...
C++: |
void CMainFrame::ChangeView() {
CDataBaseView* pDataBaseView=(CDataBaseView*)GetActiveView(); CKeyAlgorithmView* pKeyAlgorithmView=new CKeyAlgorithmView(); pKeyAlgorithmView->Create(NULL, NULL, AFX_WS_DEFAULT_VIEW,rectDefault, AfxGetMainWnd(), AFX_IDW_PANE_FIRST + 1, NULL); pKeyAlgorithmView->SetDlgCtrlID(pDataBaseView->GetDlgCtrlID()); CDataBaseDoc* pDoc=(CDataBaseDoc*)GetActiveDocument(); pDoc->AddView(pKeyAlgorithmView); pDoc->RemoveView(pDataBaseView); pKeyAlgorithmView->ShowWindow(SW_SHOW); pDataBaseView->ShowWindow(SW_HIDE); RecalcLayout();
}
|
|