![]() |
| 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. |
|
|||||||
| Tags: adding, clicks, context, hyperlink, menu, orinspector, pane, reading, user |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
I want to add a context menu when user right clicks on hyperlink in reading pane or inspector window. Please guide me how I have to this. Ken has suggested "detect that you're over a hyperlink somehow and trap the mouse right-click." however I want to be sure if this can be done using outlook API's or this need some win32 api's Regards. |
| Ads |
|
#2
|
|||
|
|||
|
There is nothing in the OOM that will help you with this at all.
-- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm wrote in message ... Hi, I want to add a context menu when user right clicks on hyperlink in reading pane or inspector window. Please guide me how I have to this. Ken has suggested "detect that you're over a hyperlink somehow and trap the mouse right-click." however I want to be sure if this can be done using outlook API's or this need some win32 api's Regards. |
|
#3
|
|||
|
|||
|
Hi Ken can you guide me how I can achieve this.
I added the following code private IntPtr ReadingPaneProc(IntPtr hWnd, int msg, IntPtr wParam, IntPtr lParam) { System.Windows.Forms.Message m = System.Windows.Forms.Message.Create(hWnd, msg, wParam, lParam); switch (m.Msg) { case WM_SETCURSOR: cursorvalue = GetCursor().ToInt32() ; if ((int)SystemIcons.IDI_HAND == cursorvalue) { MessageBox.Show(cursorvalue.ToString() + "on hyperlink"); } break; case WM_PAINT: DefReadingPaneProc(ref m); break; default: DefReadingPaneProc(ref m); break; } return m.Result; } However I never get value for IDI_HAND where value of IDI_HAND is int IDI_HAND = 32513 Do you have any idea. |
|
#4
|
|||
|
|||
|
I don't have a clue. I've never worked with that sort of thing in managed
code, only in unmanaged code. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm wrote in message ... Hi Ken can you guide me how I can achieve this. I added the following code private IntPtr ReadingPaneProc(IntPtr hWnd, int msg, IntPtr wParam, IntPtr lParam) { System.Windows.Forms.Message m = System.Windows.Forms.Message.Create(hWnd, msg, wParam, lParam); switch (m.Msg) { case WM_SETCURSOR: cursorvalue = GetCursor().ToInt32() ; if ((int)SystemIcons.IDI_HAND == cursorvalue) { MessageBox.Show(cursorvalue.ToString() + "on hyperlink"); } break; case WM_PAINT: DefReadingPaneProc(ref m); break; default: DefReadingPaneProc(ref m); break; } return m.Result; } However I never get value for IDI_HAND where value of IDI_HAND is int IDI_HAND = 32513 Do you have any idea. |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Reading Pane Problem: No Right Click dropdown menu | Boppoe | Outlook - Installation | 1 | June 20th 07 04:07 PM |
| Context menu in task pane | Bickers | Add-ins for Outlook | 0 | February 14th 07 03:31 PM |
| Reading Pane Context Menu VBA Help | Paul | Add-ins for Outlook | 8 | August 21st 06 03:15 PM |
| Outlook 2000 is crashing while adding right click context menu. | Vinayakc | Add-ins for Outlook | 0 | August 17th 06 04:08 PM |
| adding a context menu in Outlook | donald | Add-ins for Outlook | 6 | May 3rd 06 01:49 PM |