AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Desktop auf den Kopf stellen?

Ein Thema von axellang · begonnen am 14. Feb 2005 · letzter Beitrag vom 16. Feb 2005
Antwort Antwort
Seite 4 von 4   « Erste     234   
chris

Registriert seit: 24. Mai 2003
Ort: Düsseldorf
196 Beiträge
 
Delphi 2009 Professional
 
#31

Re: Desktop auf den Kopf stellen?

  Alt 15. Feb 2005, 21:20
hi,


Zitat:
lpszDeviceName
[in] Pointer to a null-terminated string that specifies the display device whose graphics mode will change. Only display device names as returned by EnumDisplayDevices are valid. See EnumDisplayDevices for further information on the names associated with these display devices.
dann sollte es ja so klappen:

Delphi-Quellcode:
procedure TForm1.Button1Click(Sender: TObject);
var DisplayDevice: TDisplayDevice;
begin
  DisplayDevice.cb := sizeof(DisplayDevice);
  EnumDisplayDevices(nil, 0, DisplayDevice, 0);

  [..]
  ChangeDisplaySettingsEx(DisplayDevice.DeviceString, aDevMode, Handle, 0, nil); //.DeviceName
  [..]
end;

Klappt aber nicht

[edit]
kann ja auch nicht, bzw. tut es nicht das was wir wollen

Zitat:
dmOrientation
For printer devices only, selects the orientation of the paper. This member can be either DMORIENT_PORTRAIT (1) or DMORIENT_LANDSCAPE (2).
und:

Zitat:
dmDisplayOrientation
Windows XP: For display devices only, the orientation at which images should be presented. If DM_DISPLAYORIENTATION is not set, this member must be zero. If DM_DISPLAYORIENTATION is set, this member must be one of the following values Value Meaning
DMDO_DEFAULT The display orientation is the natural orientation of the display device; it should be used as the default.
DMDO_90 The display orientation is rotated 90 degrees (measured clockwise) from DMDO_DEFAULT.
DMDO_180 The display orientation is rotated 180 degrees (measured clockwise) from DMDO_DEFAULT.
DMDO_270 The display orientation is rotated 270 degrees (measured clockwise) from DMDO_DEFAULT.
[/edit]
Chris
D2009.4 | Vista SP2 x32
  Mit Zitat antworten Zitat
Benutzerbild von phlux
phlux

Registriert seit: 4. Nov 2002
Ort: Witten
1.335 Beiträge
 
Delphi 6 Personal
 
#32

Re: Desktop auf den Kopf stellen?

  Alt 15. Feb 2005, 22:04
Vielleicht aber auch nur vllt ist es nur für Handhelds vorbedacht
Christian "phlux" Arndt
  Mit Zitat antworten Zitat
scp

Registriert seit: 31. Okt 2003
1.120 Beiträge
 
Delphi 7 Personal
 
#33

Re: Desktop auf den Kopf stellen?

  Alt 15. Feb 2005, 22:24
Hier ist die offizielle Anlaufstelle denke ich, da steht
Zitat:
lpszDeviceName
[in] Pointer to a null-terminated string that specifies the display device whose graphics mode will change. Only display device names as returned by EnumDisplayDevices are valid. See EnumDisplayDevices for further information on the names associated with these display devices.
The lpszDeviceName parameter can be NULL. A NULL value specifies the default display device. The default device can be determined by calling EnumDisplayDevices and checking for the DISPLAY_DEVICE_PRIMARY_DEVICE flag.
Aber klappen tuts bei mir auch nicht.

EDIT: Der Fehler dürfte in der veralteten DevMode Struktur liegen, dmOrientation ist für Drucker, dmDisplayOrientation gibt es nur in der neuen Struktur, z.B. in der JEDI Win32 API JwaWinGDI.pas.
  Mit Zitat antworten Zitat
paresy

Registriert seit: 24. Aug 2004
Ort: Lübeck
105 Beiträge
 
Delphi 2007 Professional
 
#34

Re: Desktop auf den Kopf stellen?

  Alt 15. Feb 2005, 23:03
außerdem:

Zitat:
dmDisplayOrientation
Windows XP: For display devices only, the orientation at which images should be presented. If DM_DISPLAYORIENTATION is not set, this member must be zero. If DM_DISPLAYORIENTATION is set, this member must be one of the following values
WinXP only
  Mit Zitat antworten Zitat
NicoDE
(Gast)

n/a Beiträge
 
#35

Re: Desktop auf den Kopf stellen?

  Alt 16. Feb 2005, 16:55
Habe mal ein wenig rumgespielt, anbei (Delphi 6), vielleicht hilft es jemandem...
Bei mir kommt als Antwort immer 'unsupported' (bietet der Gfx-Treiber nicht an)...
Angehängte Dateien
Dateityp: zip project1_934.zip (3,3 KB, 39x aufgerufen)
  Mit Zitat antworten Zitat
Antwort Antwort
Seite 4 von 4   « Erste     234   


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 23:10 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz