By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,212 Members | 1,941 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,212 IT Pros & Developers. It's quick & easy.

Controlling the window location of an external app

P: n/a
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

Jan 3 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a

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

On 3 Jan 2006 05:47:36 -0800, "SteMc" <go****@jasmonio.supanet.com>
wrote:
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


Jan 3 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.