LRESULT CFlashPlayerDlg::OnSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled) { //UINT nType = (UINT)wParam; CSize size = _WTYPES_NS::CSize(GET_X_LPARAM(lParam),GET_Y_LPARAM(lParam)); if(m_inited) { if(!m_fs) { m_wndFlashPlayer.MoveWindow(0, 0, size.cx, size.cy - 20, FALSE); m_control.MoveWindow(0, size.cy - 20, size.cx, 20); } else { m_wndFlashPlayer.MoveWindow(0, 0, size.cx, size.cy, FALSE); m_control.MoveWindow(0, size.cy, size.cx, 20); } } return 0; }
void Win32WebControl::setWebViewRect(const int left, const int top, const int width, const int height) { _winContainer.MoveWindow(left, top, width, height); }