|
I try to modify icon first, with the same values as the icon was created. When it fails, I know, there is no icon in the tray, so I can add new one. Does it help?
|
|
|
|
|
That's a great idea! Once in a while change something on the icon, and when an error is returned, re-add it. Thanks!
"What is it?" and he said, "I don't know. Let's kill it." - Ed Gadziemski
|
|
|
|
|
Roger Wright wrote:
That's a great idea!
Thanks, it's old one, I needed it for service showing icon in system tray, it was simplest solution how to do it.
|
|
|
|
|
You wouldn't know of any references to it using C++ would you? I've been searching MSDN all afternoon and all they offer is C# and VB junk. All the useful stuff is gone
"What is it?" and he said, "I don't know. Let's kill it." - Ed Gadziemski
|
|
|
|
|
Are you looking for this ?
http://msdn.microsoft.com/library/en-us/shellcc/platform/Shell/reference/functions/shell_notifyicon.asp?frame=true
|
|
|
|
|
Might be, but I'm not sure. I've always considered the bottom center as the taskbat, and the bottom right as the system tray, but the article says,
The taskbar notification area is sometimes erroneously called the "tray."
So which area is this intended to affect?
I think it's a step in the right direction, though
"What is it?" and he said, "I don't know. Let's kill it." - Ed Gadziemski
|
|
|
|
|
Do not worry: taskbar notification == tray == system tray. It's just name. Simply, it's that space left of the clock filled with icons
|
|
|
|
|
Great! Thanks for all the info - very helpful
"What is it?" and he said, "I don't know. Let's kill it." - Ed Gadziemski
|
|
|
|
|
How do you open and check the contents of folders?
-Raffi Why do today what can be put off untill tomorrow?
|
|
|
|
|
Raffi wrote:
How do you open and check the contents of folders?
You mean for search in directory?
CFileFind
Mazy
"The more I search, the more my need
For you,
The more I bless, the more I bleed
For you."The Outlaw Torn-Metallica
|
|
|
|
|
Or the non-MFC solution is FindFirstFile, followed by FindNextFile for each fiel after the first.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
kilowatt wrote:
Or the non-MFC solution is FindFirstFile, followed by FindNextFile for each fiel after the first.
Yes.
Mazy
"The more I search, the more my need
For you,
The more I bless, the more I bleed
For you."The Outlaw Torn-Metallica
|
|
|
|
|
Thanks
-Raffi
Why do today what can be put of until tommorrow?
|
|
|
|
|
Any ideas how to prevent a modeless dialog from staying on top of my app?
I create a modeless dialog as a child of the app and set the extended style of the dialog to include WS_EX_APPWINDOW so that it has it's own icon on the task bar. However, if I switch focus back to the main app the dialog remains on top (though it does have an inactive title bar, etc).
I've tried handling WM_SETFOCUS, WM_KILLFOCUS, WM_WINDOWPOSCHANGING, WM_WINDOWPOSCHANGED and WM_ACTIVATE in either the app the dialog or both, but to no avail. Any ideas?
Derek Lakin.
I wish I was what I thought I was when I wished I was what I am.
Salamander Software Ltd.
|
|
|
|
|
Don't make your dialog a child of any one window.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
I've tried calling Create(IDD_MY_DIALOG, NULL) , but this still gives the same result
Any more ideas (or have I gone about it the wrong way)?
Derek Lakin.
I wish I was what I thought I was when I wished I was what I am.
Salamander Software Ltd.
|
|
|
|
|
How about Create(IDD_MY_DIALOG, GetDesktopWindow()); ?
--------
A common man's understanding of science. Not a normal common man's of course. A very smart common man's. -- Nish, on Science Writing
|
|
|
|
|
Thanks very much. Problem solved
Derek Lakin.
I wish I was what I thought I was when I wished I was what I am.
Salamander Software Ltd.
|
|
|
|
|
I have the compilation-size problem when I compile some sample codes. As an example I get a 40K Exe file for “VS6\Samples\MSDN\TechArt\168” since the original available Exe file is just 7.5KB! (Aligned.exe). I have NOT changed any of the DEFAULT SETTINGS.
also I can’t build a Dll less than 24KB, Win32 App less than 20KB and so on.
I expect to get the same results as other have. I use VC6.0 Enterprise edition with ServicePack5.0, Feb2001 SDK and My OS is Win98.
So, What’s wrong?
Amir.
|
|
|
|
|
I think this CP article will answer your question: http://www.codeproject.com/system/howbig.asp
With time we live, with money we spend!
Joel Holdsworth
|
|
|
|
|
PinkPanter wrote:
So, What’s wrong?
A number of things could be wrong. Compare your average "Hello World" to the following piece for example (compiles to 640 bytes exe).
/*
VC6: cl c.c
*/
/*
NOTE: The "/filealign" is TOTALLY undocumented!!!
*/
#pragma optimize("gsa-y", on)
#pragma comment(lib, "kernel32")
// I split up all these linker optinons on separate
// lines for display purposes. 16 byte alignment
// might fail on Win9x.
#pragma comment(linker, "/merge:.rdata=.text")
#pragma comment(linker, "/entry:mymain")
#pragma comment(linker, "/subsystem:console")
#pragma comment(linker, "/align:16")
#pragma comment(linker, "/filealign:16")
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#pragma data_seg(".text")
void mymain()
{
DWORD foo;
WriteFile(GetStdHandle(STD_OUTPUT_HANDLE), "Hello world!\n", 13, &foo, 0);
}
|
|
|
|
|
I'm having trouble connecting a menu item to a function in one of my classes. I can use classwizard to select the menut item's ID and have it create the ON_COMMAND message map entry and the On... function, but when I run the app, the menu item is greyed out and is not selectable. The only time I can get it hooked to a class is if I hook it up to the CMainFrame class. Any thoughts?
|
|
|
|
|
A menu item will be grayed out if the currently active view/frame does not have a handler for it. So if you have multiple view classes, better add the handler to the main frame class because when you have a view active that does not handle this menu item, the menu item will be grayed out!
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Buy it, read it and admire me
|
|
|
|
|
As part of an application I want to display a map (physical map, like a map of France or a building). What I need:
- Easy update - the original is probably a papercopy.
- Normal operations like zooming, panning, color adjustments.
- "Hot regions" - clicking on a area will highlight it and provide additional data.
- Portable to WinCE/Pocket PC
The ideas I have gone through:
- Two bitmaps, one for the map and one for the regions.
- Bitmap for the map, regions stored as some kind of polygons.
- Metafiles. Don't know much about them, especially not how they are handled by WinCE GDI.
- Using the WebBrowser control: map as jpeg of gif and regions using <MAP> or ISMAP. Hard to control, I think.
- Other format for map and regions.
Any suggestions here would be greatly appreciated. At the moment I think I will go with option 2. - unless someone points out a serious flaw or suggests a better solution.
Thanks in advance
/moliate
Two o'clock and walking through familiar London - Or what was familiar London before the cursor deleted certain certainties -
I watch a suit and tie man giving suck to the Psion Organizer lodged in his breast pocket
its serial interface like a cool mouth hunting his chest for sustenance, familiar feeling, and I'm watching my breath steam in the air.
Neil Gaiman - Cold Colours
|
|
|
|
|
I'd use one full sized image that is blown up to the desired detail you need. Scale it down to the size you need retaining the detail. Then use regions to define your hotspots, so as the user clicks or hovers over these regions scale up the part of the image the region contains. Display it to the user and show the information you want.
I know with GDI+ this is a breeze to do, I use it all the time but I'm not positive of the top of my head that GDI+ is even part of the WinCE api. If not, then it should be fairly easly done without it still using the method I mentioned above which I think is the better way to do. Hopefully I 'v helped you or given you another approach that helps you or I thoroughly confused you - I havn't had my morning coffee yet and my daughter dragged to her swim competition early in the morning.
|
|
|
|