// DIBDDBVw.h : interface of the CDIBDDBView class // ///////////////////////////////////////////////////////////////////////////// #include "DIBDDBDc.h" #if !defined(AFX_DIBDDBVW_H__F5BF7C6C_1786_11D3_9689_0060087C03DE__INCLUDED_) #define AFX_DIBDDBVW_H__F5BF7C6C_1786_11D3_9689_0060087C03DE__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class CDIBDDBView : public CView { protected: // create from serialization only CDIBDDBView(); DECLARE_DYNCREATE(CDIBDDBView) // Attributes public: CDIBDDBDoc* GetDocument(); L_BOOL HandlePalette(UINT uMsg,HWND hWnd); // Operations private: L_INT m_nBitmapType; HBITMAP m_hDDB; HGLOBAL m_hDIB; L_CHAR m_pszFileName[256] ; CBrush m_Brush; public: LBitmapBase m_LeadBitmap; private: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CDIBDDBView) public: virtual void OnDraw(CDC* pDC); // overridden to draw this view protected: virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView); //}}AFX_VIRTUAL // Implementation public: virtual ~CDIBDDBView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: // Generated message map functions protected: //{{AFX_MSG(CDIBDDBView) afx_msg void OnConvertfromDdb(); afx_msg void OnUpdateConvertfromDdb(CCmdUI* pCmdUI); afx_msg void OnConvertfromDib(); afx_msg void OnUpdateConvertfromDib(CCmdUI* pCmdUI); afx_msg void OnConverttoDdb(); afx_msg void OnUpdateConverttoDdb(CCmdUI* pCmdUI); afx_msg void OnConverttoDib(); afx_msg void OnUpdateConverttoDib(CCmdUI* pCmdUI); afx_msg void OnFileOpen(); afx_msg BOOL OnEraseBkgnd(CDC* pDC); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; #ifndef _DEBUG // debug version in DIBDDBVw.cpp inline CDIBDDBDoc* CDIBDDBView::GetDocument() { return (CDIBDDBDoc*)m_pDocument; } #endif ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_DIBDDBVW_H__F5BF7C6C_1786_11D3_9689_0060087C03DE__INCLUDED_)