Controlling the window location of an external app

  • Thread starter Thread starter SteMc
  • Start date Start date
S

SteMc

I've started an application using the process.start idea mentioned a
couple of posts ago. However, I can't find a way for me to control the
position and size of the window that it opens.

The app I'm opening is a web browser which shows an html page created
by my prog. I can open the window is a normal/maximised/minimised
state, but can't see anything to allow me to control the size. Is there
something anyone knows about or is expected that I put the sizes in the
".arguments" section? (and therefore contact the software vendor for
paramater requirements?)

thanks,

Steve
 
If you can obtain a handle to the window, you should be
able to do this by sending it a WM_SIZE message.

Google for SendMessage and WM_SIZE.

Should work with any resizable window of any application.
Just make sure you get the correct handle.

Regards,

Joergen Bech
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top