I am using this 'dummy' window in between, because i want to have a context menu.
The window procedure for the 'dummy' window that is TC's child looks like this:
Code: Select all
LRESULT CALLBACK DummyWndProc(HWND hwnd, UINT Msg, WPARAM wParam, LPARAM lParam)
{
HWND RichEd = (HWND)GetWindowLongPtr(hwnd, RICH_ED_IDX);
switch (Msg)
{
case WM_CONTEXTMENU:
// show context menu
return 0;
case WM_COMMAND:
// handle commands from context menu as well as notifications
// from rich edit window
return 0;
case WM_SETFOCUS:
SetFocus(RichEd);
return 0;
case WM_SIZE:
MoveWindow(RichEd, 0, 0, LOWORD(lParam), HIWORD(lParam), TRUE);
return 0;
}
return DefWindowProc(hwnd, Msg, wParam, lParam);
}
As soon as lister uses my plugin, all of listers key bindings (like 'F7' for search or '3' for hexadecimal view) stop working.
Is my code doing something wrong or do i have to live with that?
Ciao,
RoMa