How to free a SysMonthCal32 gadget
Posted: Sun May 09, 2004 10:39 pm
here is how to create a SysMonthCal32 gadget
but how to free it ?
should i use DeleteObject_( hCalendar )
or DestroyWindow_( hCalendar )
or another api call...
or because my own window is the parent, CloseWindow() does the job itself ?
:roll: 
Code: Select all
hCalendar = CreateWindowEx_(#Null,"SysMonthCal32","DateTime",#WS_CHILD|#WS_VISIBLE|#WS_BORDER,5,50,0,0,WindowID(),0,GetModuleHandle_(0),0)
should i use DeleteObject_( hCalendar )
or DestroyWindow_( hCalendar )
or another api call...
or because my own window is the parent, CloseWindow() does the job itself ?