Select an e-mail item

A

Alex Ionescu

Hi,

I would like to know if it's possible to select an e-mail item with the
Outlook API (or Windows API).
I'm looking for EITHER one of the following:
- Select an item based on mouse position
- Select an item when right-clicked, without showing the context menu
- Select an item when control+right clicked.

Right now I have some code that shows my menu:

If wMsg = WM_RBUTTONDOWN Then
If wParam = (MK_CONTROL Or MK_RBUTTON) Then
GetCursorPos MousePos
XPMenu.ShowMenu MousePos.x, MousePos.y
Exit Function
End If
End If

XPMenu being a class that I created for the owner-drawn menu. The problem is
that since I exit the function, two things happen:
1) The outlook context menu doesn't show (GOOD, I want this)
2) The item doesn't get selected (BAD, my menu items can't react to the
currently selected item)

So I'd like to force a way for outlook to select the item...I've tried mouse
events, but they end up showing the context menu.

Best regards,
Alex Ionescu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top