Leaked source code of windows server 2003
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.

45 lines
1.7 KiB

  1. //-----------------------------------------------------------------------------
  2. // PromptForPathDlg.h
  3. //-----------------------------------------------------------------------------
  4. #ifndef _PROMPTFORPATHDLG_H
  5. #define _PROMPTFORPATHDLG_H
  6. class CPromptForPathDlg : public CDialogImpl< CPromptForPathDlg >
  7. {
  8. //-------------------------------------------------------------------------
  9. // Functions
  10. //-------------------------------------------------------------------------
  11. public:
  12. BEGIN_MSG_MAP(CPromptForPathDlg)
  13. MESSAGE_HANDLER( WM_INITDIALOG, OnInitDialog )
  14. COMMAND_ID_HANDLER( IDOK, OnOK )
  15. COMMAND_ID_HANDLER( IDCANCEL, OnCancel )
  16. COMMAND_ID_HANDLER( IDC_BNBrowse, OnBrowse )
  17. END_MSG_MAP()
  18. CPromptForPathDlg ( CComBSTR bszDef, HINSTANCE hInst, BOOL bWinSB );
  19. LRESULT OnInitDialog ( UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled );
  20. LRESULT OnOK ( WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& handled );
  21. LRESULT OnCancel ( WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& handled );
  22. LRESULT OnBrowse ( WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& handled );
  23. void GetInput ( CComBSTR* bsz );
  24. //-------------------------------------------------------------------------
  25. // Variables
  26. //-------------------------------------------------------------------------
  27. public:
  28. typedef CDialogImpl< CPromptForPathDlg > BC;
  29. enum { IDD = IDD_PromptForPath };
  30. CComBSTR m_bszComp;
  31. CComBSTR m_bszDef;
  32. HINSTANCE m_hInst;
  33. BOOL m_bWinSB;
  34. }; // class CSmallProgressDlg
  35. #endif // _PROMPTFORPATHDLG_H