|
|
|
|
|
HiWord (Function) In french: PoidsFort Returns the two high bytes of an integer.
Res is int
Res = 0x000A001F
Trace(HiWord(Res))
Trace(LoWord(Res))
Syntax
<Result> = HiWord(<Value> [, <Size>])
<Result>: Integer The two high bytes. <Value>: Integer Value whose high bytes are sought. If this value is a numeric other than an integer, this value is automatically converted into an integer. An error will occur if this value is a character string. <Size>: Optional integer Size of the integer: - 1 for an integer on 1 byte,
- 2 for an integer on 2 bytes,
- 4 for an integer on 4 bytes.
Remarks - The & operator is used to find out the address of a variable.
- HiWord can be used to retrieve the two high bytes of an integer returned by API or CallDLL32.
- LoWord is used to retrieve the low bytes of an integer.
- To build a 4-byte integer from a 2-byte integer, use MakeInteger.
Related Examples:
|
Complete examples (WINDEV): WD Magnifier
[ + ] This example enables you to zoom part of the screen with a magnifier. The maximum zoom value is set to 8. Summary of the example supplied with WINDEV: The WLanguge function named dCopyBlt() and the WLanguage property named ..Opacity allow you to perform a capture of the Windows desktop at the location of a window without this window appearing in the screen shot. This example uses this tip to zoom the part of the screen found below the magnifier.
|
Business / UI classification: Neutral code
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|