GME
13
|
00001 #pragma once 00002 //#include "afxwin.h" 00003 #include "GMEStd.h" 00004 #include "GuiObject.h" 00005 #include "afxwin.h" 00006 00007 00008 // CConnityDlg dialog, as in Connectivity 00009 00010 class CConnityDlg : public CDialog 00011 { 00012 DECLARE_DYNAMIC(CConnityDlg) 00013 00014 CGuiConnectionList* m_listC; 00015 00016 CGuiConnection* m_selectedC; 00017 00018 bool m_reverse; 00019 00020 static int m_leftPad; 00021 static int m_rightPad; 00022 static int m_lastCX; 00023 static int m_lastCY; 00024 static int m_smallestCX; 00025 static int m_smallestCY; 00026 00027 public: 00028 CConnityDlg( bool p_reverse, CWnd* pParent = NULL); // standard constructor 00029 virtual ~CConnityDlg(); 00030 00031 void setList( CGuiConnectionList& p_list); 00032 00033 CGuiConnection* getSelectedC(); 00034 00035 // Dialog Data 00036 enum { IDD = IDD_CONNECTIVITYDIALOG }; 00037 00038 virtual BOOL OnInitDialog(); 00039 00040 protected: 00041 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 00042 virtual void OnOK(); 00043 00044 DECLARE_MESSAGE_MAP() 00045 CListBox m_options; 00046 CButton m_ok; 00047 CButton m_ca; 00048 00049 public: 00050 afx_msg void OnLbnDblclkList1(); 00051 afx_msg void OnSize(UINT nType, int cx, int cy); 00052 afx_msg void OnSizing(UINT fwSide, LPRECT pRect); 00053 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 00054 afx_msg void OnPaint(); 00055 00056 };