mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
Fix for Bugzilla Entry 330: Correctly handle WM_COMMAND messages in web windows without web control
svn path=/trunk/; revision=18379
This commit is contained in:
parent
3edf5a41cc
commit
f8879f3de8
1 changed files with 30 additions and 29 deletions
|
@ -247,46 +247,47 @@ LRESULT WebChildWindow::WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam)
|
|||
return TRUE;
|
||||
|
||||
case PM_DISPATCH_COMMAND: {
|
||||
if (_control) {
|
||||
HRESULT hr = E_FAIL;
|
||||
if (!_control)
|
||||
return FALSE;
|
||||
|
||||
switch(LOWORD(wparam)) {
|
||||
case ID_GO_BACK:
|
||||
hr = _control->GoBack();
|
||||
break;
|
||||
HRESULT hr = E_FAIL;
|
||||
|
||||
case ID_GO_FORWARD:
|
||||
hr = _control->GoForward();
|
||||
break;
|
||||
switch(LOWORD(wparam)) {
|
||||
case ID_GO_BACK:
|
||||
hr = _control->GoBack();
|
||||
break;
|
||||
|
||||
case ID_GO_UP:
|
||||
///@todo
|
||||
break;
|
||||
case ID_GO_FORWARD:
|
||||
hr = _control->GoForward();
|
||||
break;
|
||||
|
||||
case ID_GO_HOME:
|
||||
hr = _control->GoHome();
|
||||
break;
|
||||
case ID_GO_UP:
|
||||
///@todo
|
||||
break;
|
||||
|
||||
case ID_GO_SEARCH:
|
||||
hr = _control->GoSearch();
|
||||
break;
|
||||
case ID_GO_HOME:
|
||||
hr = _control->GoHome();
|
||||
break;
|
||||
|
||||
case ID_REFRESH:
|
||||
hr = _control->Refresh();
|
||||
break;
|
||||
case ID_GO_SEARCH:
|
||||
hr = _control->GoSearch();
|
||||
break;
|
||||
|
||||
case ID_STOP:
|
||||
hr = _control->Stop();
|
||||
break;
|
||||
case ID_REFRESH:
|
||||
hr = _control->Refresh();
|
||||
break;
|
||||
|
||||
default:
|
||||
return super::WndProc(nmsg, wparam, lparam);
|
||||
}
|
||||
case ID_STOP:
|
||||
hr = _control->Stop();
|
||||
break;
|
||||
|
||||
if (FAILED(hr) && hr!=E_FAIL)
|
||||
THROW_EXCEPTION(hr);
|
||||
default:
|
||||
return super::WndProc(nmsg, wparam, lparam);
|
||||
}
|
||||
|
||||
if (FAILED(hr) && hr!=E_FAIL)
|
||||
THROW_EXCEPTION(hr);
|
||||
|
||||
return TRUE;}
|
||||
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue