Public Member Functions | Protected Member Functions | Protected Attributes
vgui_mfc_mainfrm Class Reference

Defines main window of the application. More...

#include <vgui_mfc_mainfrm.h>

List of all members.

Public Member Functions

virtual BOOL PreCreateWindow (CREATESTRUCT &cs)
 Called by MFC before window creation.
virtual void process_menus (UINT nID)
 Called whenever a menu item has been selected.
virtual ~vgui_mfc_mainfrm ()
virtual void SetStatusBar (vgui_mfc_statusbar *sb)
virtual void UpdateStatusBar (CCmdUI *sb)

Protected Member Functions

 vgui_mfc_mainfrm ()
afx_msg void OnClose ()
BOOL PreTranslateMessage (MSG *pMsg)
 Called by MFC before a message is sent to the menus.
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
 Called when the window is created.
afx_msg void OnVScroll (UINT nSBCode, UINT nPos, CScrollBar *pScrollBar)
 Called when a vertical scroll bar sends a signal.
afx_msg void OnHScroll (UINT nSBCode, UINT nPos, CScrollBar *pScrollBar)
 Called when a horizontal scroll bar sends a signal.
afx_msg void OnUpdateStatusBar (CCmdUI *sbar)
 Updates status bar.
afx_msg void OnTimer (UINT_PTR)
 Called when specified timer has expired.

Protected Attributes

vgui_mfc_statusbarstatusbar

Detailed Description

Defines main window of the application.

Definition at line 24 of file vgui_mfc_mainfrm.h.


Constructor & Destructor Documentation

vgui_mfc_mainfrm::vgui_mfc_mainfrm ( ) [protected]
vgui_mfc_mainfrm::~vgui_mfc_mainfrm ( ) [virtual]

Definition at line 45 of file vgui_mfc_mainfrm.cxx.


Member Function Documentation

void vgui_mfc_mainfrm::OnClose ( ) [protected]

Definition at line 70 of file vgui_mfc_mainfrm.cxx.

int vgui_mfc_mainfrm::OnCreate ( LPCREATESTRUCT  lpCreateStruct) [protected]

Called when the window is created.

Called by MFC on window creation.

Definition at line 63 of file vgui_mfc_mainfrm.cxx.

void vgui_mfc_mainfrm::OnHScroll ( UINT  nSBCode,
UINT  nPos,
CScrollBar *  pScrollBar 
) [protected]

Called when a horizontal scroll bar sends a signal.

Called when ON_WM_HSCROLL message is received.

Definition at line 102 of file vgui_mfc_mainfrm.cxx.

void vgui_mfc_mainfrm::OnTimer ( UINT_PTR  id) [protected]

Called when specified timer has expired.

Definition at line 189 of file vgui_mfc_mainfrm.cxx.

void vgui_mfc_mainfrm::OnUpdateStatusBar ( CCmdUI *  sbar) [protected]

Updates status bar.

Definition at line 183 of file vgui_mfc_mainfrm.cxx.

void vgui_mfc_mainfrm::OnVScroll ( UINT  nSBCode,
UINT  nPos,
CScrollBar *  pScrollBar 
) [protected]

Called when a vertical scroll bar sends a signal.

Called when ON_WM_VSCROLL message is received.

Definition at line 143 of file vgui_mfc_mainfrm.cxx.

BOOL vgui_mfc_mainfrm::PreCreateWindow ( CREATESTRUCT &  cs) [virtual]

Called by MFC before window creation.

Store any desired info in cs. Returns non-zero value to indicate creation should continue.

Definition at line 52 of file vgui_mfc_mainfrm.cxx.

BOOL vgui_mfc_mainfrm::PreTranslateMessage ( MSG *  pmsg) [protected]

Called by MFC before a message is sent to the menus.

We are overriding this function so we can use our own menu accelerators defined AccelTable. FIXME - kym, this doesn't seem to work!!!

Definition at line 85 of file vgui_mfc_mainfrm.cxx.

void vgui_mfc_mainfrm::process_menus ( UINT  nID) [virtual]

Called whenever a menu item has been selected.

Definition at line 96 of file vgui_mfc_mainfrm.cxx.

virtual void vgui_mfc_mainfrm::SetStatusBar ( vgui_mfc_statusbar sb) [inline, virtual]

Definition at line 37 of file vgui_mfc_mainfrm.h.

virtual void vgui_mfc_mainfrm::UpdateStatusBar ( CCmdUI *  sb) [inline, virtual]

Definition at line 38 of file vgui_mfc_mainfrm.h.


Member Data Documentation

Definition at line 27 of file vgui_mfc_mainfrm.h.


The documentation for this class was generated from the following files: