Notices

Water Fountain General Chit/Chat

Reply
 
LinkBack Thread Tools
Old 08-08-03, 10:14 PM   #1 (permalink)
Aximsite Rookie
 
Join Date: Aug 2003
Posts: 48
Thanked 0 Times in 0 Posts
System Tray

Could anyone show some example code to show an icon in the Windows Mobile taskbar in eMbedded Visual C++?

I'm having trouble getting it to work...
__________________
-Compman
compman is offline   Reply With Quote
Sponsor Ads
Old 08-10-03, 03:57 PM   #2 (permalink)
Aximsite Rookie
 
Join Date: Aug 2003
Posts: 48
Thanked 0 Times in 0 Posts
mmmm.... no help.... figures.
__________________
-Compman
compman is offline   Reply With Quote
Old 08-10-03, 04:25 PM   #3 (permalink)
Aximsite Minor League
 
Join Date: Apr 2003
Posts: 283
Thanked 0 Times in 0 Posts

Awards Showcase
Aximsite Vendor 
Total Awards: 1

Re: System Tray

Quote:
Originally posted by compman
Could anyone show some example code to show an icon in the Windows Mobile taskbar in eMbedded Visual C++?

I'm having trouble getting it to work...
See the eVC help for
Shell_NotifyIcon()
__________________
Check our products at
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
ymawad is offline   Reply With Quote
Old 08-10-03, 04:40 PM   #4 (permalink)
Aximsite Rookie
 
Join Date: Aug 2003
Posts: 48
Thanked 0 Times in 0 Posts
Well I have the NOTIFYICONDATA structure done and stuff but Shell_NotifyIcon dosn't display anything in the taskbar.... seeing as I'm getting no examples, perhaps my noobish code will point out the problem... lol

Code:
n_icondat.hIcon = LoadIcon(g_hInst, MAKEINTRESOURCE(IDI_FIREWALL));
n_icondat.uFlags = NIF_ICON | NIF_MESSAGE;
n_icondat.uCallbackMessage = WM_ACTIVATE;
n_icondat.hWnd = g_hwndCB;
n_icondat.cbSize = sizeof(n_icondat);
Shell_NotifyIcon(NIM_ADD, &n_icondat);
__________________
-Compman
compman is offline   Reply With Quote
Old 08-10-03, 04:58 PM   #5 (permalink)
Aximsite Minor League
 
Join Date: Apr 2003
Posts: 283
Thanked 0 Times in 0 Posts

Awards Showcase
Aximsite Vendor 
Total Awards: 1

Quote:
Originally posted by compman
Well I have the NOTIFYICONDATA structure done and stuff but Shell_NotifyIcon dosn't display anything in the taskbar.... seeing as I'm getting no examples, perhaps my noobish code will point out the problem... lol

Code:
n_icondat.hIcon = LoadIcon(g_hInst, MAKEINTRESOURCE(IDI_FIREWALL));
n_icondat.uFlags = NIF_ICON | NIF_MESSAGE;
n_icondat.uCallbackMessage = WM_ACTIVATE;
n_icondat.hWnd = g_hwndCB;
n_icondat.cbSize = sizeof(n_icondat);
Shell_NotifyIcon(NIM_ADD, &n_icondat);

1st, make sure you empty the whole structure
memset(&n_icondat, 0, sizeof(NOTIFYICONDATA));

2nd, I usually use
sizeof(NOTIFYICONDATA);

3rd, Are you sure the ICON you'r loading is a 16x16

4th, (and this is maybe why it doesn't show) give your icon an ID
n_icondat.uID= <some ID>;

5th, I reserve the right to get a free copy of your software once done :D

Godd luck
;)
__________________
Check our products at
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
ymawad is offline   Reply With Quote
Old 08-10-03, 09:39 PM   #6 (permalink)
Aximsite Rookie
 
Join Date: Aug 2003
Posts: 48
Thanked 0 Times in 0 Posts
hah... this'll probally never be published... it's one of my 'starter' projects that I use to experement with stuff but you never know.

Thanks a lot and I'll be sure to try that tomarrow sometime, right now I'm kinda sleepy... lol
__________________
-Compman
compman is offline   Reply With Quote
Old 08-10-03, 11:29 PM   #7 (permalink)
Aximsite Administrator
 
deftech's Avatar
Addicted Member
 
Join Date: Feb 2003
Location: Arkansas
Posts: 5,635
Thanked 3 Times in 2 Posts

Awards Showcase
Moderator Medal Admin Medal Bronze Poster 
Total Awards: 3

Sleepy.....that doesn't sound like developer-motto to me. :p Hehe....just kidding with you compman. I usually pull all nighters messing with stuff like this, but like you I'm actually feeling sleepy tonight as well. :)
__________________
Jordan M. Wigley
Aximsite.com
Email: jordan AT aximsite.com


.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Come join the friendly community at
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
deftech is offline   Reply With Quote
Old 08-11-03, 04:53 PM   #8 (permalink)
Aximsite Rookie
 
Join Date: Aug 2003
Posts: 48
Thanked 0 Times in 0 Posts
Ok, no show... the pic I'm using has a drop down box that says "standard" and "small", small is 16x16...
__________________
-Compman
compman is offline   Reply With Quote
Reply

Sponsor Ads

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 10:49 PM.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Copyright © 2003-09 LeckMedia, LLC