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.

59 lines
1.9 KiB

  1. /*
  2. * ICON.H
  3. *
  4. * Internal definitions, structures, and function prototypes for the
  5. * OLE 2.0 UI Change Icon dialog.
  6. *
  7. * Copyright (c)1992 Microsoft Corporation, All Right Reserved
  8. */
  9. #ifndef _ICON_H_
  10. #define _ICON_H_
  11. #ifndef RC_INVOKED
  12. #pragma message ("INCLUDING ICON.H from " __FILE__)
  13. #endif /* RC_INVOKED */
  14. #define CXICONPAD 12
  15. #define CYICONPAD 4
  16. // Property used by ChangeIcon dialog to give its parent window access to
  17. // its hDlg. The PasteSpecial dialog may need to force the ChgIcon dialog
  18. // down if the clipboard contents change underneath it. if so it will send
  19. // a IDCANCEL command to the ChangeIcon dialog.
  20. #define PROP_HWND_CHGICONDLG TEXT("HWND_CIDLG")
  21. //Internally used structure
  22. typedef struct tagCHANGEICON
  23. {
  24. LPOLEUICHANGEICON lpOCI; //Original structure passed.
  25. /*
  26. * What we store extra in this structure besides the original caller's
  27. * pointer are those fields that we need to modify during the life of
  28. * the dialog but that we don't want to change in the original structure
  29. * until the user presses OK.
  30. */
  31. DWORD dwFlags;
  32. HICON hCurIcon;
  33. TCHAR szLabel[OLEUI_CCHLABELMAX+1];
  34. TCHAR szFile[OLEUI_CCHPATHMAX];
  35. UINT iIcon;
  36. HICON hDefIcon;
  37. TCHAR szDefIconFile[OLEUI_CCHPATHMAX];
  38. UINT iDefIcon;
  39. UINT nBrowseHelpID; // Help ID callback for Browse dlg
  40. } CHANGEICON, *PCHANGEICON, FAR *LPCHANGEICON;
  41. //Internal function prototypes
  42. //ICON.C
  43. BOOL CALLBACK EXPORT ChangeIconDialogProc(HWND, UINT, WPARAM, LPARAM);
  44. BOOL FChangeIconInit(HWND, WPARAM, LPARAM);
  45. UINT UFillIconList(HWND, UINT, LPTSTR);
  46. BOOL FDrawListIcon(LPDRAWITEMSTRUCT);
  47. void UpdateResultIcon(LPCHANGEICON, HWND, UINT);
  48. #endif //_ICON_H_
  49.