henry100 has asked for the wisdom of the Perl Monks concerning the following question:
THX a lot......
###my perlscript is following #####. my $myapi = new Win32::API("shell32", "Shell_NotifyIcon", ['P', 'P'], +'N') or die Win32::FormatMessage(Win32::GetLastError()); ###Following is from MSDN #######. typedef struct _NOTIFYICONDATA { DWORD cbSize; HWND hWnd; UINT uID; UINT uFlags; UINT uCallbackMessage; HICON hIcon; TCHAR szTip[64]; DWORD dwState; //Version 5.0 DWORD dwStateMask; //Version 5.0 TCHAR szInfo[256]; //Version 5.0 union { UINT uTimeout; //Version 5.0 UINT uVersion; //Version 5.0 } DUMMYUNIONNAME; TCHAR szInfoTitle[64]; //Version 5.0 DWORD dwInfoFlags; //Version 5.0 } NOTIFYICONDATA, *PNOTIFYICONDATA;
how to set structure and
the cbSize .....nid.cbSize = sizeof(NOTIFYICONDATA)
Edit kudra, 2001-08-20 Added code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to add icon to status area via Win32::API?
by jplindstrom (Monsignor) on Aug 19, 2001 at 18:08 UTC | |
by henry100 (Initiate) on Aug 20, 2001 at 10:30 UTC | |
by jplindstrom (Monsignor) on Aug 21, 2001 at 19:02 UTC |