Hello there
I am creating an event with the WM_Set_Callback function to write something to the screen.
The function is running but there is a problem. I called this function, the event occurs 3 times in the target function.
I use it as follows.
this is target function
Display All
Every time I call the function, the same verb is written to the screen 3 times.
How can I solve this?
Thank You
I am creating an event with the WM_Set_Callback function to write something to the screen.
The function is running but there is a problem. I called this function, the event occurs 3 times in the target function.
I use it as follows.
this is target function
Source Code
- /*********************************************************************
- *
- * DrawFingerVals
- */
- static void DrawFingerVals(WM_MESSAGE * pMsg);
- static void DrawFingerVals(WM_MESSAGE * pMsg) {
- WM_HWIN hItem;
- switch (pMsg->MsgId) {
- case WM_PAINT:
- hItem = WM_GetDialogItem(pMsg->hWin, ID_MULTIEDIT_0);
- MULTIEDIT_AddText(hItem,write_buffer);
- break;
- default:
- WM_DefaultProc(pMsg);
- break;
- }
- }
Every time I call the function, the same verb is written to the screen 3 times.
How can I solve this?
Thank You