![]() |
HOW TO HIDE SYSTEM TRAY ICONS???????????? |
Post Reply
|
Page <1234 6> |
| Author | ||
LZW2006
Senior Member
Joined: 11 February 2006 Online Status: Offline Posts: 244 |
Quote Reply
Topic: HOW TO HIDE SYSTEM TRAY ICONS????????????Posted: 07 October 2006 at 3:13am |
|
|
I wanted to make a delphi program that would minimize to the system tray (visibly) but I did not want to have a window/view menu so I wanted to put that function in the system menu! (the icon on the left of the title bar)
So I did that... and delphi is different, but similar with the API stuff. Yet, I could not see it in the icon tray! A couple of hours of debugging, and I could see it but it did not work!! A few more hours, then all worked!!! The notifyicondata data is just that but to get it all working with the mouse and the system menu, took many more lines of code! is was like full procedures plus a couple of extra "gotcha's" to work out. So it all works for your program if you can see it but to hide it? I think it has to be there to work... So maybe you would need a blank icon, or change the icon property to null? Yet for someone elses program, wouldn't you just download a nifty icon tray util that does that sort of thing? This program could allow you to mess with the icons in other programs: http://www.angusj.com/resourcehacker/ Or you could use a program that just hides windows... Yet how would you hide the hider?? http://www.snapfiles.com/reviews/OuttaSight/outofsight.html |
||
![]() |
||
johnmack111
Newbie
Joined: 05 October 2006 Location: India Online Status: Offline Posts: 14 |
Quote Reply
Posted: 08 October 2006 at 10:18pm |
|
|
Hi LZW2006..thanks for ur reply man... the resource hacker does wonders!! lovely software and so small too!!
I tried the Shell_Notifyicon structure...but i just don't know how to proceed in that!! which is a big problem!! Any idea how i can manipulate the fields of the structure? Asterisk....said that i should enumerate all the child processes...and then find the appropriate window...but i don't much understand that step...though i understand in the logic level, exactly what he's trying to do...pls. help. |
||
![]() |
||
johnmack111
Newbie
Joined: 05 October 2006 Location: India Online Status: Offline Posts: 14 |
Quote Reply
Posted: 09 October 2006 at 4:21am |
|
|
hey thanks for ur technical advice, i was trying ur code...and its compiling alright. I have selected the project as "win32 application". am i right in doing that? then..i compiled the code..its fine..but on build, i get 2 errors :
"LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16 Debug/test_winapi.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe." am stuck now... was wondering if u could help me in this. thanx |
||
![]() |
||
Mixel
Senior Member
Joined: 26 July 2006 Location: Mexico Online Status: Offline Posts: 118 |
Quote Reply
Posted: 09 October 2006 at 11:39am |
|
yeha it will nnever make aprogram for itself cuz main() is missed.... so you need soemthing like this: void Shell_NotifyIconExample()} void main() { Shell_NotifyIconExample(); return; } but it wont do what you want
I think this is the best option you need: EnumWindows, EnumChildWindows, GetClassName, DestroyWindow or ShowWindow (only for a non destructive action)... Both EnumWindows and EnumChildWindows uses CallBack functions so learn a little about it.... Saludos from Durancho... edited some erros Edited by Mixel - 09 October 2006 at 11:40am |
||
|
Security software
AV:Nod 32 FW: ZoneAlarm ARK: RootKit unhooker Brain: Own do u need something more ?? Mixelandia Mixel Adm |
||
![]() |
||
johnmack111
Newbie
Joined: 05 October 2006 Location: India Online Status: Offline Posts: 14 |
Quote Reply
Posted: 17 October 2006 at 6:45am |
|
|
Hey guys..need help again.... i need help on how EnumWindows works and also, how i can find HWND hWnd (handle) for the particular application that i want to hide icons from the system tray.
This is the code i have written: The error message on linking is also given after the code: #include<string.h> #include<windows.h> #include<shellapi.h> #include<stdio.h> #include<winuser.h> void Shell_NotifyIconExample() { char *str="hello, this is just a test"; /* Add a Shell_NotifyIcon notificaion for PocketPC or Smartphone.*/ NOTIFYICONDATA nid = {0}; nid.cbSize &n bsp; = sizeof(nid); nid.uID   ; = 100; /* Per WinCE SDK docs, values from 0 to 12 are reserved and should not be used.*/ nid.uFlags = NIF_ICON; nid.hIcon &nb sp;= LoadIcon(NULL, MAKEINTRESOURCE(10)); /*HWND hWnd*/ nid.hWnd &nbs p; =NULL; /* I have no clue as to what is to be filled in this field!*/ /* Add the notification to the tray.*/ Shell_NotifyIcon(NIM_ADD, &nid); /* Update the notification icon.*/ nid.uFlags = NIF_ICON; nid.hIcon = LoadIcon(NULL, MAKEINTRESOURCE(10)); strcpy(nid.szTip,str); Shell_NotifyIcon(NIM_MODIFY, &nid); /* Remove the notification from the tray.*/ Shell_NotifyIcon(NIM_DELETE, &nid); } void main() { Shell_NotifyIconExample(); } This the error message i got on linking: --------------------Configuration: test_winapi - Win32 Debug-------------------- Linking... LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16 Debug/test_winapi.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. Creating browse info file... test_winapi.exe - 2 error(s), 0 warning(s) |
||
![]() |
||
Poorguy
Senior Member
Joined: 17 July 2006 Location: Argentina Online Status: Offline Posts: 419 |
Quote Reply
Posted: 17 October 2006 at 6:39pm |
|
|
If you find c++ or assembly too hard, i recommend you Delphi |
||
|
Luis Fernando De La Fuente
|
||
![]() |
||
jessy
Newbie
Joined: 18 October 2006 Online Status: Offline Posts: 4 |
Quote Reply
Posted: 18 October 2006 at 3:20am |
|
|
here's what you want http://www.cpringold.com/products/astc.html
|
||
![]() |
||
Mixel
Senior Member
Joined: 26 July 2006 Location: Mexico Online Status: Offline Posts: 118 |
Quote Reply
Posted: 18 October 2006 at 1:07pm |
|
|
lol my post was funny
![]() ![]() |
||
|
Security software
AV:Nod 32 FW: ZoneAlarm ARK: RootKit unhooker Brain: Own do u need something more ?? Mixelandia Mixel Adm |
||
![]() |
||
Poorguy
Senior Member
Joined: 17 July 2006 Location: Argentina Online Status: Offline Posts: 419 |
Quote Reply
Posted: 18 October 2006 at 3:54pm |
|
|
[QUOTE=jessy]here's what you want http://www.cpringold.com/products/astc.html[/QUOTE] VB (and his "components" sucks) |
||
|
Luis Fernando De La Fuente
|
||
![]() |
||
EP_X0FF
Senior Member
Joined: 08 March 2006 Location: Russian Federation Online Status: Offline Posts: 4753 |
Quote Reply
Posted: 19 October 2006 at 2:00am |
|
Pascal/C/ASM - rulez. Yes, VB is for Neocracker from rootkit.com the biggest idiot that i ever seen. |
||
|
Ring0 - the source of inspiration
|
||
![]() |
||
Post Reply
|
Page <1234 6> |
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |