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:
parent
638a93d639
commit
f18cb9f382
7 changed files with 253 additions and 279 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue