| Anonymous | Login | 2025-12-05 09:09 UTC | ![]() |
| Main | My View | View Issues | Change Log | Roadmap | My Account |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||
| 0000128 | Soldat | John | public | 2011-10-31 23:31 | 2015-04-18 17:19 | ||||||||
| Reporter | Mr | ||||||||||||
| Assigned To | |||||||||||||
| Priority | normal | Severity | minor | Reproducibility | always | ||||||||
| Status | acknowledged | Resolution | open | ||||||||||
| Platform | x64 | OS | Windows | OS Version | 7 | ||||||||
| Product Version | 1.6.2 | ||||||||||||
| Target Version | Fixed in Version | ||||||||||||
| Summary | 0000128: Config.exe always starts up on the primary screen | ||||||||||||
| Description | See summary | ||||||||||||
| Additional Information | Suggested fix: Use the cursor position or last active window to determine the active screen. This is a commonly used technique. POINT point = { 0 }; MONITORINFO mi = { sizeof(MONITORINFO), 0 }; HMONITOR hMonitor = 0; RECT rcArea = { 0 }; GetCursorPos(&point); hMonitor = MonitorFromPoint(point, MONITOR_DEFAULTTONEAREST); // hMonitor = MonitorFromWindow(GetForegroundWindow(), MONITOR_DEFAULTTONEAREST); if(GetMonitorInfo(hMonitor, &mi)) { rcArea.left = (mi.rcMonitor.right + mi.rcMonitor.left - current_form_width) /2; rcArea.top = (mi.rcMonitor.top + mi.rcMonitor.bottom - current_form_height) /2; } else { SystemParametersInfo(SPI_GETWORKAREA, NULL, &rcArea, NULL); rcArea.left = (rcArea.right + rcArea.left - current_form_width) / 2; rcArea.top = (rcArea.top + rcArea.bottom - current_form_height) / 2; } rcArea.left and rcArea.top will now contain the optimal startup position of your window. | ||||||||||||
| Tags | No tags attached. | ||||||||||||
| Attached Files | |||||||||||||
Relationships |
||||||
|
||||||
Notes |
|
|
(0002418) homerofgods (updater) 2015-04-15 21:00 |
<@Shoozza> is this still a thing? <@Shoozza> i remember fixing that some time ago Mr is it fixed? |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2011-10-31 23:31 | Mr | New Issue | |
| 2012-03-01 01:06 | Shoozza | Status | new => acknowledged |
| 2015-04-15 21:00 | homerofgods | Note Added: 0002418 | |
| 2015-04-18 17:19 | homerofgods | Relationship added | related to 0000523 |
| 2020-08-27 09:23 | MM | Category | GUI => John |
| Copyright © 2000 - 2025 MantisBT Team |