Quick Search for:  in language:    
API,WinHandler,lets,manipulate,existing,windo
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
Visual Basic Stats

 Code: 3,011,557. lines
 Jobs: 117. postings

 How to support the site

 
Sponsored by:

 

You are in:

 
Login



Latest Code Ticker for Visual Basic.
Defrag at certain time
By Michael Nipper on 7/1


Click here to see a screenshot of this code!Extended Find Ver 2
By Roger Gilchrist on 7/1

(Screen Shot)

Y! Module
By NightCrawler on 7/1


Files Comperator (the right way)
By Jarry Claessen on 6/30


Simple UDP example
By Mick Walton on 6/30


CAPS Trigger
By Trevor Burley on 6/30


Auto clip picture
By Kenneth. Jakobsen on 6/30


Click here to see a screenshot of this code!Game of life clone (cool math)
By Johannes B on 6/30

(Screen Shot)

String to CHR()
By Nikhil Raj on 6/30


Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!





Affiliate Sites



 
 
   

WinHandler

Print
Email
 
winzip icon
Submitted on: 10/11/2000 6:15:32 PM
By: Kimon Andreou 
Level: Advanced
User Rating: By 39 Users
Compatibility:VB 6.0

Users have accessed this code 10386 times.
 
 
     WinHandler lets you manipulate the existing windows on your system. You can resize, move, change style and text, kill, copy, paste, undo etc. All by using Win32 API calls. It is a good demonstration (in my opinion) of Enumeration functions, SendMessage() and SetWindowPos()
 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzipto decompress it.

Virus note:All files are scanned once-a-day by Planet Source Code for viruses,but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:
1)Re-scan downloaded files using your personal virus checker before using it.
2)NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
3)Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
1) You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 1 submission(s) by this author

 

 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this code(in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
10/11/2000 8:07:42 PM:Jeff
can you tell me how to get the window 
text from a edit box like you can set 
it in an edit box?  great code!  i gave 
it an excellent
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/11/2000 11:47:19 PM:Eric (EmX)
This is smooth. Nice Code. 5 stars
-EmX
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/20/2000 11:29:25 PM:Anoop M Nedumkunnam
Jeff, you can use the GetWindowText API 
call to get the text in a window (in a 
text box too).
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/2/2000 7:28:04 PM:Jared
Hey, this is semi-relevant. If anyone 
knows, although this is directed to 
Kimon, please email me at 
The_Only_One_Left@hotmail.com. Anyway 
here's my question. For example, 
different instances of the Instant 
Message box in AIM have the same class 
name but different handles. However, 
they are all the same level, as in, not 
child or parent to each other. Is there 
a way to cycle through all the 
different IMs and retrieve information 
from each? Thanks.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/3/2000 7:56:15 AM:Kimon Andreou
Jared:
If you check the source code, 
in the function "EnumWindowProc" in the 
module
"basMain" I use the function 
"GetClassName" which returns a string.  
You can
use this function in your own 
"EnumWindowProc" and disregard all 
windows
whose class name is not the 
one you're looking for.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/8/2000 9:45:50 AM:John
I know that the MSDN docs say that you 
can't change window styles after the 
window has been created.  I want to 
change a style on-the-fly.  Can it be 
done?  Specifically I want to inhibit 
the resizing of a window in a foreign 
application.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/25/2001 6:45:39 AM:Mark
This is really good piece of code, has 
answered some hard questions I 
had.
Thanks.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/23/2001 9:54:29 AM:Ryan
can anyone tell my how to have my form 
load modally to a window that is not a 
part of my program but i do have the 
hWnd for. I'm trying to use this for 
the settings window of a screensaver i 
want it to unload if the user unloads 
the display properties window. any help 
would be greatly appreciated. 
rlh7234@excite.com
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
7/7/2001 9:37:14 PM:Frank D. Jimenez
Thank you very much for the code!  
You've done an excellent job.  I have a 
very strong need, though, that I was 
hoping you could help me with.  I need 
to be able to release as many Windows 
Resources as possible.  Do you know of 
any code that would work in WIN95, 
WIN98, and WIN2000?  Your help would be 
very much appreciated.
Also, exactly 
what does your REFRESH WINDOWS command 
do?
Thanks again for your work.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
7/15/2001 5:04:09 PM:Vitaly
Amazing! Your code helped me ALOT.
5 
green circles.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
3/19/2002 6:17:11 AM:Salman Ashraf
Hey your code is wonderful, I gave it 
an excellent. But I have a question, 
when I run notepad with your program 
and then i select notepad and settext 
in the notepad using child window it 
works fine, but how can I paste the 
text continuing from the cursor, 
suppose I write hello, in notepad and 
then switch to your code and type "how 
are you" in the text box of child 
window and after that the notepad 
displays me hello, how are you (i.e it 
pastes the how are you after hello, 
Please let me know this, I'm very 
depressed over this one.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
7/27/2002 2:12:24 PM:Anph
Jeff, If you want to set the text for a 
entrybox you need three things. You 
need the API, the constant and a window 
handle for a textbox.
Private 
Declare Function SendMessageByString 
Lib "user32" Alias "SendMessageA" 
(ByVal hwnd As Long, ByVal wMsg As 
Long, ByVal wParam As Long, ByVal 
lParam As String) As Long
Private 
Const WM_SETTEXT = &HC
Sub 
Main()
call 
SendMessageByString(frmMain.Text1.hWnd, 
WM_SETTEXT, 0&, "Hello")
End Sub
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/9/2002 6:16:31 PM:egbert
hello,
great code, but i could not 
find what i needed i need a code to 
recieve the text thats currently in the 
textbox. do you know how to do that? 
please help :'( mail me if you know
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | Visual Basic Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.