CMakeSetupDialog.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. // CMakeSetupDialogDlg.h : header file
  2. //
  3. #if !defined(AFX_CMakeSetupDialogDLG_H__AC17A6F6_4634_11D4_8F21_00A0CC33FCD3__INCLUDED_)
  4. #define AFX_CMakeSetupDialogDLG_H__AC17A6F6_4634_11D4_8F21_00A0CC33FCD3__INCLUDED_
  5. #if _MSC_VER > 1000
  6. #pragma once
  7. #endif // _MSC_VER > 1000
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CMakeSetupDialog dialog
  10. class CMakeSetupDialog : public CDialog
  11. {
  12. // Construction
  13. public:
  14. CMakeSetupDialog(CWnd* pParent = NULL); // standard constructor
  15. protected:
  16. bool Browse(CString&, const char* title);
  17. void SaveToRegistry();
  18. void LoadFromRegistry();
  19. void ReadRegistryValue(HKEY hKey,
  20. CString *val,
  21. const char *key,
  22. const char *aadefault);
  23. // Dialog Data
  24. //{{AFX_DATA(CMakeSetupDialog)
  25. enum { IDD = IDD_CMakeSetupDialog_DIALOG };
  26. CString m_WhereSource;
  27. CString m_WhereBuild;
  28. //}}AFX_DATA
  29. // ClassWizard generated virtual function overrides
  30. //{{AFX_VIRTUAL(CMakeSetupDialog)
  31. protected:
  32. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  33. //}}AFX_VIRTUAL
  34. // Implementation
  35. protected:
  36. HICON m_hIcon;
  37. CString m_RegistryKey;
  38. // Generated message map functions
  39. //{{AFX_MSG(CMakeSetupDialog)
  40. virtual BOOL OnInitDialog();
  41. afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  42. afx_msg void OnPaint();
  43. afx_msg HCURSOR OnQueryDragIcon();
  44. afx_msg void OnChangeEdit1();
  45. afx_msg void OnBrowse();
  46. virtual void OnOK();
  47. afx_msg void OnButton3();
  48. //}}AFX_MSG
  49. DECLARE_MESSAGE_MAP()
  50. };
  51. //{{AFX_INSERT_LOCATION}}
  52. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  53. #endif // !defined(AFX_CMakeSetupDialogDLG_H__AC17A6F6_4634_11D4_8F21_00A0CC33FCD3__INCLUDED_)