Solved

Write a parameter in the status area

Posted on 1998-11-27
7
192 Views
Last Modified: 2013-11-20
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 ?
0
Comment
Question by:scuderia
  • 4
  • 3
7 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 1325371
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
 

Author Comment

by:scuderia
ID: 1325372
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
 
LVL 86

Expert Comment

by:jkr
ID: 1325373
That's true - but, sorry, you can't simply do that ;-)
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LVL 86

Expert Comment

by:jkr
ID: 1325374
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
 

Author Comment

by:scuderia
ID: 1325375
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
 
LVL 86

Accepted Solution

by:
jkr earned 100 total points
ID: 1325376
Thanks, scuderia ;-)
So it does work for you?
0
 

Author Comment

by:scuderia
ID: 1325377
I will rework on this now.
I think I will manage to find a solution.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Need to retreive data from .TFS file exported by DVR 8 218
How to create frequencies of a variable from SAS dataset? 10 133
no14 challenge 14 70
post4 challenge 28 104
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

856 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