17 #ifndef _C_HOOPS_VIEW_
18 #define _C_HOOPS_VIEW_
22 #include "HMFCGlobals.h"
36 #define DEBUG_FORCE_FULL_COLOR 0x00000010
42 #define DEBUG_NO_WINDOWS_HOOK 0x00000040
49 #define DEBUG_SFB_COPY_TO_CLIPBOARD 0x00004000
56 #define DEBUG_STARTUP_CLEAR_BLACK 0x00004000
62 #define DEBUG_NO_RASTERS_IN_PRINTING 0x00020000
68 #define DEBUG_PRINTING_MODE 0x00040000
74 #define DEBUG_CLIPBOARD_MODE 0x00080000
82 #define DEBUG_PRINT_NOT_FRAMEBUFFER_MODE 0x00020000
89 #define DEBUG_PRINT_NOT_RASTER_REDUCTION 0x00200000
95 #define DEBUG_FORCE_SOFTWARE 0x01000000
102 #define DEBUG_NO_PAINTERS_PANELLING 0x00000008
108 #define DEBUG_16BIT_ZBUFFER 0x00200000
156 DIDeviceInfo * di8_data;
187 unsigned long MapFlags(
unsigned long state );
190 unsigned long MapKeyFlags( BYTE * virtual_key_state );
195 HRESULT UpdateDI8State(
unsigned long devIndex );
196 HRESULT CHoopsView::InitDI8(
void );
198 DIDevice * dev_handle;
199 DIDeviceInfo * g_pDevice;
214 CPalette * GetPalette();
221 void InitializePalette();
275 void AdjustAxisWindow();
281 virtual void OnDraw(CDC* pDC);
284 virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
290 virtual void OnInitialUpdate();
294 virtual BOOL Create(__wchar_t
const * lpszClassName, __wchar_t
const * lpszWindowName, DWORD dwStyle,
const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
295 virtual BOOL Create(
unsigned short const * lpszClassName,
unsigned short const * lpszWindowName, DWORD dwStyle,
const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
297 virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle,
const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
302 virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
305 virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
308 virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
319 virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
322 #ifndef DOXYGEN_SHOULD_SKIP_THIS
324 virtual void OnNcDestroy();
326 virtual void PostNcDestroy();
328 #endif // DOXYGEN_SHOULD_SKIP_THIS
337 virtual void AssertValid()
const;
338 virtual void Dump(CDumpContext& dc)
const;
347 virtual void OnDisplayChanged(
int xres,
int yres,
int depth);
360 afx_msg
virtual void OnPaint();
362 afx_msg
virtual void OnSize(UINT,
int,
int);
368 afx_msg
virtual void OnEditCopy();
374 afx_msg
virtual void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
380 afx_msg
virtual void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
386 afx_msg
virtual void OnLButtonDblClk(UINT nFlags, CPoint point);
392 afx_msg
virtual void OnLButtonDown(UINT nFlags, CPoint point);
398 afx_msg
virtual void OnLButtonUp(UINT nFlags, CPoint point);
404 afx_msg
virtual void OnMouseMove(UINT nFlags, CPoint point);
410 afx_msg
virtual void OnRButtonDblClk(UINT nFlags, CPoint point);
416 afx_msg
virtual void OnRButtonDown(UINT nFlags, CPoint point);
422 afx_msg
virtual void OnMButtonUp(UINT nFlags, CPoint point);
428 afx_msg
virtual void OnMButtonDown(UINT nFlags, CPoint point);
434 afx_msg
virtual void OnRButtonUp(UINT nFlags, CPoint point);
440 afx_msg
virtual BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
446 #if (_MSC_VER < 1400)
447 afx_msg
virtual void OnTimer(UINT nIDEvent);
449 afx_msg
virtual void OnTimer(UINT_PTR nIDEvent);
459 static bool GetKeyState(
unsigned int key,
int &flags);
466 afx_msg
virtual BOOL OnMouseWheel( UINT nFlags,
short zDelta, CPoint pt );
471 afx_msg
virtual LRESULT OnAFXDisplayChange( WPARAM wparam, LPARAM lparam);
478 afx_msg
virtual BOOL OnWndMsg( UINT message, WPARAM wParam, LPARAM lParam, LRESULT *pResult);
482 DECLARE_MESSAGE_MAP()
bool GetFastPrint(void)
Definition: CHoopsView.h:229
The CHoopsDoc class provides a HOOPS-specific implementation of the CDocument object.
Definition: CHoopsDoc.h:27
HC_KEY m_ViewKey
Definition: CHoopsView.h:177
bool m_bFastPrint
Definition: CHoopsView.h:150
void SetMetaPrint(bool metaprint)
Definition: CHoopsView.h:243
int m_MetafileType
Definition: CHoopsView.h:168
bool GetClipboardTruecolor(void)
Definition: CHoopsView.h:258
CHoopsDoc * GetDocument()
Definition: CHoopsView.h:486
HBaseView * GetHoopsView(void)
Definition: CHoopsView.h:208
void SetClipboardTruecolor(bool truecolor)
Definition: CHoopsView.h:261
void SetFastPrint(bool fastprint)
Definition: CHoopsView.h:232
bool GetMetaPrint(void)
Definition: CHoopsView.h:238
void SetMetafileType(int emf_or_wmf)
Definition: CHoopsView.h:249
CPalette * m_pViewPalette
Definition: CHoopsView.h:144
bool m_bMetaPrint
Definition: CHoopsView.h:162
int GetMetafileType(void)
Definition: CHoopsView.h:246
HC_KEY m_SceneKey
Definition: CHoopsView.h:184
bool m_bUsingDI8Joystick
Definition: CHoopsView.h:155
HBaseView * m_pHView
Definition: CHoopsView.h:171
void SetFirstUpdate(bool firstupdate)
Definition: CHoopsView.h:255
The CHoopsView class provides a HOOPS-specific implementation of the CView object.
Definition: CHoopsView.h:135
bool m_bClipboardTruecolor
Definition: CHoopsView.h:165
bool GetFirstUpdate()
Definition: CHoopsView.h:252