1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Some internal refactoring in PopupMenu.

This commit is contained in:
Julian Storer 2011-09-25 15:33:12 +01:00
parent 638a93d639
commit f18cb9f382
7 changed files with 253 additions and 279 deletions

View file

@ -376,7 +376,7 @@ bool ActiveXControlComponent::createControl (const void* controlIID)
{
control->setControlBounds (bounds);
control->originalWndProc = (void*) (pointer_sized_int) GetWindowLongPtr ((HWND) control->controlHWND, GWLP_WNDPROC);
control->originalWndProc = (WNDPROC) GetWindowLongPtr ((HWND) control->controlHWND, GWLP_WNDPROC);
SetWindowLongPtr ((HWND) control->controlHWND, GWLP_WNDPROC, (LONG_PTR) Pimpl::activeXHookWndProc);
}

View file

@ -149,7 +149,7 @@ public:
Pimpl* const p = getPimpl (hwnd);
if (p != nullptr)
return p->windowProc (hwnd, message, wParam, lParam);
return p->windowProc (hwnd, message, wParam, lParam);
else
return DefWindowProcW (hwnd, message, wParam, lParam);
}