Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 01-04-2001, 05:44 PM
Goober Goober is offline
Junior Member
 
Join Date: Jan 2001
Posts: 17
Default Manipulating windows of other programs

I am looking for one or both of the following:
>Help on manipulating the size, position, focus, caption, border icons, etc. of open windows of other programs
>A web-based tutorial on the above.

Thanks to anyone who can help
Goober
Reply With Quote
  #2  
Old 01-04-2001, 06:11 PM
The Smurf The Smurf is offline
Member
 
Join Date: Jan 2001
Posts: 40
Default RE: Manipulating windows of other programs

You need to use the EnumWindows API function to figure out the handle of each window that you want to manipulate (you may also need to use EnumChildWindows if you want to manipulate an MDI child form).

Then, use the SendMessage API function to actually manipulate the Windows.

EnumWindows:
http://leb.net/wine/WinDoc/msdn/sdk/platforms/doc/sdk/win32/func/src/f22_4.htm

SendMessage:
http://leb.net/wine/WinDoc/msdn/sdk/platforms/doc/sdk/win32/func/src/f75_15.htm

-- The Smurf.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 09:02 AM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2017, vBulletin Solutions, Inc.