Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
May 22, 2013, 04:39:31 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Improved multiple monitor support  (Read 717 times)
dev0
JkDefrag Senior
****
Posts: 27


View Profile
« on: October 02, 2009, 12:16:15 pm »

This is pretty minor, but MyDefrag screensaver doesn't work very well on multiple monitors when the various monitors aren't of the same resolution and their combined display area doesn't form a perfect rectangle.  In this scenario, MyDefrag stretches across all the screens and inevitably gets clipped in multiple areas.  It would be nice if the screensaver could be limited to displaying on the primary display only.
Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #1 on: October 02, 2009, 01:18:47 pm »

Thanks for you report, I appreciate it. MyDefrag uses the standard Microsoft screensaver library. Things like the size of the screen are set by that library and out of MyDefrag's control. I'm sorry, but there is nothing I can do about this.
Logged
lh
JkDefrag Hero
*****
Posts: 83


View Profile
« Reply #2 on: October 02, 2009, 04:56:56 pm »

@jeroen

I think you can control the hwnd.  It has been a long time since I messed with the screensaver libraries.  But I think the api gives you a handle to the main hwnd and it is set to the size of the current screen.  As the idea is to cover the whole desktop and 'blank out'.  Think it has a property of top most also.  You probably could do a setwindowpos on the hwnd and it would probably just work.  You would have to dig around into the multimonitor stuff to figure out what the size of each display is.

SetWindowPos
http://msdn.microsoft.com/en-us/library/ms633545%28VS.85%29.aspx

EnumDisplayMonitors
http://msdn.microsoft.com/en-us/library/aa921439.aspx

Course then the question is what do you display on the 'other' monitor?!  Then how do you decide which one to display it on.

This case would probably be most common with someone using a TV and a regular monitor, or two mismatched monitors.  I could see this happening to me with a laptop and my tv.  Smiley
Logged
dev0
JkDefrag Senior
****
Posts: 27


View Profile
« Reply #3 on: October 02, 2009, 08:50:31 pm »

Quote
Things like the size of the screen are set by that library and out of MyDefrag's control. I'm sorry, but there is nothing I can do about this.

What's interesting about this is that, contrary to the way mydefrag screensaver works, many 3rd-party screen savers have a habit of not being multi-monitor aware, and only functioning on your primary monitor.  UltraMon (http://www.realtimesoft.com/ultramon/tour/screensaver.asp) has a special screensaver "proxy" specifically designed to address this issue, and even supports using different screen savers on each monitor. Currently, this is how I am working around this issue.

Quote
Course then the question is what do you display on the 'other' monitor?!  Then how do you decide which one to display it on.

For my particular use, I would be just fine if MyDefrag ran only on my primary monitor, and left the other screens black.  I could see the usefulness of being able to specify which monitor number to run the screensaver on, however.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!