Hi everyone,
when i surf the code of grlib, there is a place confuzed me.
in the grlib_demo project,
in the function WidgetMessageSendPostOrder(),
//
// Send the message directly to the widget that has captured pointer
// messages.
//
ulRet = g_pPointerWidget->pfnMsgProc(g_pPointerWidget, ulMessage,
ulParam1, ulParam2);
this step would call the function RectangularButtonMsgProc() ,
but i wonder when the pointer g_pPointerWidget->pfnMsgProc had been initialized as RectangularButtonMsgProc().
It really amazed me.
the RectangularButtonMsgProc() was only called by RectangularButtonInit(), I didn't see its caller in current project.
Some strange. It's obviously that I miss something. Could somebody explain that ? Thanks a lot !
BR,
Key