Write a parameter in the status area

I've managed to have an my program's icon in the status area using a NOTIFYICONDATA structure.
My problem is that instead of seeing an icon, I would like to print a personal special value (like it is for the hour )

Could I replace the icon by  text (an how ?), or should I use another method than notifyicondata ?
scuderiaAsked:
Who is Participating?
 
jkrConnect With a Mentor Commented:
Thanks, scuderia ;-)
So it does work for you?
0
 
jkrCommented:
Well, if you 'print' the text into a bitmap and use the Win32 API 'CreateIcon()' to create an icon from the bitmap's bits, you should be able to subsequently replace the icon in the status bar with an 'actual' one showing the information you want to dispay.
0
 
scuderiaAuthor Commented:
I want a method which can simply use a string to print the text.
If I always need to Create an Icon with a new text (which can be very variable), it will use to much of the computer resources.
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
jkrCommented:
That's true - but, sorry, you can't simply do that ;-)
0
 
jkrCommented:
Ooops - concerning the resources: It does make no difference when you write your text to a DC that represents a memory bitmap or to a DC that represents a window...
0
 
scuderiaAuthor Commented:
Sorry, I thought that it exited another method.
If it is not the case, simply answer the question and I will give you the points.

Hem, I'm speaking only to JKR
0
 
scuderiaAuthor Commented:
I will rework on this now.
I think I will manage to find a solution.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.