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.

32 lines
2.1 KiB

  1. //+----------------------------------------------------------------------------
  2. //
  3. // File: listview.h
  4. //
  5. // Module: CMAK.EXE
  6. //
  7. // Synopsis: Function definitions of the helper functions used by CMAK to deal
  8. // with the custom action list view control.
  9. //
  10. // Copyright (c) 2000 Microsoft Corporation
  11. //
  12. // Author: quintinb Created 02/26/00
  13. //
  14. //+----------------------------------------------------------------------------
  15. BOOL UpdateListViewColumnHeadings(HINSTANCE hInstance, HWND hListView, UINT uStringID, int iColumnIndex);
  16. BOOL AddListViewColumnHeadings(HINSTANCE hInstance, HWND hListView);
  17. HRESULT MapComboSelectionToType(HWND hDlg, UINT uCtrlID, BOOL bIncludesAll, BOOL bUseTunneling, CustomActionTypes* pType);
  18. HRESULT GetDescriptionAndTypeOfItem(HINSTANCE hInstance, HWND hDlg, HWND hListView, UINT uComboBoxId, CustomActionListItem* pItem, int* piItemIndex, BOOL bUseTunneling);
  19. HRESULT GetItemTypeByListViewIndex(HINSTANCE hInstance, HWND hListView, CustomActionTypes* pType, int* piIndex);
  20. void SetListViewSelection(HWND hListView, int iIndex);
  21. void RefreshEditDeleteMoveButtonStates(HINSTANCE hInstance, HWND hDlg, HWND hListView, UINT uComboCtrlId, int* piIndex, BOOL bUseTunneling);
  22. void RefreshListView(HINSTANCE hInstance, HWND hDlg, UINT uComboCtrlId, HWND hListView, int iItemToSelect, BOOL bUseTunneling);
  23. void OnProcessCustomActionsAdd(HINSTANCE hInstance, HWND hDlg, HWND hListView, BOOL bUseTunneling);
  24. void OnProcessCustomActionsDelete(HINSTANCE hInstance, HWND hDlg, HWND hListView, BOOL bUseTunneling);
  25. void OnProcessCustomActionsEdit(HINSTANCE hInstance, HWND hDlg, HWND hListView, BOOL bUseTunneling);
  26. void OnProcessCustomActionsMoveUp(HINSTANCE hInstance, HWND hDlg, HWND hListView, BOOL bUseTunneling);
  27. void OnProcessCustomActionsMoveDown(HINSTANCE hInstance, HWND hDlg, HWND hListView, BOOL bUseTunneling);
  28. void OnProcessCustomActionsContextMenu(HINSTANCE hInstance, HWND hDlg, HWND hListView,
  29. NMITEMACTIVATE* pItemActivate, BOOL bUseTunneling, UINT uComboCtrlId);