WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Programmierung (http://www.wcm.at/forum/forumdisplay.php?f=17)
-   -   VC++ HIWORD/LOWORD (http://www.wcm.at/forum/showthread.php?t=75456)

zenit 31.10.2002 13:59

VC++ HIWORD/LOWORD
 
Hallo Leute!

Ne VC++ Frage:

Kann mir jemand die Makros HIWORD und LOWORD erklären, oder nen Link schicken.

Was ist das, wozu braucht man das, wie les ich es aus, etc. etc.

In der VC++ Hilfe und in meinen Büchern find ich nix

thxG

delphirocks 31.10.2002 16:05

hallo

ein DWORD ist ein 32bit Datentyp,WORD 16bit.
wenn du ein

DWORD d=0xAAAABBBB hast, dann gibt dir LOWORD(d) 0xBBBB zurück,
HIWORD(d) 0xAAAA.

g

DR

zenit 05.11.2002 15:58

Lösung
 
MSDN

WPARAM type changes, in Win32

Changing Message Handles

wParam

The low-order word of wParam identifies the command ID of the menu item, control, or accelerator. The high-order word of wParam specifies the notification message if the message is from a control. If the message is from an accelerator, the high-order word is 1. If the message is from a menu, the high-order word is 0.

lParam

Identifies the control that sends the message if the message is from a control. Otherwise, lParam is 0.

G


Alle Zeitangaben in WEZ +2. Es ist jetzt 18:28 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag