Silverfrost Logo About Us | Contact Us
 

HIWORD@

Platform

Win32(ClearWin+)

Purpose

To get the top 16 bits of a 32 bit integer.

Syntax

INTEGER*2 FUNCTION HIWORD@(DWORD)
INTEGER DWORD

Description

Windows API functions sometimes return two values in a long integer with one value in the top 16 bits and one value in the bottom 16 bits. GetTextExtent does this for example, returning the height of the text in the top 16 bits and the width in the bottom 16 bits.

Notes

This is the Fortran ClearWin+ equivalent of the Microsoft C macro with the same name.

 

 

Copyright © 1999-2017 Silverfrost Limited