if (!::WinRegisterClass( vHab
,wxCanvasClassName
,wxWndProc
- ,CS_MOVENOTIFY | CS_SIZEREDRAW | CS_HITTEST | CS_SAVEBITS | CS_SYNCPAINT
+ ,CS_MOVENOTIFY | CS_SIZEREDRAW | CS_HITTEST | CS_SAVEBITS | CS_SYNCPAINT | CS_CLIPCHILDREN
,sizeof(ULONG)
))
{
// We must relay Timer events to wxTimer's processing function
//
if (pMsg->msg == WM_TIMER)
- wxTimerProc(NULL, 0, pMsg->mp1, 0);
+ wxTimerProc(NULL, 0, (int)pMsg->mp1, 0);
//
// For some composite controls (like a combobox), wndThis might be NULL