home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
VSCPPv8.zip
/
VACPP
/
IBMCPP
/
samples
/
IOC
/
MLE
/
AUWMHDR.HPP
< prev
next >
Wrap
Text File
|
1994-10-14
|
3KB
|
50 lines
#ifndef AUSERMESSAGEHANDLER_HPP
#define AUSERMESSAGEHANDLER_HPP
/******************************************************************************/
/* Multi-Line Entry Field Sample Program (User Message Handler) */
/* */
/* COPYRIGHT: Copyright (C) International Business Machines Corp., 1992,1993. */
/* */
/* DISCLAIMER OF WARRANTIES: */
/* The following [enclosed] code is sample code created by IBM */
/* Corporation. This sample code is not part of any standard IBM product */
/* and is provided to you solely for the purpose of assisting you in the */
/* development of your applications. The code is provided "AS IS", */
/* without warranty of any kind. IBM shall not be liable for any damages */
/* arising out of your use of the sample code, even if they have been */
/* advised of the possibility of such damages. */
/******************************************************************************/
/* NOTE: WE RECOMMEND USING A FIXED SPACE FONT TO LOOK AT THE SOURCE */
/******************************************************************************/
#include <ihandler.hpp>
/******************************************************************************/
/* Class : AUserMessageHandler */
/* */
/* Purpose : Instances of this class can be user to process user messages. */
/* Objects of this class process messages with the ID that the */
/* the object is created with. The class provides the virtual */
/* function userMessage which you should override to do your */
/* application specific processing. */
/* It is derived from IHandler */
/* */
/******************************************************************************/
class AUserMessageHandler : public IHandler
{
public:
AUserMessageHandler( unsigned long uwmId )
: userMessageId( uwmId ) {;}
Boolean
dispatchHandlerEvent( IEvent& evt );
protected:
virtual Boolean
userMessage( IEvent& evt ) { return false; }
private:
unsigned long userMessageId;
};
#endif