View Single Post
  #4  
Old May 19th 08, 09:43 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 3,426
Default Adding context menu if user clicks on hyperlink in reading pane or inspector

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.


Ads
 

Debt Help - FatCow Web hosting - Mortgage Calculator - Credit Card - Adverse Credit Remortgage