22 #ifndef _C_HOOPS_VIEW_
23 #define _C_HOOPS_VIEW_
27 #include "HMFCGlobals.h"
41 #define DEBUG_FORCE_FULL_COLOR 0x00000010
47 #define DEBUG_NO_WINDOWS_HOOK 0x00000040
54 #define DEBUG_SFB_COPY_TO_CLIPBOARD 0x00004000
61 #define DEBUG_STARTUP_CLEAR_BLACK 0x00004000
67 #define DEBUG_NO_RASTERS_IN_PRINTING 0x00020000
73 #define DEBUG_PRINTING_MODE 0x00040000
79 #define DEBUG_CLIPBOARD_MODE 0x00080000
87 #define DEBUG_PRINT_NOT_FRAMEBUFFER_MODE 0x00020000
94 #define DEBUG_PRINT_NOT_RASTER_REDUCTION 0x00200000
100 #define DEBUG_FORCE_SOFTWARE 0x01000000
107 #define DEBUG_NO_PAINTERS_PANELLING 0x00000008
113 #define DEBUG_16BIT_ZBUFFER 0x00200000
161 DIDeviceInfo *di8_data;
192 unsigned long MapFlags(
unsigned long state );
195 unsigned long MapKeyFlags( BYTE * virtual_key_state );
200 HRESULT UpdateDI8State(
unsigned long devIndex );
201 HRESULT CHoopsView::InitDI8(
void );
203 DIDevice *dev_handle;
204 DIDeviceInfo *g_pDevice;
219 CPalette* GetPalette();
226 void InitializePalette();
269 void SaveEMF(
const char *filename, HOutputHandlerOptions * options = 0);
280 void AdjustAxisWindow();
286 virtual void OnDraw(CDC* pDC);
289 virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
295 virtual void OnInitialUpdate();
299 virtual BOOL Create(__wchar_t
const * lpszClassName, __wchar_t
const * lpszWindowName, DWORD dwStyle,
const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
300 virtual BOOL Create(
unsigned short const * lpszClassName,
unsigned short const * lpszWindowName, DWORD dwStyle,
const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
302 virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle,
const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
307 virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
310 virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
313 virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
324 virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
327 #ifndef DOXYGEN_SHOULD_SKIP_THIS
329 virtual void OnNcDestroy();
331 virtual void PostNcDestroy();
333 #endif // DOXYGEN_SHOULD_SKIP_THIS
342 virtual void AssertValid()
const;
343 virtual void Dump(CDumpContext& dc)
const;
352 virtual void OnDisplayChanged(
int xres,
int yres,
int depth);
365 afx_msg
virtual void OnPaint();
367 afx_msg
virtual void OnSize(UINT,
int,
int);
373 afx_msg
virtual void OnEditCopy();
379 afx_msg
virtual void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
385 afx_msg
virtual void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
391 afx_msg
virtual void OnLButtonDblClk(UINT nFlags, CPoint point);
397 afx_msg
virtual void OnLButtonDown(UINT nFlags, CPoint point);
403 afx_msg
virtual void OnLButtonUp(UINT nFlags, CPoint point);
409 afx_msg
virtual void OnMouseMove(UINT nFlags, CPoint point);
415 afx_msg
virtual void OnRButtonDblClk(UINT nFlags, CPoint point);
421 afx_msg
virtual void OnRButtonDown(UINT nFlags, CPoint point);
427 afx_msg
virtual void OnMButtonUp(UINT nFlags, CPoint point);
433 afx_msg
virtual void OnMButtonDown(UINT nFlags, CPoint point);
439 afx_msg
virtual void OnRButtonUp(UINT nFlags, CPoint point);
445 afx_msg
virtual BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
451 #if (_MSC_VER < 1400)
452 afx_msg
virtual void OnTimer(UINT nIDEvent);
454 afx_msg
virtual void OnTimer(UINT_PTR nIDEvent);
464 static bool GetKeyState(
unsigned int key,
int &flags);
471 afx_msg
virtual BOOL OnMouseWheel( UINT nFlags,
short zDelta, CPoint pt );
476 afx_msg
virtual LRESULT OnAFXDisplayChange( WPARAM wparam, LPARAM lparam);
483 afx_msg
virtual BOOL OnWndMsg( UINT message, WPARAM wParam, LPARAM lParam, LRESULT *pResult);
487 DECLARE_MESSAGE_MAP()
bool GetFastPrint(void)
Definition: CHoopsView.h:234
The CHoopsDoc class provides a HOOPS-specific implementation of the CDocument object.
Definition: CHoopsDoc.h:32
HC_KEY m_ViewKey
Definition: CHoopsView.h:182
bool m_bFastPrint
Definition: CHoopsView.h:155
void SetMetaPrint(bool metaprint)
Definition: CHoopsView.h:248
int m_MetafileType
Definition: CHoopsView.h:173
bool GetClipboardTruecolor(void)
Definition: CHoopsView.h:263
CHoopsDoc * GetDocument()
Definition: CHoopsView.h:491
HBaseView * GetHoopsView(void)
Definition: CHoopsView.h:213
void SetClipboardTruecolor(bool truecolor)
Definition: CHoopsView.h:266
void SetFastPrint(bool fastprint)
Definition: CHoopsView.h:237
bool GetMetaPrint(void)
Definition: CHoopsView.h:243
void SetMetafileType(int emf_or_wmf)
Definition: CHoopsView.h:254
CPalette * m_pViewPalette
Definition: CHoopsView.h:149
bool m_bMetaPrint
Definition: CHoopsView.h:167
int GetMetafileType(void)
Definition: CHoopsView.h:251
HC_KEY m_SceneKey
Definition: CHoopsView.h:189
bool m_bUsingDI8Joystick
Definition: CHoopsView.h:160
HBaseView * m_pHView
Definition: CHoopsView.h:176
void SetFirstUpdate(bool firstupdate)
Definition: CHoopsView.h:260
The CHoopsView class provides a HOOPS-specific implementation of the CView object.
Definition: CHoopsView.h:140
bool m_bClipboardTruecolor
Definition: CHoopsView.h:170
bool GetFirstUpdate()
Definition: CHoopsView.h:257