Hello,
I want to delete the previous bitmap and show the new bitmap.
I used the callback function, but I couldn't.
How can I do it.
my code not work.
static void _cbDialog(WM_MESSAGE * pMsg)
{
switch (pMsg->MsgId) {
case WM_PAINT:
GUI_DrawBitmap(&bitmap,x, y);
break;
}
}
void Callback(WM_MESSAGE * pMsg);
void Callback(WM_MESSAGE * pMsg)
{
WM_HWIN hItem;
switch (pMsg->MsgId) {
case WM_PAINT:
GUI_DrawBitmap(&newbitmap,x, y);
break;
default:
WM_DefaultProc(pMsg);
break;
}
}
I want to delete the previous bitmap and show the new bitmap.
I used the callback function, but I couldn't.
How can I do it.
my code not work.
static void _cbDialog(WM_MESSAGE * pMsg)
{
switch (pMsg->MsgId) {
case WM_PAINT:
GUI_DrawBitmap(&bitmap,x, y);
break;
}
}
void Callback(WM_MESSAGE * pMsg);
void Callback(WM_MESSAGE * pMsg)
{
WM_HWIN hItem;
switch (pMsg->MsgId) {
case WM_PAINT:
GUI_DrawBitmap(&newbitmap,x, y);
break;
default:
WM_DefaultProc(pMsg);
break;
}
}