DialogMsg Class Reference

A DialogMsg is sent whenever the user interacts with the gadgets in a dialog box, It is only sensible to send this message to DialogOp objects. More...

#include <msg.h>

Inheritance diagram for DialogMsg:

Msg CCObject SimpleCCObject List of all members.

Public Member Functions

 DialogMsg (CWindowID DlgID, CDlgMessage Msg, CGadgetID Gadget, UINT_PTR LongParam=0, CDlgResID Pageid=0)
 DialogMsg (const DialogMsg &msg)

Public Attributes

CWindowID DlgWndID
CDlgMessage DlgMsg
CGadgetID GadgetID
UINT_PTR DlgMsgParam
CDlgResID PageID

Private Member Functions

 CC_DECLARE_DYNAMIC (DialogMsg)

Detailed Description

A DialogMsg is sent whenever the user interacts with the gadgets in a dialog box, It is only sensible to send this message to DialogOp objects.

Author:
Simon_Maneggio (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/3/94
Important **

When processing the DialogMessage you should always use the IS_OUR_DIALOG_MSG macro. In normal circumstances this will return TRUE if the DlgWndID of the message is the same as the DialogOps window ID. However sometimes it is neccessary to send a DialogMsg to all DialogOps. For example when Camelot is dying we need to send a DIM_CANCEL to all open dialogs. The IS_DIALOG_MSG macro provides clever handling to ensure that all open DialogOps receive this message. in this situation the DlgWndID will be NULL. So when handling the DIM_CANCEL message you should not assume that DlgWndID is a valid window identifier.

after processing the dialog message you should always

return(DLG_EAT_IF_HUNGRY(DlgMsg));

The DLG_EAT_IF_HUNGRY macro will return EAT_MSG if the message should not be sent on to other dialogOps and OK if it should.

Syntax of constructor is: DialogMsg(CWindowID DlgID, CDlgMessage Msg, CGadgetID Gadget, INT32 LongParam=0)

See also:
IS_OUR_DIALOG_MSG

EAT_IF_HUNGRY

Definition at line 204 of file msg.h.


Constructor & Destructor Documentation

DialogMsg::DialogMsg CWindowID  DlgID,
CDlgMessage  Msg,
CGadgetID  Gadget,
UINT_PTR  LongParam = 0,
CDlgResID  Pageid = 0
[inline]
 

Definition at line 220 of file msg.h.

00220                                                                                                            : 
00221         DlgWndID(DlgID), DlgMsg(Msg), GadgetID(Gadget), DlgMsgParam(LongParam), PageID(Pageid)
00222     {
00223     }

DialogMsg::DialogMsg const DialogMsg msg  )  [inline]
 

Definition at line 224 of file msg.h.

00224                                      :
00225         DlgWndID(msg.DlgWndID), DlgMsg(msg.DlgMsg), GadgetID(msg.GadgetID), DlgMsgParam(msg.DlgMsgParam), PageID(msg.PageID) { } // copy constructor
        


Member Function Documentation

DialogMsg::CC_DECLARE_DYNAMIC DialogMsg   )  [private]
 


Member Data Documentation

CDlgMessage DialogMsg::DlgMsg
 

Definition at line 209 of file msg.h.

UINT_PTR DialogMsg::DlgMsgParam
 

Definition at line 211 of file msg.h.

CWindowID DialogMsg::DlgWndID
 

Definition at line 208 of file msg.h.

CGadgetID DialogMsg::GadgetID
 

Definition at line 210 of file msg.h.

CDlgResID DialogMsg::PageID
 

Definition at line 216 of file msg.h.


The documentation for this class was generated from the following file:
Generated on Sat Nov 10 03:53:35 2007 for Camelot by  doxygen 1.4.4