|

楼主 |
发表于 2023-12-10 17:33:48
|
显示全部楼层
static void _UserDraw(WM_HWIN pMsg, int Stage) {
switch (Stage) {
case GRAPH_DRAW_LAST:
// USER START (Optionally insert additional message handling)
GUI_SetColor(GUI_RED);
GUI_DrawPolygon(aPoints, 4, 80, 404);
GUI_FillPolygon(aMagnifiedPoints, GUI_COUNTOF(aPoints), 80, 404);
// USER END
break;
}
}
这个是在使用这个函数的代码,我在下面的函数中进行调用,
hgraph = WM_GetDialogItem(pMsg->hWin, ID_GRAPH_0);
GRAPH_SetUserDraw( hgraph , _UserDraw);
不知道硬汉哥有什么想法 |
|