[quote pid='16688' dateline='1515179751']
MartinThanks for the feedback. That means the newly introduced feature, which is preserving window position of the summary window is the problem.
But I'm quite puzzled by this because I tested this on several machines with scaling and haven't seen such a problem.
Please try the following: click the "Reset Preferences" button and then enable "Remember Preferences" again. On the first run it should be OK, then please close HWiNFO and start again. Will it be chopped now ?
[/quote]
Ah. I think I found the culprit. So resetting and remembering works. Until I change the dpi again, then hwinfo "remembers" the old dpi setting since this is what it's supposed to be doing. Thus the window gets chopped.
I increased my dpi for this test to 200% after resetting and remembering at 175%. Now it gets chopped by about 25%.
I'm not sure how you would implement this feature. Hwinfo needs to somehow recognize that the dpi scaling has been changed/reset. Then I think the problem might be resolved.
Or I think if it is not used somewhere else, just not save the dpi setting and let it calculate it each time? So never remember this feature.
I'm not sure what you use to build hwinfo but within c# you could also utilize autosize/autoscale
https://msdn.microsoft.com/en-us/library/system.windows.forms.form.autosize.aspx
https://msdn.microsoft.com/en-us/library/system.windows.forms.containercontrol.autoscalemode.aspx
Or of course wmi/.Net, but you might get different results with different hardware configurations.
Hope that helps
[attachment=2604]