GME  13
CompDlg.h
Go to the documentation of this file.
00001 #if !defined(AFX_COMPDLG_H__A649CFE3_4781_11D4_B3F9_005004D38590__INCLUDED_)
00002 #define AFX_COMPDLG_H__A649CFE3_4781_11D4_B3F9_005004D38590__INCLUDED_
00003 
00004 #if _MSC_VER > 1000
00005 #pragma once
00006 #endif // _MSC_VER > 1000
00007 // CompDlg.h : header file
00008 //
00009 #include <fstream> //<fstream.h>
00010 
00012 // CCompDlg dialog
00013 
00014 class CCompDlg : public CDialog
00015 {
00016 // Construction
00017         CImageList iconlist, sticonlist;
00018         CString to_select;
00019 public:
00020         CCompDlg(CWnd* pParent = NULL);   // standard constructor
00021 
00022 // Dialog Data
00023         //{{AFX_DATA(CCompDlg)
00024         enum { IDD = IDD_COMPDLG };
00025         CButton m_enable_disable;
00026         CButton m_remove;
00027         CButton m_install;
00028         CListCtrl       m_list;
00029         int             m_accessmode;
00030         int             m_dispmode;
00031         //}}AFX_DATA
00032 
00033 
00034 // Overrides
00035         // ClassWizard generated virtual function overrides
00036         //{{AFX_VIRTUAL(CCompDlg)
00037         protected:
00038         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00039         virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult);
00040         //}}AFX_VIRTUAL
00041 
00042 // Implementation
00043 protected:
00044 
00045         // Generated message map functions
00046         //{{AFX_MSG(CCompDlg)
00047         virtual BOOL OnInitDialog();
00048         virtual void OnOK();
00049         afx_msg void OnRemove();
00050         afx_msg void OnInstall();
00051         afx_msg void OnActivedisp();
00052         afx_msg void OnActiveInactive();
00053         afx_msg void OnAllcomps();
00054         afx_msg void OnEnableDisable();
00055         //}}AFX_MSG
00056         DECLARE_MESSAGE_MAP()
00057 
00058 protected:
00059         void RefreshShieldIcons();
00060         void ResetItems();
00061         void RegisterDll(const CString &path);
00062         void RegisterPattern(const CString &path);
00063         void RegisterUnknownFile(const CString &path);
00064         void UpdateEnableDisable();
00065 
00066         CComPtr<IMgaRegistrar> m_elevatedRegistrar;
00067         HRESULT GetElevatedRegistrar(IMgaRegistrar** registrar);
00068 
00069 public:
00070         CString paradigm;
00071         componenttype_enum type;
00072         CComVariant parameter;
00073         CString progid;
00074         CString onOKoper;
00075         afx_msg void OnSize(UINT nType, int cx, int cy);
00076         afx_msg void OnBnClickedRadiosys();
00077         afx_msg void OnBnClickedRadiouser();
00078         afx_msg void OnBnClickedRadioboth();
00079         afx_msg void OnAllCompsHeader(NMHDR* pNMHDR, LRESULT* pResult);
00080         static int CALLBACK CCompDlg::SortFunc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort);
00081 
00082 private:
00083         bool    firstResize;
00084         CRect   lastRect;
00085         CRect   GetWindowSizeFromResource(void) const;
00086         void    MoveControl(int nID, int offsetX, int offsetY, int deltaWidth, int deltaHeight,
00087                                                 bool defer = false, HDWP* pdwp = NULL);
00088 };
00089 
00090 //{{AFX_INSERT_LOCATION}}
00091 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
00092 
00093 #endif // !defined(AFX_COMPDLG_H__A649CFE3_4781_11D4_B3F9_005004D38590__INCLUDED_)