OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
owl::TResponseTableEntry< T > Class Template Reference

A template class, TResponseTableEntry lets you define a pattern for entries into a response table. More...

#include <owl/eventhan.h>

Public Types

typedef void(T::* PMF) ()
 Type for a generic member function that responds to notification messages.
 

Public Attributes

union { 
 
   TMsgId   Msg 
 Contains the ID of the message sent. More...
 
   uint   NotifyCode 
 Stores the control notification code (for example, ID_LISTBOX) for the response table entry. More...
 
};  
 
uint Id
 Contains the menu or accelerator resource ID (CM_xxxx) for the message response member function.
 
TAnyDispatcher Dispatcher
 An abstract dispatcher type that points to one of the dispatcher functions.
 
PMF Pmf
 Points to the actual handler or member function.
 

Detailed Description

template<class T>
class owl::TResponseTableEntry< T >

A template class, TResponseTableEntry lets you define a pattern for entries into a response table.

Entries consist of a message, a notification code, a resource ID, a dispatcher type, and a pointer to a member function. See DECLARE_RESPONSE_TABLE and DEFINE_RESPONSE_TABLE for additional information about the macros in the response tables.

Definition at line 217 of file eventhan.h.

Member Typedef Documentation

◆ PMF

template<class T >
typedef void(T::* owl::TResponseTableEntry< T >::PMF) ()

Type for a generic member function that responds to notification messages.

T is the template for the response table.

Definition at line 222 of file eventhan.h.

Member Data Documentation

◆ [union]

union { ... } owl::TResponseTableEntry< T >

◆ Dispatcher

template<class T >
TAnyDispatcher owl::TResponseTableEntry< T >::Dispatcher

An abstract dispatcher type that points to one of the dispatcher functions.

Definition at line 241 of file eventhan.h.

◆ Id

template<class T >
uint owl::TResponseTableEntry< T >::Id

Contains the menu or accelerator resource ID (CM_xxxx) for the message response member function.

Definition at line 238 of file eventhan.h.

◆ Msg

template<class T >
TMsgId owl::TResponseTableEntry< T >::Msg

Contains the ID of the message sent.

These can be command messages, child id messages, notify-based messages such as LBN_SELCHANGE, or messages such as LBUTTONDOWN.

Definition at line 228 of file eventhan.h.

◆ NotifyCode

template<class T >
uint owl::TResponseTableEntry< T >::NotifyCode

Stores the control notification code (for example, ID_LISTBOX) for the response table entry.

These can be button, combo box, edit control, or list box notification codes.

Definition at line 233 of file eventhan.h.

◆ Pmf

template<class T >
PMF owl::TResponseTableEntry< T >::Pmf

Points to the actual handler or member function.

Definition at line 244 of file eventhan.h.


The documentation for this class was generated from the following file: