Wo kann man per Programm in XP die aktuelle Bildschirmauflösung auslesen?
Danke.
Wo kann man per Programm in XP die aktuelle Bildschirmauflösung auslesen?
Danke.
Wo kann man per Programm in XP die aktuelle
Bildschirmauflösung auslesen?Danke.
Zunächst wäre es mal hilfreich, wenn Du sagen könntest, in welcher Sprache bzw. Umgebung das Programm denn sein soll…
Wenn es über die Win32 API gehen soll, dann informier’ Dich am besten mal über „EnumDisplaySettings“ (z.B. per MSDN).
Martin
Wo kann man per Programm in XP die aktuelle
Bildschirmauflösung auslesen?
Sollte mit der WMI gehen. Kann man von C, VB, VB.net, C# etc. drauf zugreifen.
Chris
Hallo,
was ist WMI? Kenne mich in der Windowsumgebung nicht aus. Prgrammiere in der speziellen SAP Sprache ABAP und kann dort auf bestimmte Variablen zugreifen und die Registry auslesen.
[Bei dieser Antwort wurde das Vollzitat nachträglich automatisiert entfernt]
was ist WMI?
Windows Management Instrumentation
Kenne mich in der Windowsumgebung nicht aus.
Prgrammiere in der speziellen SAP Sprache ABAP und kann dort
auf bestimmte Variablen zugreifen und die Registry auslesen.
Was erwartest Du?
Deine Art im Forum zu posten ist nicht ideal.
Wo kann man per Programm in XP die aktuelle
Bildschirmauflösung auslesen?
Prgrammiere in der speziellen SAP Sprache ABAP und kann dort
auf bestimmte Variablen zugreifen und die Registry auslesen.
Hallo Gunter,
verstehe ich dich richtig: Du willst mit ABAP die Bildschirmauflösung auslesen? Wozu brauchst du das?
Du sagst, du kannst die Registry auslesen? Das müsste dort irgendwo drin stehen.
Oder brauchst du nur die Größe des aktuellen SAP-GUI-Dynpros? Zeilen- bzw. Spaltenanzahl findest du in den Variablen SYST-SROWS und SYST-SCOLS (funktioniert auch bei geänderter Fenstergröße).
Gruß,
Christoph
Wo kann man per Programm in XP die aktuelle
Bildschirmauflösung auslesen?
Hallo Gunter,
folgendes ist unter W98 veröffentlicht, dürfte aber allgemein gelten:
When you expand the registry key HKEY\_CURRENT\_CONFIG, you see two subkeys: Display and System. Under these keys are the configuration data values for the current hardware configuration of the computer.
Display Subkey
Expand the Display subkey to see its two subkeys: Fonts and Settings. These subkeys hold data values that regulate the display of operating system elements.
FONTS
...
SETTINGS
The data in \Display\Settings shows the Window metrics for the operating system (again, not for application software). This data specifies size, color, and resolution (see Figure 17-5).
The data is interpreted as follows:
BitsPerPixel is a symbol that stands for color depth (in this case “8”, which means 256-color).
DPILogicalX is the number of horizontal dots per inch for the font display.
DPILogicalY is the number of vertical dots per inch for the font display.
DPIPhysicalX is the actual number of dots per inch displayed horizontally on your monitor.
DPIPhysicalY is the actual number of dots per inch displayed vertically on your monitor.
Fixedfon.fon is the name of the screen font.
Fonts.fon is the filename for the screen font.
Oemfonts.fon is the filename for the oem fonts.
Resolution is the selected screen resolution (which always refers to pixels).
All these data items are strings, which means you could make changes directly to the registry – but it’s not a good idea to make changes this way. Instead, use the Settings tab of the Display Properties dialog box (see Figure 17-6).
Gruss Reinhard
Hallo Christoph,
habe einen Splitter Container, bei dem auf der einen Seite eine Grafik
platziert ist. Ja nach Auflösung muss ich den Container größer oder kleiner machen, damit die Grafik ganz angezeigt wird.
In der Registry habe ich nichts gefunden, vielleicht sind das auch HEX Zahlen.
Gruß
Gunter
[Bei dieser Antwort wurde das Vollzitat nachträglich automatisiert entfernt]