Commit 481dcb4b authored by Jay Yang's avatar Jay Yang Committed by Alexandre Julliard

shell32: Make IExplorerBrowser respond to CWM_GETISHELLBROWSER.

parent bc5d32be
...@@ -743,6 +743,11 @@ static LRESULT main_on_wm_size(ExplorerBrowserImpl *This) ...@@ -743,6 +743,11 @@ static LRESULT main_on_wm_size(ExplorerBrowserImpl *This)
return TRUE; return TRUE;
} }
static LRESULT main_on_cwm_getishellbrowser(ExplorerBrowserImpl *This)
{
return (LRESULT)&This->IShellBrowser_iface;
}
static LRESULT CALLBACK main_wndproc(HWND hWnd, UINT uMessage, WPARAM wParam, LPARAM lParam) static LRESULT CALLBACK main_wndproc(HWND hWnd, UINT uMessage, WPARAM wParam, LPARAM lParam)
{ {
ExplorerBrowserImpl *This = (ExplorerBrowserImpl*)GetWindowLongPtrW(hWnd, GWLP_USERDATA); ExplorerBrowserImpl *This = (ExplorerBrowserImpl*)GetWindowLongPtrW(hWnd, GWLP_USERDATA);
...@@ -751,6 +756,7 @@ static LRESULT CALLBACK main_wndproc(HWND hWnd, UINT uMessage, WPARAM wParam, LP ...@@ -751,6 +756,7 @@ static LRESULT CALLBACK main_wndproc(HWND hWnd, UINT uMessage, WPARAM wParam, LP
{ {
case WM_CREATE: return main_on_wm_create(hWnd, (CREATESTRUCTW*)lParam); case WM_CREATE: return main_on_wm_create(hWnd, (CREATESTRUCTW*)lParam);
case WM_SIZE: return main_on_wm_size(This); case WM_SIZE: return main_on_wm_size(This);
case CWM_GETISHELLBROWSER: return main_on_cwm_getishellbrowser(This);
default: return DefWindowProcW(hWnd, uMessage, wParam, lParam); default: return DefWindowProcW(hWnd, uMessage, wParam, lParam);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment