Home |
Windowing Interface Terminology Messages |
MessagesMessages are defined as simple structures containing fields indicating the source, target, and content of the message: struct PegMessage { PegMessage(void); PegMessage(PEGUINT wVal); PegMessage(PegThing * pTo, PEGUINT wVal); PEGUINT wType; PEGINT iData; PegThing * pTarget; PegThing * pSource; PegMessage * Next; union { void * pData; LONG lData; PegRect Rect; PegPoint Point; LONG lUserData[2]; DWORD dUserData[2]; PEGINT iUserData[4]; PEGUINT wUserData[4]; UCHAR uUserData[8]; }; }; Messages are identified by the member field wType. Currently RTPEG-32 reserves the first 8000h message wType values for internal messages, which leaves message values 8000h through FFFFh available for user definition. Peg.hpp provides a #define indicating the first message value which is available for user definition. This #define is called FIRST_USER_MESSAGE. An overview of the RTPEG-32 system messages is included in the RTPEG-32 Reference Manual.
|