Multiple Monitor Support for remembering WindowPos

User feature requests
Planned features for Core Temp
Post Reply
neveroffline
New User
Posts: 2
Joined: Fri Aug 27, 2010 9:29 pm

Multiple Monitor Support for remembering WindowPos

Post by neveroffline »

Hello.

I am trying to tweak the Remember Window Position by using a negative value for the X location SPX=. I have tried this in decimal and hex format, and also using the function you have to automatically remember the program location on the screen. It appears you are ignoring the X location if its negative and going with a default of like -3 or -5 X.

Can you please modify your code to the ACTUAL upper left X location of the coretemp app and write this to the config (on close) and modify your read of the config so I can have it startup on my second monitor (to my left) of the primary? Its a PITA that it doesn't remember the actual location.

Upper left of monitor to the left is -1920, upper right of monitor on the right is +1920. Hope you understand.

The best way for you to do this is to get the location of upper left X of the main window of Coretemp and STORE this, even if it is a negative value, and write that to the config. Then on read, load that as you are but DO NOT do a check for a negative value like you are and override it, and simply pass that to the Set window position function.

BOOL WINAPI SetWindowPos(
__in HWND hWnd,
__in_opt HWND hWndInsertAfter,
__in int X,
__in int Y,
__in int cx,
__in int cy,
__in UINT uFlags
);

X=-1920

Thanks.
Dustin

neveroffline
New User
Posts: 2
Joined: Fri Aug 27, 2010 9:29 pm

Re: Multiple Monitor Support for remembering WindowPos

Post by neveroffline »

If you wanna send me a quick EXE to test, I am more than happy to do that for ya to ensure it works ok if you yourself don't have a multiple monitor setup with your primary on the right.

Thanks.

User avatar
The Coolest
Site Admin
Site Admin
Posts: 3379
Joined: Tue Feb 18, 2003 7:48 pm
Location: Tel Aviv, Israel
Contact:

Re: Multiple Monitor Support for remembering WindowPos

Post by The Coolest »

Actually I happen to run the same config (2nd screen on the left). I'll see what i can do for the next release.
Main rig:
AMD Ryzen 9 5950X (True Spirit 140 Direct) / Mobo: Asrock Fatal1ty X470 / EVO 970 500GB + WD Blue 250GB + HDD / GPU: Dell RX 570 4GB / Mem: 2x16GB DDR4-3200 G.Skill 32GTZKW TridentZ - 32GB total / PSU: Seasonic Prime Ultra Gold 650W
NAS:
Core i7 2600K 3.4GHz @ 4.3GHz (Scythe Mugen2) / Mobo: Biostar TP67XE / 2x Inland Pro 120GB + HDDs / GPU: ATi Mach64 VT2 / Mem: 4x4GB DDR3-1600 G.Skill 8GBXL RipJawsX - 16GB total / PSU: Seasonic S12II 620W.
Secondary rigs:
Core i3 7130U / MiniPC / SanDisk SDSSDP-128G / GPU: Intel HD 620 / Mem: 1x8GB DDR3L-1600
Xeon X3430 2.40GHz @ 3.06GHz or Core i3 540 3.06GHz @ 4.0GHz (Freezer 7 Pro) / Mobo: MSI H55M-ED55 / PNY CS1111 240GB / GPU: ATI FirePro V3800 / Mem: 4x2GB DDR3-1600 G.Skill 4GBRL RipJaws - 8GB total / PSU: Seasonic S12II 620W
AMD Phenom II X4 B93 / Mobo: ASUS M2A-VM / GPU: ATI Radeon Xpress X1250 / Crucial M4 120GB / Mem: 2x2GB DDR2-800 - 4GB total / PSU: Antec 380W.

Core Temp - Accurate temperature monitor for Intel's Core/Core 2 and AMD64 processors

Post Reply

Return to “Development”