00001 #pragma once 00002 00003 #include "BottomDialog.h" 00004 00005 // Vue CBottomView 00006 00007 class CBottomView : public CView 00008 { 00009 DECLARE_DYNCREATE(CBottomView) 00010 00011 protected: 00012 CBottomDialog m_BottomDlg; 00013 CImageList m_ImageList; 00014 HICON m_hIconMesh; 00015 HICON m_hIconAnim; 00016 HICON m_hIconMeshAnim; 00017 bool m_bShowSelection; 00018 00019 CBottomView(); // constructeur protégé utilisé par la création dynamique 00020 virtual ~CBottomView(); 00021 00022 void InitViewer(); 00023 void ResetRenderEffect(); 00024 00025 public: 00026 virtual void OnDraw(CDC* pDC); // substitué pour dessiner cette vue 00027 #ifdef _DEBUG 00028 virtual void AssertValid() const; 00029 virtual void Dump(CDumpContext& dc) const; 00030 #endif 00031 00032 CBottomDialog* GetBottomDialog() { return &m_BottomDlg; } 00033 CViewerDoc* GetDocument() const; 00034 void Refresh(); 00035 bool IsShowSelection() { return m_bShowSelection; } 00036 void SetShowSelection( bool bShow ) { m_bShowSelection = bShow; } 00037 00038 protected: 00039 DECLARE_MESSAGE_MAP() 00040 public: 00041 afx_msg void OnSize(UINT nType, int cx, int cy); 00042 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 00043 }; 00044 00045 #ifndef _DEBUG // version de débogage dans BottomView.cpp 00046 inline CViewerDoc* CBottomView::GetDocument() const 00047 { return reinterpret_cast<CViewerDoc*>(m_pDocument); } 00048 #endif 00049 00050
1.5.1-p1