|
-
Jun 16th, 2001, 02:36 PM
#1
Thread Starter
Frenzied Member
getting a handle and using it
Okay, how do I find the handle of a program? by its title? Once I get that I want to make it invisible....how would I do that? Thanks all
-
Jun 16th, 2001, 03:55 PM
#2
Frenzied Member
I don't quite understand you. What do you mean you want to make it invisible? Do you want to make the window invisible or...
Please clarify.
-
Jun 16th, 2001, 06:53 PM
#3
Thread Starter
Frenzied Member
I want it to be there but you can't see it, or off the screen, any way so that it is not in view.
-
Jun 17th, 2001, 05:41 AM
#4
Frenzied Member
If i understood you well:
PHP Code:
#include <windows.h>
...
HWND h = FindWindow(NULL,"caption");
ShowWindow(h,0); /*or use SW_HIDE, try both*/
-
Jun 17th, 2001, 10:35 AM
#5
Thread Starter
Frenzied Member
-
Jun 20th, 2001, 12:46 PM
#6
-
Jun 20th, 2001, 05:44 PM
#7
Thread Starter
Frenzied Member
I made a program with it....when you get it you can hide or show it. And using the SetWindowText api you can change window titles. It's somewhere on planetsourcecode.
-
Jun 20th, 2001, 06:59 PM
#8
Frenzied Member
Can you hide the desktop? =)
Harry.
"From one thing, know ten thousand things."
-
Jun 20th, 2001, 07:39 PM
#9
Thread Starter
Frenzied Member
I don't know, I get the handle by typing whatever is in the titlebar....but feel free to try:
http://www.planetsourcecode.com/vb/s...txtCodeId=1944
-
Jun 20th, 2001, 08:23 PM
#10
Frenzied Member
I'm pretty sure the desktop's window handle is NULL, but I don't have a compiler on this computer and I'd be too lazy to check it anyway
Harry.
"From one thing, know ten thousand things."
-
Jun 21st, 2001, 06:38 AM
#11
Monday Morning Lunatic
It's not usually NULL, since that doesn't really act as a handle Try GetDesktopWindow() anyway, if you need it. You can mess around with the desktop listview by getting a child window of ProgMan
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Jun 21st, 2001, 06:52 AM
#12
transcendental analytic
128 if i remember correct, it usually was for me, but i haven't checked it out for a while. i remember when i accidentaly dragdropped my desktop into my appbar prog, and it crashed soon but before it did, i could drag down my appbar and the desktop went with it
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Jun 21st, 2001, 03:29 PM
#13
Thread Starter
Frenzied Member
an exe is included in the zip harry 
what would happen if I hid the desktop?
-
Jun 21st, 2001, 03:36 PM
#14
Monday Morning Lunatic
Not much, since it's hidden anyway. All the desktop window is, is a parent window. You can't see it - it just acts as a top level.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Jun 22nd, 2001, 07:01 PM
#15
transcendental analytic
Not really true, i had put my desktop in another window, i saw it before it crashed 5 seconds later. The area that was below looked like the desktop but without icons, the screen DC was still updating that area for some really odd reason.
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|