Compose_View and Item Menu

Hi,
i'm trying to add my custom item menu in compose form for messaging application.
I want add numbers in 'To' field. When The command is invoked i get the pRef but i don't understand how can refer to 'To' field.
I tried to get pRref as IMessage* but all methods fail, i tried to get ENTRYID from pRef but when i try to call IMAPISession->OpenEntry() returns E_INVALIDARG and GetLastError returns ERROR_INVALID_HANDLE
So: how can use ITI_MessageItemRef

Any clue



Answer this question

Compose_View and Item Menu

  • Gunnar Adler

    UPDATE:

    OpenEntry() returns S_OK if i wait a few before clicking my custom menu! !
    But i can't still insert number into 'To' field :(

    There is a delay time in compose ...and why


  • Frank Racis

     

    I have the same problem about Compose_View menu.

    I have to wait for a while before select the customized menu item to make my code work properly.

    (on select the menu item,  I get EntryID from sited IDataObject, and I then call IMAPISession->OpenEntry( ) using the EntryID.)

    if I select the menu item directly without waiting, IMAPISession->OpenEntry() will fail and retrun E_INVALIDARG )

    Could someone please help us

    Thanks in advance.


  • Compose_View and Item Menu