📄 classwgui_1_1cmessage.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>wGui::CMessage class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Data Structures</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Data Fields</a> </center><hr><h1>wGui::CMessage Class Reference</h1>The base message class. <a href="#_details">More...</a><p><code>#include <<a class="el" href="wg__message_8h-source.html">wg_message.h</a>></code><p><p>Inheritance diagram for wGui::CMessage:<p><center><img src="classwGui_1_1CMessage.png" usemap="#wGui::CMessage_map" border="0" alt=""></center><map name="wGui::CMessage_map"><area href="classwGui_1_1CKeyboardMessage.html" alt="wGui::CKeyboardMessage" shape="rect" coords="0,56,170,80"><area href="classwGui_1_1CMouseMessage.html" alt="wGui::CMouseMessage" shape="rect" coords="180,56,350,80"><area href="classwGui_1_1CValueMessage.html" alt="wGui::CValueMessage< T >" shape="rect" coords="360,56,530,80"></map><h2>Public Types</h2><ul><li>enum <a class="el" href="classwGui_1_1CMessage.html#s16">EMessageType</a> { <br> <a class="el" href="classwGui_1_1CMessage.html#s16s0">UNKNOWN</a> = 0, <a class="el" href="classwGui_1_1CMessage.html#s16s1">KEYBOARD_KEYDOWN</a>, <a class="el" href="classwGui_1_1CMessage.html#s16s2">KEYBOARD_KEYUP</a>, <a class="el" href="classwGui_1_1CMessage.html#s16s3">MOUSE_BUTTONDOWN</a>, <br> <a class="el" href="classwGui_1_1CMessage.html#s16s4">MOUSE_BUTTONUP</a>, <a class="el" href="classwGui_1_1CMessage.html#s16s5">MOUSE_MOVE</a>, <a class="el" href="classwGui_1_1CMessage.html#s16s6">CTRL_LCLICK</a>, <a class="el" href="classwGui_1_1CMessage.html#s16s7">CTRL_RCLICK</a>, <br> <a class="el" href="classwGui_1_1CMessage.html#s16s8">CTRL_MCLICK</a>, <a class="el" href="classwGui_1_1CMessage.html#s16s9">CTRL_VALUECHANGE</a>, <a class="el" href="classwGui_1_1CMessage.html#s16s10">CTRL_VALUECHANGING</a>, <a class="el" href="classwGui_1_1CMessage.html#s16s11">CTRL_RESIZE</a>, <br> <a class="el" href="classwGui_1_1CMessage.html#s16s12">CTRL_TIMER</a>, <a class="el" href="classwGui_1_1CMessage.html#s16s13">APP_PAINT</a>, <a class="el" href="classwGui_1_1CMessage.html#s16s14">APP_EXIT</a>, <a class="el" href="classwGui_1_1CMessage.html#s16s15">USER</a><br> }<dl class="el"><dd><font size=-1><em>The various message types.</em> <a href="#s16">More...</a><em><br><br></em></font></dl></ul><h2>Public Methods</h2><ul><li><a class="el" href="classwGui_1_1CMessage.html#a0">CMessage</a> (const <a class="el" href="classwGui_1_1CMessage.html#s16">EMessageType</a> MessageType, const <a class="el" href="classwGui_1_1CMessageClient.html">CMessageClient</a> *pDestination, const <a class="el" href="classwGui_1_1CMessageClient.html">CMessageClient</a> *pSource)<li><a name="a1" doxytag="wGui::CMessage::~CMessage"></a>virtual <a class="el" href="classwGui_1_1CMessage.html#a1">~CMessage</a> (void)<dl class="el"><dd><font size=-1><em>Standard destructor.<br><br></em></font></dl><li><a name="a2" doxytag="wGui::CMessage::MessageType"></a>const <a class="el" href="classwGui_1_1CMessage.html#s16">EMessageType</a> <a class="el" href="classwGui_1_1CMessage.html#a2">MessageType</a> (void)<dl class="el"><dd><font size=-1><em><dl compact><dt><b>Returns: </b></dt><dd>The message type of the message</dl><br><br></em></font></dl><li><a name="a3" doxytag="wGui::CMessage::Destination"></a>const <a class="el" href="classwGui_1_1CMessageClient.html">CMessageClient</a> * <a class="el" href="classwGui_1_1CMessage.html#a3">Destination</a> (void)<dl class="el"><dd><font size=-1><em><dl compact><dt><b>Returns: </b></dt><dd>A pointer to the destination of the message (0 for no specific destination, or to broadcast to all)</dl><br><br></em></font></dl><li><a name="a4" doxytag="wGui::CMessage::Source"></a>const <a class="el" href="classwGui_1_1CMessageClient.html">CMessageClient</a> * <a class="el" href="classwGui_1_1CMessage.html#a4">Source</a> (void)<dl class="el"><dd><font size=-1><em><dl compact><dt><b>Returns: </b></dt><dd>A pointer to the source of the message</dl><br><br></em></font></dl></ul><h2>Protected Attributes</h2><ul><li><a name="n0" doxytag="wGui::CMessage::m_MessageType"></a>const <a class="el" href="classwGui_1_1CMessage.html#s16">EMessageType</a> <a class="el" href="classwGui_1_1CMessage.html#n0">m_MessageType</a><dl class="el"><dd><font size=-1><em>The message type.<br><br></em></font></dl><li><a name="n1" doxytag="wGui::CMessage::m_pDestination"></a>const <a class="el" href="classwGui_1_1CMessageClient.html">CMessageClient</a> * <a class="el" href="classwGui_1_1CMessage.html#n1">m_pDestination</a><dl class="el"><dd><font size=-1><em>A pointer to the message destination (0 for no specific destination, or to broadcast to all).<br><br></em></font></dl><li><a name="n2" doxytag="wGui::CMessage::m_pSource"></a>const <a class="el" href="classwGui_1_1CMessageClient.html">CMessageClient</a> * <a class="el" href="classwGui_1_1CMessage.html#n2">m_pSource</a><dl class="el"><dd><font size=-1><em>A pointer to the control that generated the message.<br><br></em></font></dl></ul><hr><a name="_details"></a><h2>Detailed Description</h2>The base message class.<p>wGui uses Message object to inform other objects of events. <dl compact><dt><b>See also: </b></dt><dd><a class="el" href="classwGui_1_1CMessageServer.html">CMessageServer</a> <a class="el" href="classwGui_1_1CMessageClient.html">CMessageClient</a> </dl><p><p>Definition at line <a class="el" href="wg__message_8h-source.html#l00044">44</a> of file <a class="el" href="wg__message_8h-source.html">wg_message.h</a>.<hr><h2>Member Enumeration Documentation</h2><a name="s16" doxytag="wGui::CMessage::EMessageType"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> enum wGui::CMessage::EMessageType </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>The various message types.<p><dl compact><dt><b>Enumeration values: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em><a name="s16s0" doxytag="UNKNOWN"></a><em>UNKNOWN</em></em> </td><td>An unknown message, this is not a valid type.</td></tr><tr><td valign=top><em><a name="s16s1" doxytag="KEYBOARD_KEYDOWN"></a><em>KEYBOARD_KEYDOWN</em></em> </td><td><a class="el" href="classwGui_1_1CKeyboardMessage.html">CKeyboardMessage</a> generated when a keyboard key is pressed.</td></tr><tr><td valign=top><em><a name="s16s2" doxytag="KEYBOARD_KEYUP"></a><em>KEYBOARD_KEYUP</em></em> </td><td><a class="el" href="classwGui_1_1CKeyboardMessage.html">CKeyboardMessage</a> generated when a keyboard key is released.</td></tr><tr><td valign=top><em><a name="s16s3" doxytag="MOUSE_BUTTONDOWN"></a><em>MOUSE_BUTTONDOWN</em></em> </td><td><a class="el" href="classwGui_1_1CMouseMessage.html">CMouseMessage</a> generated when a mouse button is pressed.</td></tr><tr><td valign=top><em><a name="s16s4" doxytag="MOUSE_BUTTONUP"></a><em>MOUSE_BUTTONUP</em></em> </td><td><a class="el" href="classwGui_1_1CMouseMessage.html">CMouseMessage</a> generated when a mouse button is released.</td></tr><tr><td valign=top><em><a name="s16s5" doxytag="MOUSE_MOVE"></a><em>MOUSE_MOVE</em></em> </td><td><a class="el" href="classwGui_1_1CMouseMessage.html">CMouseMessage</a> generated when a mouse is moved.</td></tr><tr><td valign=top><em><a name="s16s6" doxytag="CTRL_LCLICK"></a><em>CTRL_LCLICK</em></em> </td><td>TIntMessage generated when a control is clicked on with the left mouse button.</td></tr><tr><td valign=top><em><a name="s16s7" doxytag="CTRL_RCLICK"></a><em>CTRL_RCLICK</em></em> </td><td>TIntMessage generated when a control is clicked on with the right mouse button.</td></tr><tr><td valign=top><em><a name="s16s8" doxytag="CTRL_MCLICK"></a><em>CTRL_MCLICK</em></em> </td><td>TIntMessage generated when a control is clicked on with the middle mouse button.</td></tr><tr><td valign=top><em><a name="s16s9" doxytag="CTRL_VALUECHANGE"></a><em>CTRL_VALUECHANGE</em></em> </td><td><a class="el" href="classwGui_1_1CValueMessage.html">CValueMessage</a> generated when a control's text or value is changed via user input.</td></tr><tr><td valign=top><em><a name="s16s10" doxytag="CTRL_VALUECHANGING"></a><em>CTRL_VALUECHANGING</em></em> </td><td><a class="el" href="classwGui_1_1CValueMessage.html">CValueMessage</a> generated when a control's text or value is in the process of changing via user input.</td></tr><tr><td valign=top><em><a name="s16s11" doxytag="CTRL_RESIZE"></a><em>CTRL_RESIZE</em></em> </td><td>TPointMessage used to tell the app that the view has been resized.</td></tr><tr><td valign=top><em><a name="s16s12" doxytag="CTRL_TIMER"></a><em>CTRL_TIMER</em></em> </td><td>TIntMessage used to tell when a timer has expired, where Value() is the count of times fired.</td></tr><tr><td valign=top><em><a name="s16s13" doxytag="APP_PAINT"></a><em>APP_PAINT</em></em> </td><td><a class="el" href="classwGui_1_1CMessage.html">CMessage</a> used to tell controls or windows to redraw themselves.</td></tr><tr><td valign=top><em><a name="s16s14" doxytag="APP_EXIT"></a><em>APP_EXIT</em></em> </td><td><a class="el" href="classwGui_1_1CMessage.html">CMessage</a> used to tell controls or windows that the application is closing.</td></tr><tr><td valign=top><em><a name="s16s15" doxytag="USER"></a><em>USER</em></em> </td><td>Any user defined messages of type CUserMessage.</td></tr></table></dl><p>Definition at line <a class="el" href="wg__message_8h-source.html#l00048">48</a> of file <a class="el" href="wg__message_8h-source.html">wg_message.h</a>.<p>Referenced by <a class="el" href="wg__message_8h-source.html#l00175">wGui::CValueMessage< T >::CValueMessage()</a>, and <a class="el" href="wg__message_8h-source.html#l00078">MessageType()</a>. </td> </tr></table><hr><h2>Constructor & Destructor Documentation</h2><a name="a0" doxytag="wGui::CMessage::CMessage"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> wGui::CMessage::CMessage </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="classwGui_1_1CMessage.html#s16">EMessageType</a> </td> <td class="mdname" nowrap> <em>MessageType</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>const <a class="el" href="classwGui_1_1CMessageClient.html">CMessageClient</a> * </td> <td class="mdname" nowrap> <em>pDestination</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>const <a class="el" href="classwGui_1_1CMessageClient.html">CMessageClient</a> * </td> <td class="mdname" nowrap> <em>pSource</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Construct a new message <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>MessageType</em> </td><td>The type of message being created </td></tr><tr><td valign=top><em>pDestination</em> </td><td>A pointer to the window that the message is destined for (0 for no specific destination, or to broadcast to all) </td></tr><tr><td valign=top><em>pSource</em> </td><td>A pointer to the source of the message </td></tr></table></dl><p>Definition at line <a class="el" href="wg__message_8cpp-source.html#l00032">32</a> of file <a class="el" href="wg__message_8cpp-source.html">wg_message.cpp</a>. </td> </tr></table><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="wg__message_8h-source.html">wg_message.h</a><li><a class="el" href="wg__message_8cpp-source.html">wg_message.cpp</a></ul><hr><address style="align: right;"><small>Generated on Sat Oct 25 12:43:27 2003 for wGui by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.18 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -