GME  13
PartBrowserDlg.h
Go to the documentation of this file.
00001 #if !defined(AFX_PARTBROWSERDLG_H__6BE75806_C869_11D3_91EA_00104B98EAD9__INCLUDED_)
00002 #define AFX_PARTBROWSERDLG_H__6BE75806_C869_11D3_91EA_00104B98EAD9__INCLUDED_
00003 
00004 #if _MSC_VER > 1000
00005 #pragma once
00006 #endif // _MSC_VER > 1000
00007 // PartBrowserDlg.h : header file
00008 //
00009 
00010 #include "StdAfx.h"
00011 #include "PartBrowserPaneFrame.h"
00012 
00014 // CPartBrowserDlg dialog
00015 
00016 class CPartBrowserCtrl;
00017 
00018 class CPartBrowserDlg : public CDialog
00019 {
00020 // Construction
00021 public:
00022         CPartBrowserDlg(CWnd* pParent = NULL);   // standard constructor
00023 
00024 public:
00025 // Dialog Data
00026         //{{AFX_DATA(CPartBrowserDlg)
00027         enum { IDD = IDD_PARTBROWSER_DIALOG };
00028         CTabCtrl                tab;
00029         //}}AFX_DATA
00030         CPartBrowserPaneFrame   partFrame;
00031 
00032         CComPtr<IMgaMetaModel>  mgaMetaModel;
00033         CComPtr<IMgaProject>    mgaProject;
00034 
00035 // Overrides
00036         // ClassWizard generated virtual function overrides
00037         //{{AFX_VIRTUAL(CPartBrowserDlg)
00038         protected:
00039         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00040         //}}AFX_VIRTUAL
00041 
00042 public:
00043         void SetCurrentProject(CComPtr<IMgaProject> project);
00044         void SetMetaModel(CComPtr<IMgaMetaModel> meta);
00045         void SetBgColor(COLORREF bgColor);
00046         void ChangeAspect(long ind);
00047         void CycleAspect();
00048         void SetTabs();
00049         void Resize();
00050 // Implementation
00051 protected:
00052 
00053         // Generated message map functions
00054         //{{AFX_MSG(CPartBrowserDlg)
00055         virtual BOOL OnInitDialog();
00056         virtual void OnOK();
00057         virtual void OnCancel();
00058         afx_msg void OnSize(UINT nType, int cx, int cy);
00059         afx_msg void OnSelchangeAspectTab(NMHDR* pNMHDR, LRESULT* pResult);
00060         //}}AFX_MSG
00061         DECLARE_MESSAGE_MAP()
00062 
00063         void SendAspectChange(long index);
00064 };
00065 
00066 //{{AFX_INSERT_LOCATION}}
00067 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
00068 
00069 #endif // !defined(AFX_PARTBROWSERDLG_H__6BE75806_C869_11D3_91EA_00104B98EAD9__INCLUDED_)