XP Window Hide

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Jul 2008
Posts: 111
Reputation: clutchkiller is an unknown quantity at this point 
Solved Threads: 1
clutchkiller's Avatar
clutchkiller clutchkiller is offline Offline
Junior Poster

XP Window Hide

 
0
  #1
Jan 3rd, 2009
You are able to hide the desktop icons on xp by right clicking on the desktop and choosing to hide them, but how would you do it through c++? I was messing around with DestroyWindow and ShowWindow, but I cant figure it out. Any help?

WinSpector is telling me that the class is #32768 and the window is 001802cc, but I dont really know how to make use of that.
Last edited by clutchkiller; Jan 3rd, 2009 at 7:55 pm.
>That confuses me =(
Get used to it. Good programmers are in a constant state of confusion.
>Looks like i have some quasi specifics to investigate! Up Up And AWAY!
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 671
Reputation: Freaky_Chris is a jewel in the rough Freaky_Chris is a jewel in the rough Freaky_Chris is a jewel in the rough 
Solved Threads: 113
Freaky_Chris's Avatar
Freaky_Chris Freaky_Chris is offline Offline
Practically a Master Poster

Re: XP Window Hide

 
0
  #2
Jan 3rd, 2009
What exactly do you mean by hide, as in minimize? if so then look at CloseWindow().

Otherwise you will need to explain more.

Chris
Knowledge is power -- But experience is everything
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 111
Reputation: clutchkiller is an unknown quantity at this point 
Solved Threads: 1
clutchkiller's Avatar
clutchkiller clutchkiller is offline Offline
Junior Poster

Re: XP Window Hide

 
0
  #3
Jan 3rd, 2009
I apologize if i didnt explain well enough. If you right click on the desktop when using windows XP, you can choose an option to hide the desktop icons. I was wondering how i would do that through c++ instead of having to use the mouse and manually do it. I am using the term "hide" as a general term, nothing code related.
>That confuses me =(
Get used to it. Good programmers are in a constant state of confusion.
>Looks like i have some quasi specifics to investigate! Up Up And AWAY!
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: XP Window Hide

 
0
  #4
Jan 3rd, 2009
What you may consider instead, is killing the process "explorer.exe". Then do a findwindow and look for taskmanager... if you see task manager, send a wm_close message (so they can't just open task manager, and run explorer.exe again). With explorer.exe gone... they have access to nothing but taskman... just a thought.
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 111
Reputation: clutchkiller is an unknown quantity at this point 
Solved Threads: 1
clutchkiller's Avatar
clutchkiller clutchkiller is offline Offline
Junior Poster

Re: XP Window Hide

 
0
  #5
Jan 3rd, 2009
That was my original idea comatose, but i couldnt figure out how to work the ExitProcess() function. I am still pretty new to programming, so i dont really understand yet how to properly handle the parameters. I would rather end explorer but dont know how. Could you elaborate for me, if you dont mind?
>That confuses me =(
Get used to it. Good programmers are in a constant state of confusion.
>Looks like i have some quasi specifics to investigate! Up Up And AWAY!
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: XP Window Hide

 
0
  #6
Jan 3rd, 2009
I've Attached Two Projects (I use Code::Blocks In Windows, gvim In *nix to write code). The projects are in code::blocks format, but you only need the .cpp files. Both of these are commented basically line for line (if not, at least each code block is). I think it will be a great way to learn... by taking snippets from projects and putting them in your project. If you run across issues with making the code work in your project, let me know, and we can work on making it work tailored to your need.
Last edited by Comatose; Jan 3rd, 2009 at 11:15 pm.
Attached Files
File Type: zip Code.zip (1,017.1 KB, 13 views)
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 111
Reputation: clutchkiller is an unknown quantity at this point 
Solved Threads: 1
clutchkiller's Avatar
clutchkiller clutchkiller is offline Offline
Junior Poster

Re: XP Window Hide

 
0
  #7
Jan 3rd, 2009
Wow, thank you very much. You are very helpful and i think i got this figured out thanks to your attached file. Respect =D
>That confuses me =(
Get used to it. Good programmers are in a constant state of confusion.
>Looks like i have some quasi specifics to investigate! Up Up And AWAY!
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 118
Reputation: marco93 is infamous around these parts marco93 is infamous around these parts marco93 is infamous around these parts 
Solved Threads: 12
marco93 marco93 is offline Offline
Junior Poster

Re: XP Window Hide

 
0
  #8
Jan 3rd, 2009
Originally Posted by Comatose View Post
I've Attached Two Projects.

What are these irrelevant BS (killing the processes ??!!)
Just use standard win32 api to hide Desktop icons (1 line of code) !
Last edited by marco93; Jan 3rd, 2009 at 11:40 pm.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: XP Window Hide

 
0
  #9
Jan 4th, 2009
lol... he wanted to kill explorer.exe... it shows him how to enumerate processes to filter out which ones are which.

Also, this is hardly irrelevant BS. I was asked by someone (a computer tech, who fixes computers for people with messed up windows machines [instead of reinstalling all the time]) to build this program, since it closes everything except what windows needs to operate (it closes all programs that windows doesn't require, leaving a clean system).

Anyway, the OP found it useful... so your opinion is moot.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC