A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Tags: , , , , , , , ,

Adding context menu if user clicks on hyperlink in reading pane orinspector





 
 
Thread Tools Display Modes
  #1  
Old May 16th 08, 08:05 AM posted to microsoft.public.outlook.program_addins
vidishasharma@gmail.com
external usenet poster
 
Posts: 11
Default Adding context menu if user clicks on hyperlink in reading pane orinspector

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  
Old May 16th 08, 02:36 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 3,063
Default Adding context menu if user clicks on hyperlink in reading pane or inspector

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  
Old May 19th 08, 02:57 PM posted to microsoft.public.outlook.program_addins
vidishasharma@gmail.com
external usenet poster
 
Posts: 11
Default Adding context menu if user clicks on hyperlink in reading paneor inspector

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  
Old May 19th 08, 09:43 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 3,063
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.


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 02:36 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Auto Loans - Debt Management - Turismo Rural Asturias - eBay - Loans