![]() |
The Machine Perception Toolbox |
|
#include <MainFrm.h>
Collaboration diagram for CMainFrame:
Public Member Functions | |
CMainFrame () | |
virtual BOOL | OnCmdMsg (UINT nID, int nCode, void *pExtra, AFX_CMDHANDLERINFO *pHandlerInfo) |
virtual BOOL | PreCreateWindow (CREATESTRUCT &cs) |
void | setDirectShow (MPDirectShow *directShow) |
virtual | ~CMainFrame () |
Public Attributes | |
MPDirectShow * | m_directShow |
CChildView | m_wndView |
Protected Member Functions | |
afx_msg int | OnCreate (LPCREATESTRUCT lpCreateStruct) |
afx_msg void | OnSavevideoPause () |
afx_msg void | OnSavevideoResume () |
afx_msg void | OnSavevideoSave () |
afx_msg void | OnSavevideoStop () |
afx_msg void | OnSetFocus (CWnd *pOldWnd) |
|
Definition at line 30 of file MainFrm.cpp. 00031 {
00032 // TODO: add member initialization code here
00033
00034 }
|
|
Definition at line 36 of file MainFrm.cpp. 00037 { 00038 }
|
|
Definition at line 91 of file MainFrm.cpp. References BOOL, and m_wndView. 00092 { 00093 // let the view have first crack at the command 00094 if (m_wndView.OnCmdMsg(nID, nCode, pExtra, pHandlerInfo)) 00095 return TRUE; 00096 00097 // otherwise, do default handling 00098 return CFrameWnd::OnCmdMsg(nID, nCode, pExtra, pHandlerInfo); 00099 }
|
|
Definition at line 40 of file MainFrm.cpp. References m_wndView. 00041 { 00042 if (CFrameWnd::OnCreate(lpCreateStruct) == -1) 00043 return -1; 00044 // create a view to occupy the client area of the frame 00045 if (!m_wndView.Create(NULL, NULL, AFX_WS_DEFAULT_VIEW, 00046 CRect(0, 0, 0, 0), this, AFX_IDW_PANE_FIRST, NULL)) 00047 { 00048 TRACE0("Failed to create view window\n"); 00049 return -1; 00050 } 00051 00052 return 0; 00053 }
|
|
|
|
|
|
|
|
|
|
Definition at line 85 of file MainFrm.cpp. References m_wndView. 00086 { 00087 // forward focus to the view window 00088 m_wndView.SetFocus(); 00089 }
|
|
Definition at line 55 of file MainFrm.cpp. References BOOL. 00056 { 00057 if( !CFrameWnd::PreCreateWindow(cs) ) 00058 return FALSE; 00059 // TODO: Modify the Window class or styles here by modifying 00060 // the CREATESTRUCT cs 00061 00062 cs.dwExStyle &= ~WS_EX_CLIENTEDGE; 00063 cs.lpszClass = AfxRegisterWndClass(0); 00064 return TRUE; 00065 }
|
|
Definition at line 102 of file MainFrm.cpp. References m_directShow. Referenced by CVideoDemoApp::InitInstance(). 00103 { 00104 m_directShow = directShow; 00105 }
|
|
Definition at line 24 of file MainFrm.h. Referenced by setDirectShow(). |
|
Definition at line 44 of file MainFrm.h. Referenced by OnCmdMsg(), OnCreate(), and OnSetFocus(). |