The Machine Perception Toolbox

[Introduction]- [News]- [Download]- [Screenshots]- [Manual (pdf)]- [Forums]- [API Reference]- [Repository ]

 

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CMainFrame Class Reference

#include <MainFrm.h>

Collaboration diagram for CMainFrame:

Collaboration graph
[legend]
List of all members.

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

MPDirectShowm_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)

Constructor & Destructor Documentation

CMainFrame  ) 
 

Definition at line 30 of file MainFrm.cpp.

00031 {
00032         // TODO: add member initialization code here
00033         
00034 }

~CMainFrame  )  [virtual]
 

Definition at line 36 of file MainFrm.cpp.

00037 {
00038 }


Member Function Documentation

BOOL OnCmdMsg UINT  nID,
int  nCode,
void *  pExtra,
AFX_CMDHANDLERINFO *  pHandlerInfo
[virtual]
 

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 }

int OnCreate LPCREATESTRUCT  lpCreateStruct  )  [protected]
 

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 }

afx_msg void OnSavevideoPause  )  [protected]
 

afx_msg void OnSavevideoResume  )  [protected]
 

afx_msg void OnSavevideoSave  )  [protected]
 

afx_msg void OnSavevideoStop  )  [protected]
 

void OnSetFocus CWnd *  pOldWnd  )  [protected]
 

Definition at line 85 of file MainFrm.cpp.

References m_wndView.

00086 {
00087         // forward focus to the view window
00088         m_wndView.SetFocus();
00089 }

BOOL PreCreateWindow CREATESTRUCT &  cs  )  [virtual]
 

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 }

void setDirectShow MPDirectShow directShow  ) 
 

Definition at line 102 of file MainFrm.cpp.

References m_directShow.

Referenced by CVideoDemoApp::InitInstance().

00103 {
00104         m_directShow = directShow;
00105 }


Member Data Documentation

MPDirectShow* m_directShow
 

Definition at line 24 of file MainFrm.h.

Referenced by setDirectShow().

CChildView m_wndView
 

Definition at line 44 of file MainFrm.h.

Referenced by OnCmdMsg(), OnCreate(), and OnSetFocus().


The documentation for this class was generated from the following files:
Generated on Mon Nov 8 17:08:30 2004 for MPT by  doxygen 1.3.9.1