Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Konstante per ComboBox auswählen (https://www.delphipraxis.net/99889-konstante-per-combobox-auswaehlen.html)

s-off 19. Sep 2007 11:49

Re: Konstante per ComboBox auswählen
 
Zitat:

Zitat von krueemel
ah coole Sache, aber woher weiß ich die Nummer hinter TObject?!

Die Nummer steht nicht hinter TObject. Das nennt sich 'casten', d.h. in diesem Fall sage ich einfach der Variable vom Typ 'Integer' 'Hey, Dein Inhalt ist jetzt nicht mehr der eines Integers. Du bekommst nun ein neues Outfit, und zwar so eins, als wwärst Du ein TObject'.

Du gelangst an den Wert, in dem Du in der folgenden Zeile mit STRG+LINKKLICK auf den Konstantennamen, also SC_MINIMIZE klickst

Delphi-Quellcode:
PostMessage(GetWindowHandleByExeName(Edit1.Text), WM_SYSCOMMAND, SC_MINIMIZE,0);

krueemel 19. Sep 2007 12:03

Re: Konstante per ComboBox auswählen
 
Ah, man lernt immer dazu ;)
Echt gute Sache. Viele Dank dir.

& viele liebe Grüße


Alle Zeitangaben in WEZ +1. Es ist jetzt 15:10 Uhr.
Seite 2 von 2     12   

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