AGB  ·  Datenschutz  ·  Impressum  







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

if GetWindowLong ...

Ein Thema von Neutral General · begonnen am 2. Jan 2007 · letzter Beitrag vom 2. Jan 2007
Antwort Antwort
Benutzerbild von Neutral General
Neutral General

Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
 
Delphi 10.2 Tokyo Professional
 
#1

if GetWindowLong ...

  Alt 2. Jan 2007, 20:04
Hi,

Wie überprüft man ob ein Flag gesetzt ist bei dem was man bei GetWindowLong zurückbekommt?

Delphi-Quellcode:
if GetWindowLong(wnd,GWL_EXSTYLE) or WS_EX_APPWINDOW = WS_EX_APPWINDOW then
...
eigentlich so oder?
Ich glaub bei mir geht das nicht so richtig -.-

Gruß
Neutral General
Michael
"Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."
  Mit Zitat antworten Zitat
Muetze1
(Gast)

n/a Beiträge
 
#2

Re: if GetWindowLong ...

  Alt 2. Jan 2007, 20:06
Ersetz OR mit AND
  Mit Zitat antworten Zitat
Benutzerbild von Neutral General
Neutral General

Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
 
Delphi 10.2 Tokyo Professional
 
#3

Re: if GetWindowLong ...

  Alt 2. Jan 2007, 20:09
ja hab ich auch schon versucht...

Delphi-Quellcode:
if (IsWindow(i)) and
   (GetWindowLong(i,GWL_EXSTYLE) and WS_EX_APPWINDOW = WS_EX_APPWINDOW) then
   begin
     mIcon.Handle := SendMessage(i,WM_GETICON,WPARAM(TRUE),0);
     if mIcon.Handle <> 0 then
     begin
      ..... //hierhin komme ich nie! ohne GetWindowLong schon...
Und wenn ein Fenster WS_EX_APPWINDOW ist hats doch normal auch ein Icon oder? -.-
Michael
"Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."
  Mit Zitat antworten Zitat
Christian Seehase
(Co-Admin)

Registriert seit: 29. Mai 2002
Ort: Hamburg
11.105 Beiträge
 
Delphi 11 Alexandria
 
#4

Re: if GetWindowLong ...

  Alt 2. Jan 2007, 21:13
Moin Michael,

kommst Du denn überhaupt zur SendMessage-Zeile?

Ausserdem solltest Du die vordefinierten Konstanten für wparam benutzen (ICON_BIG (1), ICON_SMALL (0) oder unter XP ICON_SMALL2 (2)).
Das wparam(true) funktioniert hat ist wohl eher als Zufall anzusehen.
Tschüss Chris
Die drei Feinde des Programmierers: Sonne, Frischluft und dieses unerträgliche Gebrüll der Vögel.
Der Klügere gibt solange nach bis er der Dumme ist
  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 03:24 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