I am launching Chrome with the app="http://..." parameter (a Chrome application shortcut) via C++. Now it seems to open with a size of roughly 400×800 which is crazy. I’d like to open it maximized or at least have it remember the size.
Is there a way to achieve this?
If you don’t mind using the default browser (which, in my opinion, is the best option) instead of forcing the use of Chrome, you can simply open your URL with
ShellExecutespecifying that you want the window to be maximized:Well, in this case it’s better to use
CreateProcess:Notice that you can try to specify a default size/posizion for the window using the
dwX/dwY/dwXSize/dwYSizemembers of theSTARTUPINFOstructure, but I’m not sure if Chrome respects these settings.