|
|
1.1 root 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:
10:
11: #ifndef _ICON_H_
12: #define _ICON_H_
13:
14: #define CXICONPAD 12
15: #define CYICONPAD 4
16:
17: //Internally used structure
18: typedef struct tagCHANGEICON
19: {
20: LPOLEUICHANGEICON lpOCI; //Original structure passed.
21:
22: /*
23: * What we store extra in this structure besides the original caller's
24: * pointer are those fields that we need to modify during the life of
25: * the dialog but that we don't want to change in the original structure
26: * until the user presses OK.
27: */
28: DWORD dwFlags;
29: HICON hCurIcon;
30: char szLabel[OLEUI_CCHLABELMAX+1];
31: char szFile[OLEUI_CCHPATHMAX];
32: UINT iIcon;
33: HICON hDefIcon;
34: char szDefIconFile[OLEUI_CCHPATHMAX];
35: UINT iDefIcon;
36: } CHANGEICON, *PCHANGEICON, FAR *LPCHANGEICON;
37:
38:
39: //Internal function prototypes
40: //ICON.C
41: BOOL CALLBACK EXPORT ChangeIconDialogProc(HWND, UINT, WPARAM, LPARAM);
42: BOOL FChangeIconInit(HWND, WPARAM, LPARAM);
43: UINT UFillIconList(HWND, UINT, LPSTR);
44: BOOL FDrawListIcon(LPDRAWITEMSTRUCT);
45: void UpdateResultIcon(LPCHANGEICON, HWND, UINT);
46:
47:
48: #endif //_ICON_H_
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.