Delphi-PRAXiS
Seite 3 von 3     123   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi Kleine API-Fragen (https://www.delphipraxis.net/38108-kleine-api-fragen.html)

Christian Seehase 14. Jan 2005 23:50

Re: Kleine API-Fragen
 
Moin Shareholder,

ich weiss nicht, was Du willst ;-)
Der von Dir genannte Wert ist hexadezimal 94CA0000.

Die Werte der Konstanten sind (hex)
0000 0000 (WS_OVERLAPPED)
0008 0000 (WS_SYSMENU)
0002 0000 (WS_GROUP)
0040 0000 (WS_DLGFRAME)

Macht zusammen:
004A 0000

00C0 0000 ist gleich 0080 0000 or 0040 0000

also sind alle Styles in dem Wert enthalten.

Der Winspector scheint nicht richtig zu funktionieren.

shareholder 15. Jan 2005 00:00

Re: Kleine API-Fragen
 
Sorry, ich bin wohl zu blöd. :wall:

Wie kommst du auf "0080 0000 or 0040 0000" ? :drunken:

Christian Seehase 15. Jan 2005 00:04

Re: Kleine API-Fragen
 
Moin Shareholder,

der Wert enthält an der dritten Stelle hexadezimal C (12 dezimal).
Ich wollte nur deutlich machen, dass dort die 4 enthalten ist.

shareholder 15. Jan 2005 00:20

Re: Kleine API-Fragen
 
Wie kommst du überhaupt auf

Zitat:

Der von Dir genannte Wert ist hexadezimal 94CA0000.
... Kann man eine negative Zahl überhaupt in Hex umwandeln? ...

http://de.selfhtml.org/helferlein/dezhex.htm gibt mir dabei eine Fehlermeldung aus. :gruebel:

Christian Seehase 15. Jan 2005 00:26

Re: Kleine API-Fragen
 
Moin Shareholder,

ob negativ oder positiv ist reine Interpretationssache.
Bei integer wird das höchstwertige Bit als Vorzeichen interpretiert, bei cardinal (bzw. in diesem Falle DWORD) nicht.
Der Windowsrechner kann das problemlos (warum auch nicht).

Lass Dir den Wert mal mit IntToHex ausgeben.
Delphi-Quellcode:
  ShowMessage(IntToHex(-1798701056,8));

shareholder 15. Jan 2005 00:37

Re: Kleine API-Fragen
 
Super Christian! :=)



Habe übrigens gerade das ganze jetzt mit einem Programm hier aus dem Forum getestet (Spy++)

Jetzt wird mir von den 4 Styles (weiter oben im Thread) jeder bis auf WS_GROUP angezeigt.



Zitat:

WS_GROUP
Specifies the first control of a group of controls. The group consists of this first control and all controls defined after it, up to the next control with the WS_GROUP style. The first control in each group usually has the WS_TABSTOP style so that the user can move from group to group. The user can subsequently change the keyboard focus from one control in the group to the next control in the group by using the direction keys.

You can turn this style on and off to change dialog box navigation. To change this style after a window has been created, use SetWindowLong.
So wie's aber in der MSDN-Hilfe ausschaut besteht dieser Style immer, wenn mindestens eine Komponente auf dem Formular sitzt. :gruebel: Deswegen blended Spy++ diesen Style aus, oder?

shareholder 15. Jan 2005 02:10

Re: Kleine API-Fragen
 
Sind die Konstanten eigentlich (Ich meine die Werte der Konstanten) in jeder Version gleich.
Also, haben diese sich seit Windows95 nicht geändert? Danke! :thumb:

Christian Seehase 15. Jan 2005 02:36

Re: Kleine API-Fragen
 
Moin Shareholder,

die WS_* Konstanten sind in allen Windows Versionen gleich.
(zumindest ist es nicht anders dokumentiert ;-))

shareholder 15. Jan 2005 13:49

Re: Kleine API-Fragen
 
Danke, wieso haben eigentlich eigentlich OVERLAPPED und TILED beide den Wert 0?


Alle Zeitangaben in WEZ +1. Es ist jetzt 10:27 Uhr.
Seite 3 von 3     123   

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