![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Our VB6.0 Outlook addin loads a panel (written in VC++) containing an
internet explorer control in both the inspector and explorer views. The internet explorer control displays an HTML file with a simple text input. We faced similar issues with the backspace and delete key events being eaten up by Outlook and not forwarded to the text input. So we tried out a solution similar to the one posted by you, where we used SetWindowsHookEx to catch the delete and backspace keypress events and send appropriate messages to the panel window. While this does seem to work for backspace in both the explorer and inspector views, the delete keypress event *still* seems to be eaten up by Outlook. This is what our callback for the SetWindowsHookEx looks like : LRESULT CALLBACK LowLevelKeyboardProc(INT nCode, WPARAM wParam, LPARAM lParam){ LRESULT lRes; KBDLLHOOKSTRUCT *pkbhs = (KBDLLHOOKSTRUCT *) lParam; if ( pkbhs-vkCode == VK_DELETE || pkbhs-vkCode == VK_BACK) { if(outlook_mainwindow_Handle) { HWND panel = FindWindowEx(outlook_mainwindow_Handle, NULL, NULL, _T ("PanelDialog")); if (panel) { HWND hWndCtl = ::GetFocus(); if(::IsChild(panel, hWndCtl)) { if (wParam == WM_KEYDOWN) { ::SendMessage(hWndCtl, WM_KEYDOWN, pkbhs-vkCode, 0); } return 1; } } } } lRes = CallNextHookEx (0, nCode, wParam, lParam); return lRes; } Any idea how we can get the delete key working? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Capturing user Keypress in Outlook VBA | Praveen Mishra | Outlook and VBA | 3 | April 1st 08 01:42 PM |
Stop baby eating in CHINA | LPC | Outlook - Using Forms | 0 | January 29th 08 03:35 PM |
Stop baby eating in CHINA | LPC | Outlook - Calandaring | 0 | January 29th 08 03:25 PM |
Keypress and OLKCombobox on form region | shubhangi | Outlook and VBA | 1 | October 23rd 07 04:14 PM |
Outlook 2007, proofing options greyed out in Editing Options dialog | Rojo Habe | Outlook - General Queries | 4 | October 8th 07 11:33 PM |