LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 16-Oct-2009, 10:49 AM
Junior Member
 
Join Date: Aug 2009
Posts: 20
s0muel 0 reputation points
Default How to select any message in folder

So ... I`m trying to replace e-mail item attachments. For this I`m adding new mail item and deleting old one. Can I select new e-mail item and if I can, how to do it...
I know that exist a list if selected mail items what I can get for example in such way:

pIGWClientState->get_SelectedMessages(&pIDisp);
if (pIDisp){
pIDisp->QueryInterface(IID_IGWMessageList, (void**)&pIMessageList);
pIDisp.Release();
if (pIMessageList) {
long lCount;
pIMessageList->get_Count(&lCount);
for (int i= 0; i < lCount; i++) {
pIMessageList->Remove(CComVariant(i));
}

also there exists a method like add:
pIMessageList->Add(CComVariant( ? ))
I`m tried use mail ID but I`m not succeeded
but I`m not find any document with description this method
from header file:
STDMETHOD(Add)(THIS_ VARIANT Message) PURE;
what I do wrong.
Does anybody knows decision?
Thank You.
Reply With Quote
 

Tags
development, groupwise, object api, selectedmessages

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

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 03:00 AM.


© 2007 Novell, Inc. All Rights Reserved.

Search Engine Friendly URLs by vBSEO 3.3.0 RC2