PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming How To get an hWnd?

Reply

How To get an hWnd?

 
Thread Tools Rate Thread
Old 30-04-2004, 07:35 AM   #1
Mike Hartsough
Guest
 
Posts: n/a
Default How To get an hWnd?


I'm fairly new to Outlook programming and VBA. So for my
first trick I'm writing my own "Incoming Message Rule
Processor".

Anyways, I'd like to display an icon in the System Tray
when my script is running. The only issue I have at the
moment is that the function to write to the System Tray
requires an hWnd reference. And I can't find any easy way
to do this. There's some relevant sample code at:
http://www.outlookcode.com/d/code/clearenvicon.htm, but it
states that it uses a function (AddressOf) that precludes
its use in "ThisOutlookSession".

Can anyone tell me an "easy" way to get a valid hWnd?

Thanks,
Mike
  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

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