Hiding items?

  • Thread starter Vladimir Chtchetkine
  • Start date
V

Vladimir Chtchetkine

Is it possible? I would like to have some items hidden, i.e. invisible in
the Outlook UI but still available for all operations that allowed on them.
Looking at _Mail and _Post item properties/methods I don't see any notion of
"visibility management". Yet (per one of the advices I've received) "hidden
items" are widely used. So, how do I do that?



TIA,



Vladimir
 
K

Ken Slovak

Each folder has a HiddenItems collection. Items in that collection are
hidden from the UI and the standard Items collection.

You need to use CDO 1.21, Extended MAPI or Redemption to get at that
collection, it's not exposed in the Outlook object model.

In CDO terms:
Set colMessages = oFolder.HiddenMessages

From there you work with the collection just as you would any other Messages
collection. You can even use a filter on the collection.
 
V

Vladimir Chtchetkine

Thanks, Ken!

Do you (or anybody else) know how to do it using ExMAPI? And, BTW, how do I
get ExMAPI SDK (or whatever is the tool)?
Is that "mapix.h" file in the Platform SDK that encapsulates ExMAPI
interface? Anyway, I've searched my entire disk for "HiddenItems" and
"HiddenMessages" and got zero results. So, please advice :)

TIA,

Vladimir
 
K

Ken Slovak

That MAPI header file has many of the properties and tags but not all of the
ones you need to use. www.cdolive.com/cdo10.htm has many other undocumented
property tags discovered by Sig Weber.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/exchanchor/htms/msexchsvr_mapi.asp
is a link to the MAPI SDK at MSDN.

Also see http://www.outlookcode.com/d/mapi.htm for more MAPI information and
docs.

I can't help directly with Extended MAPI, I don't do C++ or Delphi so I
don't work directly with MAPI.
 

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