How To get an hWnd?

M

Mike Hartsough

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
 
Top