Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
2.3 KiB

  1. #ifndef __PBRUSFRM_H__
  2. #define __PBRUSFRM_H__
  3. #include "toolbox.h"
  4. class CImagingMgr;
  5. // pbrusfrm.h : interface of the CPBFrame class
  6. //
  7. /***************************************************************************/
  8. class CPBFrame : public CFrameWnd
  9. {
  10. protected: /****** create from serialization only *************************/
  11. CPBFrame();
  12. DECLARE_DYNCREATE( CPBFrame )
  13. public: /*** Attributes ***************************************************/
  14. CPoint m_ptPosition;
  15. CSize m_szFrame;
  16. CSize m_szFrameMin;
  17. CStatBar m_statBar;
  18. CImgToolWnd m_toolBar;
  19. CImgColorsWnd m_colorBar;
  20. CImagingMgr *m_pMgr;
  21. public: /*** Implementation ***********************************************/
  22. virtual ~CPBFrame();
  23. #ifdef _DEBUG
  24. virtual void AssertValid() const;
  25. virtual void Dump( CDumpContext& dc ) const;
  26. #endif
  27. protected: /***************************************************************/
  28. virtual BOOL PreCreateWindow( CREATESTRUCT& cs );
  29. virtual CWnd* GetMessageBar();
  30. virtual void ActivateFrame( int nCmdShow = -1 );
  31. // virtual void OnUpdateFrameTitle(BOOL bAddToTitle);
  32. afx_msg LRESULT OnFileError( WPARAM wParam, LPARAM lParam );
  33. // Generated message map functions
  34. //{{AFX_MSG(CPBFrame)
  35. afx_msg void OnUpdateAcquire (CCmdUI *pCmdUI);
  36. afx_msg void OnAcquire ();
  37. afx_msg void OnUpdateSelectSource(CCmdUI* pCmdUI);
  38. afx_msg void OnSelectSource();
  39. afx_msg void OnActivateApp(BOOL bActive, HTASK hTask);
  40. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  41. afx_msg void OnDestroy();
  42. afx_msg void OnSetFocus(CWnd* pOldWnd);
  43. afx_msg void OnPaletteChanged(CWnd* pFocusWnd);
  44. afx_msg BOOL OnQueryNewPalette();
  45. afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI);
  46. afx_msg void OnMove(int x, int y);
  47. afx_msg void OnSize(UINT nType, int cx, int cy);
  48. afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  49. afx_msg void OnDevModeChange(LPTSTR lpDeviceName);
  50. afx_msg void OnWinIniChange(LPCTSTR lpszSection);
  51. afx_msg void OnHelp();
  52. afx_msg void OnSysColorChange();
  53. afx_msg void OnClose();
  54. //}}AFX_MSG
  55. DECLARE_MESSAGE_MAP()
  56. };
  57. /***************************************************************************/
  58. #endif // __PBRUSHFRM_H__