943,769 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 777
  • C++ RSS
Jan 3rd, 2009
0

XP Window Hide

Expand Post »
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.
Similar Threads
Reputation Points: 23
Solved Threads: 3
Junior Poster
clutchkiller is offline Offline
181 posts
since Jul 2008
Jan 3rd, 2009
0

Re: XP Window Hide

What exactly do you mean by hide, as in minimize? if so then look at CloseWindow().

Otherwise you will need to explain more.

Chris
Reputation Points: 325
Solved Threads: 118
Master Poster
Freaky_Chris is offline Offline
702 posts
since Apr 2008
Jan 3rd, 2009
0

Re: XP Window Hide

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.
Reputation Points: 23
Solved Threads: 3
Junior Poster
clutchkiller is offline Offline
181 posts
since Jul 2008
Jan 3rd, 2009
0

Re: XP Window Hide

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.
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004
Jan 3rd, 2009
0

Re: XP Window Hide

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?
Reputation Points: 23
Solved Threads: 3
Junior Poster
clutchkiller is offline Offline
181 posts
since Jul 2008
Jan 3rd, 2009
0

Re: XP Window Hide

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.
Attached Files
File Type: zip Code.zip (1,017.1 KB, 23 views)
Last edited by Comatose; Jan 3rd, 2009 at 11:15 pm.
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004
Jan 3rd, 2009
0

Re: XP Window Hide

Wow, thank you very much. You are very helpful and i think i got this figured out thanks to your attached file. Respect =D
Reputation Points: 23
Solved Threads: 3
Junior Poster
clutchkiller is offline Offline
181 posts
since Jul 2008
Jan 3rd, 2009
0

Re: XP Window Hide

Click to Expand / Collapse  Quote originally posted by Comatose ...
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.
Reputation Points: -76
Solved Threads: 14
Junior Poster
marco93 is offline Offline
132 posts
since Apr 2008
Jan 4th, 2009
0

Re: XP Window Hide

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.
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: songa rating prog
Next Thread in C++ Forum Timeline: Help with what should be a very simple code task.





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC