Presentation Manager Macros
┌─────────────────────────────────────────────────────────────────────────┐
│ Presentation Manager Macros. This table shows the "C" language macros │
│ provided by Presentation Manager to facilitate the construction and │
│ extraction of message parameters. │
├──────────────┬──────────────────────────────────────────────────────────┤
│ MACRO │ USAGE │
├──────────────┼──────────────────────────────────────────────────────────┤
│ MPFROMP │ Produces an MPARAM data type from a pointer │
├──────────────┼──────────────────────────────────────────────────────────┤
│ MPFROMHWND │ Produces an MPARAM data type from a window handle (HWND) │
├──────────────┼──────────────────────────────────────────────────────────┤
│ MPFROMCHAR │ Produces an MPARAM data type from an unsigned character │
│ │ (UCHAR) │
├──────────────┼──────────────────────────────────────────────────────────┤
│ MPFROMSHORT │ Produces an MPARAM data type from a short integer │
│ │ (SHORT or USHORT) │
├──────────────┼──────────────────────────────────────────────────────────┤
│ MPFROM2SHORT │ Produces an MPARAM data type from two short integers │
│ │ (SHORT or USHORT) │
├──────────────┼──────────────────────────────────────────────────────────┤
│ MPFROMSH2CH │ Produces an MPARAM data type from a short integer │
│ │ (SHORT or USHORT) and two characters (CHAR or UCHAR) │
├──────────────┼──────────────────────────────────────────────────────────┤
│ MPFROMLONG │ Produces an MPARAM data type from a long integer (LONG │
│ │ or ULONG) │
├──────────────┼──────────────────────────────────────────────────────────┤
│ PVOIDFROMMP │ Produces a pointer from an MPARAM data type │
├──────────────┼──────────────────────────────────────────────────────────┤
│ HWNDFROMMP │ Produces a window handle (HWND) from an MPARAM data type │
├──────────────┼──────────────────────────────────────────────────────────┤
│ CHAR1FROMMP │ Produces a character (UCHAR) from bits 0-7 of an │
│ │ MPARAM data type │
├──────────────┼──────────────────────────────────────────────────────────┤
│ CHAR2FROMMP │ Produces a character (UCHAR) from bits 8-15 of an │
│ │ MPARAM data type │
├──────────────┼──────────────────────────────────────────────────────────┤
│ CHAR3FROMMP │ Produces a character (UCHAR) from bits 16-23 of an │
│ │ MPARAM data type │
├──────────────┼──────────────────────────────────────────────────────────┤
│ CHAR4FROMMP │ Produces a character (UCHAR) from bits 24-31 of an │
│ │ MPARAM data type │
├──────────────┼──────────────────────────────────────────────────────────┤
│ SHORT1FROMMP │ Produces an unsigned short integer (USHORT) from │
│ │ bits 0-15 of an MPARAM data type │
├──────────────┼──────────────────────────────────────────────────────────┤
│ SHORT2FROMMP │ Produces an unsigned short integer (USHORT) from bits │
│ │ 16-31 of an MPARAM data type │
├──────────────┼──────────────────────────────────────────────────────────┤
│ LONGFROMMP │ Produces an unsigned long integer (ULONG) from an │
│ │ MPARAM data type │
└──────────────┴──────────────────────────────────────────────────────────┘
[Back: Application Object/Window Correlation]
[Next: New Presentation Manager Functions in OS/2 Version 2.0]