/********************************************************************* * * _cbFrameWin */ static void _cbFrameWin(WM_MESSAGE* pMsg) { switch(pMsg->MsgId) { case WM_TOUCH: if (FRAMEWIN_IsMinimized(pMsg->hWin) == 0) { if (_OnTouch(pMsg->hWin, pMsg)) { return; } } break; case WM_DELETE: _hFrame = 0; _hClient = 0; _hMEdit = 0; _hWrapButton = 0; break; } if (_pcbFrameWin) { (*_pcbFrameWin)(pMsg); } }
/********************************************************************* * * _HOOKFUNC_Resizeable */ static int _HOOKFUNC_Resizeable(WM_MESSAGE* pMsg) { WM_HWIN hWin = pMsg->hWin; if (WM_HasCaptured(hWin) && (_CaptureFlags == 0)) { return 0; } if (FRAMEWIN_IsMinimized(hWin) || FRAMEWIN_IsMaximized(hWin)) { return 0; } switch(pMsg->MsgId) { case WM_TOUCH: return _OnTouch(hWin, pMsg); #if (GUI_SUPPORT_MOUSE & GUI_SUPPORT_CURSOR) case WM_MOUSEOVER: return _OnMouseOver(hWin, pMsg); #endif case WM_CAPTURE_RELEASED: #if GUI_SUPPORT_CURSOR _SetResizeCursor(0); #endif _CaptureFlags = 0; return 1; } return 0; }