Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

Win32-like data types and macros
[Macros and data types commonly used]

Data Structures

Defines

Typedefs


Define Documentation

#define GetBValue rgb   )     ((BYTE)((rgb) >> 16))
 

Gets the blue component from a RGB triple value rgb.

You can make a RGB triple by using MakeRGB.

See also:
MakeRGB

Definition at line 507 of file common.h.

#define GetGValue rgb   )     ((BYTE)(((WORD)(rgb)) >> 8))
 

Gets the green component from a RGB triple value rgb.

You can make a RGB triple by using MakeRGB.

See also:
MakeRGB

Definition at line 498 of file common.h.

#define GetRValue rgb   )     ((BYTE)(rgb))
 

Gets the red component from a RGB triple value rgb.

You can make a RGB triple by using MakeRGB.

See also:
MakeRGB

Definition at line 489 of file common.h.

#define HIBYTE  )     ((BYTE)(((WORD)(w) >> 8) & 0xFF))
 

Returns the high byte of the word w.

See also:
MAKEWORD

Definition at line 437 of file common.h.

#define HISWORD  )     ((SWORD)((((DWORD)(l)) >> 16) & 0xFFFF))
 

Returns the high signed word of the double word l.

See also:
MAKELONG

Definition at line 473 of file common.h.

#define HIWORD  )     ((WORD)((((DWORD)(l)) >> 16) & 0xFFFF))
 

Returns the high word of the double word l.

See also:
MAKELONG

Definition at line 458 of file common.h.

#define LOBYTE  )     ((BYTE)(w))
 

Returns the low byte of the word w.

See also:
MAKEWORD

Definition at line 430 of file common.h.

#define LOSWORD  )     ((SWORD)(DWORD)(l))
 

Returns the low signed word of the double word l.

See also:
MAKELONG

Definition at line 466 of file common.h.

#define LOWORD  )     ((WORD)(DWORD)(l))
 

Returns the low word of the double word l.

See also:
MAKELONG

Definition at line 451 of file common.h.

#define MAKELONG low,
high   )     ((DWORD)(((WORD)(low)) | (((DWORD)((WORD)(high))) << 16)))
 

Makes a double word from low word and high word.

Definition at line 479 of file common.h.

#define MakeRGB r,
g,
 ) 
 

Value:

(((DWORD)((BYTE)(r))) | ((DWORD)((BYTE)(g)) << 8) \
                | ((DWORD)((BYTE)(b)) << 16))
Makes a RGB triple value from red r, green g, and blue b components.

Note:
The red, green, and blue components are all ranged from 0 to 255, and the returned value will be a double word.
See also:
GetRValue, GetGValue, GetBValue

Definition at line 518 of file common.h.

#define MAKEWORD low,
high   )     ((WORD)(((BYTE)(low)) | (((WORD)((BYTE)(high))) << 8)))
 

Makes a word from low byte and high byte.

Definition at line 443 of file common.h.


Typedef Documentation

typedef unsigned char BYTE
 

A type definition for unsigned character (byte).

Definition at line 360 of file common.h.

typedef unsigned long DWORD
 

A type definition for unsigned long integer (double word).

Definition at line 387 of file common.h.

typedef long LONG
 

A type definition for long integer.

Definition at line 409 of file common.h.

typedef unsigned long LPARAM
 

A type definition for the second message paramter.

Definition at line 422 of file common.h.

typedef struct _POINT POINT
 

Point structure.

See also:
PPOINT

typedef POINT * PPOINT
 

Data type of the pointer to a POINT.

See also:
POINT

Definition at line 584 of file common.h.

typedef RECT * PRECT
 

Data type of the pointer to a RECT.

See also:
RECT

Definition at line 561 of file common.h.

typedef RGB * PRGB
 

Data type of the pointer to a RGB.

See also:
RGB

Definition at line 639 of file common.h.

typedef SIZE * PSIZE
 

Data type of the pointer to a SIZE.

See also:
SIZE

Definition at line 607 of file common.h.

typedef struct _RECT RECT
 

A rectangle defined by coordinates of corners.

Note:
The lower-right corner does not belong to the rectangle, i.e. the bottom horizontal line and the right vertical line are excluded from the retangle.
See also:
PRECT, GAL_Rect

typedef struct _RGB RGB
 

RGB triple structure.

See also:
PRGB, GAL_Color

typedef DWORD RGBCOLOR
 

A type definition for a RGB color.

Definition at line 525 of file common.h.

typedef signed char SBYTE
 

A type definition for signed character.

Definition at line 366 of file common.h.

typedef signed long SDWORD
 

A type definition for signed long integer.

Definition at line 394 of file common.h.

typedef struct _SIZE SIZE
 

Size structure of a 2-dimension object.

See also:
PSIZE

typedef signed short SWORD
 

A type definition for signed short integer.

Definition at line 380 of file common.h.

typedef unsigned int UINT
 

A type definition for unsigned integer.

Definition at line 401 of file common.h.

typedef unsigned short WORD
 

A type definition for unsigned short integer (word).

Definition at line 373 of file common.h.

typedef unsigned int WPARAM
 

A type definition for the first message paramter.

Definition at line 416 of file common.h.


Generated on Mon Jun 26 13:54:28 2006 for MiniGUI V1.6.9 API Reference by  doxygen 1.4.2