|
|
1.1 root 1: /*
2: * INFOCTRL.H
3: *
4: * This module implements a custom information display control which
5: * can present up to 7 seperate strings of information at once and is
6: * sizeable and moveable with the mouse.
7: */
8:
9: // STYLES
10:
11: #define ICSTY_OWNERDRAW 0x0001 // set if the central information is not
12: // standard text.
13: #define ICSTY_SHOWFOCUS 0x0002 // set to allow focus painting an movement
14:
15: #define ICSTY_HASFOCUS 0x8000
16:
17: #define ICN_OWNERDRAW (WM_USER + 676) // notifies to draw
18: // wParam=id, lParam=OWNERDRAWPS FAR *
19: #define ICN_HASFOCUS (WM_USER + 677) // notifies of focus set
20: // wParam=fFocus, lParam=(hMemCtrlData, hwnd)
21: #define ICN_BYEBYE (WM_USER + 678) // notifies of imminent death
22: // wParam=hwnd, lParam=dwUser
23:
24: #define ICM_SETSTRING (WM_USER + 776) // alters a string
25: // wParam=index, lParam=LPSTR
26:
27: #define ICSID_UL 0
28: #define ICSID_UC 1
29: #define ICSID_UR 2
30: #define ICSID_LL 3
31: #define ICSID_LC 4
32: #define ICSID_LR 5
33: #define ICSID_CENTER 6
34:
35: #define GWL_USER 0
36: #define GWL_INFODATA 4
37: #define ICCBWNDEXTRA 8
38:
39: HWND CreateInfoCtrl(
40: LPSTR szTitle,
41: INT x,
42: INT y,
43: INT cx,
44: INT cy,
45: HWND hwndParent,
46: HANDLE hInst,
47: LPSTR pszUL, // NULLs here are fine.
48: LPSTR pszUC,
49: LPSTR pszUR,
50: LPSTR pszLL,
51: LPSTR pszLC,
52: LPSTR pszLR,
53: DWORD style,
54: HMENU id,
55: DWORD dwUser);
56:
57: VOID MyCascadeChildWindows(HWND hwndParent);
58: VOID TileChildWindows(HWND hwndParent);
59:
60: typedef struct {
61: PSTR pszUL;
62: PSTR pszUC;
63: PSTR pszUR;
64: PSTR pszLL;
65: PSTR pszLC;
66: PSTR pszLR;
67: PSTR pszCenter;
68: DWORD style;
69: RECT rcFocusUL;
70: RECT rcFocusUR;
71: RECT rcFocusLL;
72: RECT rcFocusLR;
73: HANDLE hInst;
74: } INFOCTRL_DATA;
75:
76: typedef struct {
77: RECT rcBound;
78: RECT rcPaint;
79: HDC hdc;
80: DWORD dwUser;
81: } OWNERDRAWPS;
82:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.