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.

34 lines
1011 B

  1. // Copyright (c) 1997-1999 Microsoft Corporation
  2. #ifndef _NSPICKER_H_
  3. #define _NSPICKER_H_
  4. #pragma once
  5. #include "resource.h"
  6. #include "sshWbemHelpers.h"
  7. //-----------------------------------------------------------------------------
  8. class CNSPicker : public CUIHelpers
  9. {
  10. private:
  11. // Handler prototypes:
  12. LRESULT OnInit(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  13. LRESULT OnContextHelp(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  14. LRESULT OnSelChanged(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
  15. LRESULT OnCommand(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  16. CWbemServices m_WbemService;
  17. HTREEITEM m_hSelectedItem;
  18. public:
  19. CNSPicker(CWbemServices &root);
  20. ~CNSPicker(void);
  21. int DoModal(HWND hDlg);
  22. BOOL CALLBACK DlgProc(HWND hwndDlg, UINT message, WPARAM wParam, LPARAM lParam);
  23. TCHAR m_path[MAX_PATH];
  24. };
  25. BOOL CALLBACK StaticPickerDlgProc(HWND hwndDlg, UINT message, WPARAM wParam, LPARAM lParam);
  26. #endif _NSPICKER_H_