Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Entertainment » microsoft.public.windowsmedia.sdk
Thread: How to Manage Multi Monitor IDs in C++

HTVi
TV Discussion Newsgroups

How to Manage Multi Monitor IDs in C++
rewantlge 10/14/2008 7:05:00 AM
Iam Developing a Multi monitor Application in C++ MFC VC 6.0 in which i need
to manage the diffrent monitor IDs for eg if 6 monitors are connected windows
will assign IDs as 1,2,3......6 to the monitors and it can be verified->with
the help of Desktop->Properties->Settings->Right Click on Monitor which u
want to Identify and click on identify it will display the assigned number on
the monitor.This is the normal way of identifying the monitor .

Now my problem is i need to change these system assigned IDs and change the
Numbers according to USER flexibility for eg if the window assigns number 6
to the monitor just right to him and he needs to change it to say 2, he
should be able to do that ..ie changing the syem assigned IDs of monitors
without reconnecting them or swapping of the monitor IDs so that he can play
with the applications running on the primary monitor and shift them to the
respective Monitors.

--
rewant
Re: How to Manage Multi Monitor IDs in C++
"Alessandro Angeli" <nobody[ at ]nowhere.in.the.net> 10/14/2008 4:04:13 PM
From: "rewantlge"

[...]
[Quoted Text]
> Now my problem is i need to change these system assigned
> IDs and change the Numbers according to USER flexibility
> for eg if the window assigns number 6 to the monitor just
> right to him and he needs to change it to say 2, he
> should be able to do that ..ie changing the syem assigned
> IDs of monitors without reconnecting them or swapping of
> the monitor IDs so that he can play with the applications
> running on the primary monitor and shift them to the
> respective Monitors.

I fail to see how this can be even remotely related to the
WindowsMedia SDK.

In any case, I don't think there is any user-mode API to
change the display number since it depends on the way the
kernel drivers enumerate the devices and it wouldn't be a
good idea because an application should not have system-wide
effects. Since the number is shown by your application GUI,
just remap the user-chosen IDs to the actual system IDs in
your own code.


--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen