Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General PowerPoint Questions / April 2008

Tip: Looking for answers? Try searching our database.

Multiple screens

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
john@aol.com - 10 Apr 2008 14:46 GMT
I am writing a add in for powerpoint on a multi screen system.  i
want it to react differently if powperpoint loads on the primary
screen then if it loads on the secondary screen.  How can i tell which
screen powerpoint is lading to get the add in to work properly
Chirag - 11 Apr 2008 04:30 GMT
If you have the PowerPoint window handle, you can use MonitorFromWindow()
API on it to get the handle to the monitor. From there, you can use
GetMonitorInfo() to get more information about the monitor.

- Chirag

 PowerShow - View multiple PowerPoint slide shows simultaneously
 http://officeone.mvps.org/powershow/powershow.html

>I am writing a add in for powerpoint on a multi screen system.  i
> want it to react differently if powperpoint loads on the primary
> screen then if it loads on the secondary screen.  How can i tell which
> screen powerpoint is lading to get the add in to work properly
John@aol.com - 11 Apr 2008 11:15 GMT
I know how to get the information on the screens..How can I tell
whether powerpoint program (not the slide show) loads onto  monitor 1
or 2?

>If you have the PowerPoint window handle, you can use MonitorFromWindow()
>API on it to get the handle to the monitor. From there, you can use
[quoted text clipped - 9 lines]
>> screen then if it loads on the secondary screen.  How can i tell which
>> screen powerpoint is lading to get the add in to work properly
vindys - 11 Apr 2008 12:54 GMT
I guess you can only get where the application is now working on.

MONITORINFO
dwFlags
   A set of flags that represent attributes of the display monitor.

   The following flag is defined.
   Value     Meaning
   MONITORINFOF_PRIMARY     This is the primary display monitor.

This should give you whether its a primary monitor.

> I know how to get the information on the screens..How can I tell
> whether powerpoint program (not the slide show) loads onto  monitor 1
[quoted text clipped - 13 lines]
> >> screen then if it loads on the secondary screen.  How can i tell which
> >> screen powerpoint is lading to get the add in to work properly
Chirag - 11 Apr 2008 19:06 GMT
I was assuming that you wanted to know which monitor PowerPoint was running
on but it seems you want to know which monitor PowerPoint will load on to
before running PowerPoint. In this case, you can lookup the following
registry entry:
HKCU\Software\Microsoft\Office\<version>\PowerPoint\Options
Read the values for DisplayMonitor, AppMaximized, Left, Top, Right and
Bottom in this key. <version> is the PowerPoint version you are looking for:
10.0 is PowerPoint 2002 (XP)
11.0 is PowerPoint 2003
12.0 is PowerPoint 2007

If AppMaximized is 1, then look at the value for DisplayMonitor - this is
the monitor that PowerPoint will be maximized on. If AppMaximized is 0, then
use Left, Top, Right, Bottom to know the size of the PowerPoint window. In
this case, it may span multiple monitors.

- Chirag

 PowerShow - View multiple PowerPoint slide shows simultaneously
 http://officeone.mvps.org/powershow/powershow.html

>I know how to get the information on the screens..How can I tell
> whether powerpoint program (not the slide show) loads onto  monitor 1
[quoted text clipped - 13 lines]
>>> screen then if it loads on the secondary screen.  How can i tell which
>>> screen powerpoint is lading to get the add in to work properly
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.