6 #ifndef _PH_GRAPH_PRIVATE
11 #define PH_GRAPH_USE_GRID 0x1
12 #define PH_GRAPH_USE_LINE_2 0x10
13 #define PH_GRAPH_OVERLAY_LINE_2 0x20
49 #define PH_GRAPH_CLASSNAME L"PhGraph"
58 _In_ PPH_GRAPH_DRAW_INFO DrawInfo
65 _In_ PPH_GRAPH_DRAW_INFO DrawInfo
71 _Inout_ PPH_GRAPH_DRAW_INFO DrawInfo,
89 #define GC_STYLE_FADEOUT 0x1
90 #define GC_STYLE_DRAW_PANEL 0x2
94 #define GCM_GETDRAWINFO (WM_USER + 1301)
95 #define GCM_SETDRAWINFO (WM_USER + 1302)
96 #define GCM_DRAW (WM_USER + 1303)
97 #define GCM_MOVEGRID (WM_USER + 1304)
98 #define GCM_GETBUFFEREDCONTEXT (WM_USER + 1305)
99 #define GCM_SETTOOLTIP (WM_USER + 1306)
100 #define GCM_UPDATETOOLTIP (WM_USER + 1307)
101 #define GCM_GETOPTIONS (WM_USER + 1308)
102 #define GCM_SETOPTIONS (WM_USER + 1309)
104 #define Graph_GetDrawInfo(hWnd, DrawInfo) \
105 SendMessage((hWnd), GCM_GETDRAWINFO, 0, (LPARAM)(DrawInfo))
106 #define Graph_SetDrawInfo(hWnd, DrawInfo) \
107 SendMessage((hWnd), GCM_SETDRAWINFO, 0, (LPARAM)(DrawInfo))
108 #define Graph_Draw(hWnd) \
109 SendMessage((hWnd), GCM_DRAW, 0, 0)
110 #define Graph_MoveGrid(hWnd, Increment) \
111 SendMessage((hWnd), GCM_MOVEGRID, (WPARAM)(Increment), 0)
112 #define Graph_GetBufferedContext(hWnd) \
113 ((HDC)SendMessage((hWnd), GCM_GETBUFFEREDCONTEXT, 0, 0))
114 #define Graph_SetTooltip(hWnd, Enable) \
115 ((HDC)SendMessage((hWnd), GCM_SETTOOLTIP, (WPARAM)(Enable), 0))
116 #define Graph_UpdateTooltip(hWnd) \
117 ((HDC)SendMessage((hWnd), GCM_UPDATETOOLTIP, 0, 0))
118 #define Graph_GetOptions(hWnd, Options) \
119 SendMessage((hWnd), GCM_GETOPTIONS, 0, (LPARAM)(Options))
120 #define Graph_SetOptions(hWnd, Options) \
121 SendMessage((hWnd), GCM_SETOPTIONS, 0, (LPARAM)(Options))
125 #define GCN_GETDRAWINFO (WM_USER + 1351)
126 #define GCN_GETTOOLTIPTEXT (WM_USER + 1352)
127 #define GCN_MOUSEEVENT (WM_USER + 1353)
128 #define GCN_DRAWPANEL (WM_USER + 1354)
165 #define PH_GRAPH_DATA_COUNT(Width, Step) (((Width) + (Step) - 1) / (Step) + 1) // round up in division
176 _Out_ PPH_GRAPH_BUFFERS Buffers
180 _Inout_ PPH_GRAPH_BUFFERS Buffers
185 _Inout_ PPH_GRAPH_BUFFERS Buffers,
186 _Inout_ PPH_GRAPH_DRAW_INFO DrawInfo,
217 _Out_ PPH_GRAPH_STATE State
222 _Inout_ PPH_GRAPH_STATE State
227 _Inout_ PPH_GRAPH_STATE State,
228 _In_ PPH_GRAPH_GETDRAWINFO GetDrawInfo,