Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 397
  • Last Modified:

Problem in Shell_NotifyIcon

Hi ,
 I have been trying to write an application that adds the icon to system tray when minimised. I have used Shell_NotifyIcon  for the same. And I have obtained the Icon handle using following function call:

CWnd::GetIcon(BOOL bBigIcon);

As I thought this is the easiest way to get application Icno handle. Application was created using ApppWizard. But this function returns NULL when called no matter whats the value of the paramtere : TRUE or FALSE.

Please help me with this matter. Though it seems trivial.


0
wreckedPC
Asked:
wreckedPC
1 Solution
 
AlexFMCommented:
Use LoadIcon or LoadImage API to load icon from the program resources.
0
 
Daniel Van Der WerkenIndependent ConsultantCommented:
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now