Problem in Shell_NotifyIcon

Posted on 2004-11-17
Last Modified: 2010-04-17
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.

Question by:wreckedPC
    LVL 48

    Accepted Solution

    Use LoadIcon or LoadImage API to load icon from the program resources.
    LVL 19

    Expert Comment

    by:Daniel Van Der Werken

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    JQuery Date Time picker not showing 29 83
    java ^ examples 8 51
    strCount chalenge 3 36
    WMI, model #, retrieving information 10 59
    Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
    A short article about problems I had with the new location API and permissions in Marshmallow
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now