Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
1.8 KiB

  1. /*++
  2. Copyright (C) 1997-2001 Microsoft Corporation
  3. Module Name:
  4. Abstract:
  5. History:
  6. --*/
  7. #if !defined(AFX_GETTEXTDLG_H__CFC1C8AB_E4F4_43F7_9CAA_DF7667AE011A__INCLUDED_)
  8. #define AFX_GETTEXTDLG_H__CFC1C8AB_E4F4_43F7_9CAA_DF7667AE011A__INCLUDED_
  9. #if _MSC_VER > 1000
  10. #pragma once
  11. #endif // _MSC_VER > 1000
  12. // GetTextDlg.h : header file
  13. //
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CGetTextDlg dialog
  16. class CGetTextDlg : public CDialog
  17. {
  18. // Construction
  19. public:
  20. CGetTextDlg(CWnd* pParent = NULL); // standard constructor
  21. CStringList m_listItems;
  22. // Dialog Data
  23. //{{AFX_DATA(CGetTextDlg)
  24. enum { IDD = IDD_GET_TEXT };
  25. CComboBox m_ctlStrings;
  26. BOOL m_bOptionChecked;
  27. //}}AFX_DATA
  28. IWbemServices *m_pNamespace; // For the class browser
  29. DWORD m_dwTitleID,
  30. m_dwPromptID,
  31. m_dwOptionID;
  32. CString m_strText;
  33. BOOL m_bEmptyOK,
  34. m_bAllowClassBrowse,
  35. m_bAllowQueryBrowse;
  36. CString m_strSuperClass;
  37. void LoadListViaReg(LPCTSTR szSection, int nItems = 10);
  38. // Overrides
  39. // ClassWizard generated virtual function overrides
  40. //{{AFX_VIRTUAL(CGetTextDlg)
  41. protected:
  42. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  43. //}}AFX_VIRTUAL
  44. // Implementation
  45. protected:
  46. CString m_strSection;
  47. int m_nItems;
  48. void SaveListToReg();
  49. // Generated message map functions
  50. //{{AFX_MSG(CGetTextDlg)
  51. afx_msg void OnOk();
  52. afx_msg void OnEditchangeStrings();
  53. virtual BOOL OnInitDialog();
  54. afx_msg void OnBrowse();
  55. //}}AFX_MSG
  56. DECLARE_MESSAGE_MAP()
  57. };
  58. //{{AFX_INSERT_LOCATION}}
  59. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  60. #endif // !defined(AFX_GETTEXTDLG_H__CFC1C8AB_E4F4_43F7_9CAA_DF7667AE011A__INCLUDED_)