Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 03 MAR 1998 08:54:17AM Jeff Word Enterprises wrote:

I have other software that I want to interface with and I need to find the handle so I can hide, minimize, show, etc. Is there a Windows API call that shows the handle of ALL open windows and not just those in OI?


At 03 MAR 1998 09:46AM Don Bakke wrote:

Jeff,

Getting a list of handles without any reference to the application behind them would be fairly useless. You can get the handle of any particular application using the Windows API FindWindow.

The most straight forward way of using this function is passing the class of the window in question (which is the way OI has already prototyped this function), but then you need a way to get the class. You can do this by running a Spy program that comes with most C++ compilers (I believe VB and Delphi also come with one). There are third party spy programs as well that work fine.

Alternatively, you can use FindWindow by passing it the text that appears in the title bar of a window. You will have to create a new prototype for this function to work this way. My suggestion is that you go to www.sprezzatura.com

and download the latest SENL which has an article where Carl Pates explains how to do this very thing.

dbakke@srpcs.com

SRP Computer Solutions

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/5e7db2040d8ef167852565bc004c61d2.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1