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.

50 lines
1.3 KiB

  1. #include "stdafx.h"
  2. #include "afxcview.h"
  3. #include "wab.h"
  4. class CWAB
  5. {
  6. public:
  7. CWAB(CString * pszFileName);
  8. ~CWAB();
  9. HRESULT LoadWABContents(CListCtrl * pListView);
  10. void ClearWABLVContents(CListCtrl * pListView);
  11. void LoadPropTags(CListBox * pList);
  12. void SetPropString(CEdit * pEdit, ULONG ulPropTag);
  13. void ShowSelectedItemDetails(HWND hWndParent);
  14. HRESULT ShowNewEntryDialog(HWND hWndParent);
  15. HRESULT DeleteEntry();
  16. void GetSelectedItemPropArray();
  17. BOOL GetStringPropVal(HWND hWnd, ULONG ulPropTag, LPTSTR sz, ULONG cbsz);
  18. BOOL SetSingleStringProp(HWND hWnd, ULONG ulPropTag, LPTSTR sz);
  19. void SetSelection(CListCtrl * pListView);
  20. void ShowAddressBook(HWND hWnd);
  21. private:
  22. BOOL m_bInitialized;
  23. HINSTANCE m_hinstWAB;
  24. LPWABOPEN m_lpfnWABOpen;
  25. LPADRBOOK m_lpAdrBook;
  26. LPWABOBJECT m_lpWABObject;
  27. HWND m_hWndModelessWABWindow;
  28. // Cache Proparray of currently selected item in the list view
  29. LPSPropValue m_lpPropArray;
  30. ULONG m_ulcValues;
  31. // Cache entry id of currently selected item in the listview
  32. SBinary m_SB;
  33. void FreeProws(LPSRowSet prows);
  34. HRESULT HrGetWABTemplateID(ULONG ulObjectType, ULONG * lpcbEID, LPENTRYID * lppEID);
  35. };