Hi,
The function MSACAL_NewICalendar will create a UI control to hold the calendar. However as you say, you must get the Object Handle to be able to call the ActiveX functions.
The function that you need to do this is called GetObjHandleFromActiveXCtrl(,,,) it takes the ID of the UI control and returns a handle to the ActiveX control.
I your specific case it would look something like this:
MSACAL_NewICalendar(Panel_handle, "Mesage",50, 20, &Calendar, &UIL_Error);
GetObjHandleFromActiveXCtrl (panel_handle, Calendar,&calendarHandle);
MSACAL_ICalendarGet_Value (Calendar, NULL, &Pvar_Value);
you can find this function in the user interface library.
Let me know if you have any further questions.
Regards,
Juan Carlos
N.I.