Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!think.com!mintaka!bloom-beacon!eru!hagbard!sunic!fuug!funic!santra!spica.hut.fi!tst From: tst@spica.hut.fi (Timo Veijola) Newsgroups: comp.windows.ms.programmer Subject: Controlling other applications Message-ID: <1991Feb13.065618.27672@santra.uucp> Date: 13 Feb 91 06:56:18 GMT Sender: news@santra.uucp (Cnews - USENET news system) Reply-To: tst@spica.hut.fi (Timo Veijola) Organization: Helsinki University of Technology Lines: 19 It's easy to start an other application (eg. notepad) from your own code using WinExec() or LoadModule() but how to you resize, move or delete the other applications window ? I have tried following ways but with no success: - Retrieve the window handles of all windows on the screen using hWnd=GetWindow(). GetWindowText(hWnd...) gives the caption titles OK. - SendMessage(hWnd ...) does not seem to work. Propably the message is only delivered the my own applications message queue ... - DestroyWindow(hWnd) has no effect ? Timo Veijola timo@aplac.hut.fi Circuit Theory Laboratory Department of Electrical Engineering Helsinki University of Technology