[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
nHiWord( nLong )-> <nHiWord>
------------------------------------------------------------------------------
PARAMETER:
<nLong> is the numeric DWORD value ( long int, 4 bytes)
RETURNS:
<nHiWord> is the most significant word of <nLong>
DESCRIPTION:
A DWORD is made of two words, or 4 bytes: a low word and a high word. This
function retrieves the high order word, which, for example, is used if you
examine the lParam argument of some windows messages.
EXAMPLE:
+-------------------------------------------------------------+
| nWidth = ( x * nLoWord( GetDialogBaseUnits() ) ) / 4 |
| nHeight = ( y * nHiWord( GetDialogBaseUnits() ) ) / 8 |
+-------------------------------------------------------------+
SOURCE:
SOURCE\FUNCTION\HILOWORD.C
See Also:
nLoByte
nLoWord
nHiByte
nMakeLong
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson