Hi,
obviously the callback function must exist, and therefore you know what it is called.
With this, you simply call
SetCtrlAttribute(panelHandle,controlID,ATTR_CALLBACK_FUNCTION_POINTER,functionname);
Hope that helps
S.
// it takes almost no time to rate an answer