AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Sprachen und Entwicklungsumgebungen Object-Pascal / Delphi-Language Delphi Why MagSetImageScalingCallback function fails when is executed in new desktop?
Thema durchsuchen
Ansicht
Themen-Optionen

Why MagSetImageScalingCallback function fails when is executed in new desktop?

Ein Thema von flashcoder · begonnen am 21. Mai 2018 · letzter Beitrag vom 25. Mai 2018
Antwort Antwort
flashcoder

Registriert seit: 10. Nov 2013
83 Beiträge
 
#1

AW: Why MagSetImageScalingCallback function fails when is executed in new desktop?

  Alt 21. Mai 2018, 12:17
  1. What does your GetLastError() return?
  2. Im sure you saw the
    Zitat:
    The MagSetImageScalingCallback function is deprecated in Windows 7 and later, and should not be used in new applications.
  3. Your example is missing your CreateDesktop shenanigans. As far as I recall, additional desktops are very limited. Example: They cannot have Aero features (and probably other DWM stuff).
GetLastError() returns 50 - ERROR_NOT_SUPPORTED - The request is not supported.

Really, this about DWM is true. And even that MagSetImageScalingCallback work, but MagSetWindowSource will fail because this api only works with Aero Theme enabled.

Geändert von flashcoder (21. Mai 2018 um 12:20 Uhr)
  Mit Zitat antworten Zitat
flashcoder

Registriert seit: 10. Nov 2013
83 Beiträge
 
#2

AW: Why MagSetImageScalingCallback function fails when is executed in new desktop?

  Alt 23. Mai 2018, 21:11
SOLVED!

This is working on Win 8/8.1 and 10, all x86 and x64.

Not works in Windows versions < 8
  Mit Zitat antworten Zitat
Der schöne Günther

Registriert seit: 6. Mär 2013
6.199 Beiträge
 
Delphi 10 Seattle Enterprise
 
#3

AW: Why MagSetImageScalingCallback function fails when is executed in new desktop?

  Alt 24. Mai 2018, 09:40
As I said, that's because Aero and all that Jazz is inactive on separate Desktops on Windows < 8.
  Mit Zitat antworten Zitat
flashcoder

Registriert seit: 10. Nov 2013
83 Beiträge
 
#4

AW: Why MagSetImageScalingCallback function fails when is executed in new desktop?

  Alt 25. Mai 2018, 01:29
As I said, that's because Aero and all that Jazz is inactive on separate Desktops on Windows < 8.
Exactly!
  Mit Zitat antworten Zitat
Antwort Antwort


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 12:04 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz