• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 296
  • Last Modified:

CreateProcess

  Hi there,
I'm using CreateProcess to start the some applications. I want to start application with given size and position. In STARTUPINFO I set the parameters for the size and set the flag : StrUpInfo.dwFlags     = STARTF_USEPOSITION | STARTF_USESIZE ;
   But it is seems has no effect. For an example notepad of MSWord will have their own parametrs.
   Any one have an idea about this?

Regards,
0
genady
Asked:
genady
1 Solution
 
jkrCommented:
>>For an example notepad of MSWord will have their own parametrs

If the programmer decides not to evaluate these parameters at program startup, there's hardly anything you can do about it...
0
 
genadyAuthor Commented:
Thats nice,:)
   So what are you trying to say I can't do it at the start up.
Cheers,
0
 
SalteCommented:
The values you pass in startup info are only 'advisory'. The application can ignore them if it so chooses.

However, there are still ways to do it, just not at startup.

When the window has been created you can get a handle to the window and move and resize it as you please.

Alf
0
 
tinchosCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Answered by: jkr

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Tinchos
EE Cleanup Volunteer
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now