|
I'm trying to write a plugin for a freeware taskbar replacement application, which would duplicate the functionality of the system tray. i.e. I need to know whenever icons are added/updated/removed from the system tray, and ideally whenever tool-tips appear. I've snooped around here and MSDN a bit and can't find anything related to how to do this. Closest thing I've found is http://www.codeproject.com/shell/ctrayiconposition.asp, but it's of no help.
I am guessing some sort of system hook is what I will need to resort to, but I'm not quite sure if that is the case. Does anybody have any experience with this?
Thanks,
D
|
|
|
|
|
Paul Diliscia did an article on bands in 1997 or their about. Search for MSDN Journal "C++ Under the Hood", please correct me if I am wrong.
I believe that article made a taskbar replacement.
"Naked we come and bruised we go."
- James Douglas Morrison
Best Wishes,
ez_way
|
|
|
|
|
Well, I tried searching for lots of things. I searched for "C++ Under the Hood", "Paul DiLascia", "Paul DiLascia taskbar", "taskbar", and "taskbar replace", as well as all the other searches I have tried in recent days, but have come up empty handed.
Any other info you can give me to help me find it?
Thanks
|
|
|
|
|
You bet, I should have done this first.
http://www.dilascia.com/
"Naked we come and bruised we go."
- James Douglas Morrison
Best Wishes,
ez_way
|
|
|
|
|
I have been trying to use library functions in a 3rd party DLL.
The first routine I try and use results in a Link2019 error.
I have included the header, .Lib and .DLL files in my project, but a bit lost to this error.
Any items/settings I should check?
|
|
|
|
|
sweep123 wrote:
The first routine I try and use results in a Link2019 error.
I assume this is a .Net project.
sweep123 wrote:
I have included....Lib and .DLL files in my project, but a bit lost to this error.
One or the other, but not both.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Hi
Use the Help dll to load and load it up high before you load the dll. Do not include the lib unless you must for ep issues.
HINSTANCE hLiba = LoadLibrary( "dbghelp.dll" );
"Naked we come and bruised we go."
- James Douglas Morrison
Best Wishes,
ez_way
|
|
|
|
|
I want to have an MFC image frame that when you drag a picture from a web site or hard drive onto the frame the program copies the image to a selected folder and displays the image in the frame. I found the option to accept files but i don't know what to do from there. Any assistance would be helpful. Thank You.
|
|
|
|
|
maybe overloading the "drag & drop" event would be an add ?!
TOXCCT >>> GEII power
|
|
|
|
|
Hi,
I have a program that uses the parallel port to send data to an external device. The program uses UserPort as the driver. The problem is it works on my Windows 2000 machine, it works on 2 laptops with XP, but it doesn't work on other XP laptop and works sporadically on another XP desktop. After testing I believe it's the bit of the program that deals with the parallel port.
My question is did anyone have any similar experiences? Are there any other good drivers to try for the parallel port because UserPort is (c) 2001 which may be old.
|
|
|
|
|
Try a Google search on "porttalk". It comes with some code to include in your app, and a driver. I have used this with good success on multiple XP systems.
Good luck,
Dave
"You can say that again." -- Dept. of Redundancy Dept.
|
|
|
|
|
How can I use a toolbar to suspend my thread?
|
|
|
|
|
Define a global boolean variable, inside your thread if that value is true then you can either sleep, or wait on an event otherwise you do your thread's work.
Don't use SuspendThread and other similar functions because it may mess up the thread.
|
|
|
|
|
How does SuspendThread "mess up" the thread!? Please elaborate.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
See here.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Thanks David. I can see where the statement is based now.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
How to call Functions in an exe using Visual C++?
|
|
|
|
|
The same way you do with any other language (with a few exceptions). For example, if you wanted to call the MessageBox() function, you'd have:
MessageBox(hWnd, "Text", "Caption", MB_OK);
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
i think if you don't know about that point, you should first learn more about the C++ language before coding further. there are many books, HTML pages (and so on...) about the subject, you will easily find what you need.
see you
TOXCCT >>> GEII power
|
|
|
|
|
i need a platform, that's appearance ought to be a little bit like IDEs such as VC6 or Ultraedit,i think i need three part in the platform.
@Left,a listcontrol that may have tabs for different sorts of files;
@Right, a View that used to display the contents of which i clicked on the left side;
@Bottom,a capture of the output when i run some command on the files.
in brief, that's the same architecture with VC6,but fortunately,i needn't build a real powerful IDE like that.
I've tried several ways to do the job, but i cannot find a MDI solutions for display more than one files i've clicked. i used to building a SDI with splitterwindow which may have the same look i expect, but i wonder if i can do it in MDI way? i need help, if someone have the free SRCs like that,Could you send it to me at josephvan@sohu.com! thanks a lot !!!
Josephvan thanks for your attention
|
|
|
|
|
search for docked views...
sorry, don't know more about that...
TOXCCT >>> GEII power
|
|
|
|
|
I wrote a sample add-in for Visual Studio Editor.
But I have to include it each time when I open MSDEV, from tools-->Customize
option. Is there any method to load it at starting up of MSDEV .
|
|
|
|
|
Macro
"Naked we come and bruised we go."
- James Douglas Morrison
Best Wishes,
ez_way
|
|
|
|
|
I am working on Dialog Based Application in which bitmap is Blitted on the Dialog bu using Device context. Bitmap is actually a World Map. I need to show blink at certain position on the map. So I have taken two more bitmaps which is a Tower shaped. One is black in color and other is red in Color. I set the timer to 500 milliseconds. For every 500 milliseconds I keep changing the Bitmap from black to red and again to black. When ever my application is running it is showing 54% of CPU usage. Please suggest me how to reduce the CPU usage.
Thanks in Advance.
Deliver
If you have faith in the cause and
the means and in God, the hot
Sun will be cool for you.
|
|
|
|
|
1) Make sure all drawing is done in OnPaint.
2) Try to invalidate only the area where the Tower bitmap is after switching Tower bitmaps.
3) Consider changing the way in which you draw your bitmaps. This may mean only drawing the part of a given bitmap, take a good look at how BitBlt can be used for that. If you are redrawing the whole World Map each 500 ms (whether you need to or not), that is going to slow things down. A few calculation to detemine what part of a large bitmap needs to be redrawn can save a lot of time.
Note: If you where to where to try to design simple paint program, you would soon see that redrawing the whole bitmap every time someone move the mouse (while drawing), will not work. Because each redraw would stop everything until the drawing code caught up.
This all means: draw only what you need to draw and no more.
Well got to go, for now!
Good Luck!
INTP
|
|
|
|