Alphabetical Class Index   File Members   Compound Members   File List  

CHoopsFrame Class Reference

The CHoopsFrame class provides a HOOPS-specific implementation of the CMDIFrameWnd(MDI)/CFrameWnd(SDI) object. More...

#include <CHoopsFrm.h>

Public Member Functions

 DECLARE_DYNAMIC (CHoopsFrame)
 macro def for runtime creation
 
 CHoopsFrame (BOOL share)
 
CPalette * GetSharedPalette ()
 
BOOL IsPaletteShared ()
 
void SetPaletteShared (BOOL share)
 
virtual BOOL PreCreateWindow (CREATESTRUCT &cs)
 overloaded, but currently does nothing
 
void OnViewFullScreen ()
 

Protected Member Functions

void DockControlBarLeftOf (CToolBar *Bar, CToolBar *LeftOf)
 
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
 overloaded for custom creation
 
afx_msg BOOL OnQueryNewPalette ()
 custom palette handling
 
afx_msg void OnPaletteChanged (CWnd *pFocusWnd)
 custom palette handling
 
afx_msg void OnMove (int x, int y)
 overloaded to support hardware-accelerated dual-monitor systems
 
virtual afx_msg BOOL OnWndMsg (UINT message, WPARAM wParam, LPARAM lParam, LRESULT *pResult)
 overloaded to handle suspend messages
 
afx_msg void OnGetMinMaxInfo (MINMAXINFO *lpmmi)
 

Protected Attributes

CPalette * m_pPalette
 
BOOL m_bSharePalette
 
CStatusBar m_wndStatusBar
 used by SetPaneText
 
CToolBar m_wndToolBar
 currently unused
 

Detailed Description

The CHoopsFrame class provides a HOOPS-specific implementation of the CMDIFrameWnd(MDI)/CFrameWnd(SDI) object.

CHoopsFrame encapsulates palette sharing/management when using HOOPS in conjuction with MFC.

This is the base class from which all custom HOOPS-based MFC/MDI CMDIFrameWnd/CFrameWnd objects should be derived.

Constructor & Destructor Documentation

CHoopsFrame::CHoopsFrame ( BOOL  share)

Custom constructor

Parameters
shareIndicates whether a single palette should be shared by all the views

Member Function Documentation

void CHoopsFrame::DockControlBarLeftOf ( CToolBar *  Bar,
CToolBar *  LeftOf 
)
protected

Docks the give toolbar to the left-side of the reference toolbar

Parameters
Bar- The toolbar to be docked
LeftOf- The reference toolbar
CPalette* CHoopsFrame::GetSharedPalette ( )
inline
Returns
A pointer to the shared palette
BOOL CHoopsFrame::IsPaletteShared ( )
inline
Returns
Whether or not the palette is shared
void CHoopsFrame::SetPaletteShared ( BOOL  share)

Sets whether the palette should be shared

Member Data Documentation

BOOL CHoopsFrame::m_bSharePalette
protected

Indicates whether the palette should be shared by all the views

CPalette* CHoopsFrame::m_pPalette
protected

Pointer to the palette which is shared by all the views


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