Prøv den her:
"Correctly written Windows apps that want to save their location from run to run will save the results of GetWindowPlacement() before shutting down, then use SetWindowPlacement() on startup to restore their position.
Frequently, apps will store the results of GetWindowPlacement() in the registry as a REG_BINARY for easy use.
The WINDOWPLACEMENTroute has many advantages over other methods:
Handles the case where the screen resolution changed since the last run: SetWindowPlacement() will automatically ensure that the window is not entirely offscreenSaves the state (minimized/maximized) but also saves the restored (normal) size and positionHandles desktop metrics correctly, compensating for the taskbar position, etc. (i.e. uses "workspace coordinates" instead of "screen coordinates" -- techniques that rely on saving screen coordinates may suffer from the "walking windows" problem where a window will always appear a little lower each time if the user has a toolbar at the top of the screen).Finally, programs that handle window restoration properly will take into account the nCmdShowparameter passed in from the shell. This parameter is set in the shortcut that launches the application (Normal, Minimized, Maximize):
if(nCmdShow != SW_SHOWNORMAL) placement.showCmd = nCmdShow; //allow shortcut to override
For non-Win32 applications, it's important to be sure that the method you're using to save/restore window position eventually uses the same underlying call, otherwise (like Java Swing's setBounds()/getBounds() problem) you'll end up writing a lot of extra code to re-implement functionality that's already there in the WINDOWPLACEMENT functions."
Evt. download Ultramon
--
Hvis du ikke finder løsning kan du win tast + p også vælge kun prima skærm, så efter program er åben så win tast + p og slå den anden skærm til igen
--
#1 Desværre forstår jeg ikke rigtig noget af det du citerer.
#2 Tak :) Syntes det er en fin midlertidig løsning!
--
Jeg har tidligere brugt et program der hedder UltraMon til at administrere det. Det var et super lækkert program som også kunne give 2 forskellige baggrunde på skrivebordet med mere. Jeg ved ikke om det stadig findes, da jeg ikke har brugt det gody 6 år. Men google it, og så finder du det nok!
--
Nu uden signatur :O
#4 og (#1) Tak :-) Jeg kigger på det, hvis jeg ikke kan leve med løsningen i #2.
--