⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 class_c_chat_container.html

📁 一个聊天的软件
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<a name="l00297"></a>00297         { <a name="l00298"></a>00298         <a class="code" href="class_c_chat_container.html#a4fe3028661554d5362654dd3ab592f6">iListBox</a>-&gt; SetRect( iAvkonAppUi-&gt;ApplicationRect() ); <a name="l00299"></a>00299         } <a name="l00300"></a>00300     }</pre></div><p>    </td>  </tr></table><a class="anchor" name="bf31593b337cbf3fb671382cf773281c"></a><!-- doxytag: member="CChatContainer::ConstructL" ref="bf31593b337cbf3fb671382cf773281c" args="(const TRect &amp;aRect)" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">void CChatContainer::ConstructL           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const TRect &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>aRect</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [private]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p><a class="el" href="class_c_chat_container.html#bf31593b337cbf3fb671382cf773281c">ConstructL()</a> Perform the second phase construction <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>aRect</em>&nbsp;</td><td>the rectangle this view will be drawn to </td></tr>  </table></dl><p>Definition at line <a class="el" href="_chat_container_8cpp-source.html#l00054">54</a> of file <a class="el" href="_chat_container_8cpp-source.html">ChatContainer.cpp</a>.<p>References <a class="el" href="_chat_container_8h-source.html#l00198">iListBox</a>, and <a class="el" href="_chat_container_8h-source.html#l00204">iMessageList</a>.<p>Referenced by <a class="el" href="_chat_container_8cpp-source.html#l00041">NewLC()</a>.<div class="fragment"><pre class="fragment"><a name="l00055"></a>00055     {<a name="l00056"></a>00056     <span class="comment">// Create a window for this application view</span><a name="l00057"></a>00057     CreateWindowL();<a name="l00058"></a>00058 <a name="l00059"></a>00059     <span class="comment">// Set the windows size</span><a name="l00060"></a>00060     SetRect( aRect );<a name="l00061"></a>00061 <a name="l00062"></a>00062     <span class="comment">// Create a control to display a list of messages</span><a name="l00063"></a>00063     <a class="code" href="class_c_chat_container.html#a4fe3028661554d5362654dd3ab592f6">iListBox</a> = <span class="keyword">new</span> ( ELeave ) CAknSingleNumberStyleListBox;<a name="l00064"></a>00064     <a class="code" href="class_c_chat_container.html#a4fe3028661554d5362654dd3ab592f6">iListBox</a>-&gt;SetContainerWindowL( *<span class="keyword">this</span> );<a name="l00065"></a>00065     <a class="code" href="class_c_chat_container.html#a4fe3028661554d5362654dd3ab592f6">iListBox</a>-&gt;ConstructL( <span class="keyword">this</span>, 0 );<a name="l00066"></a>00066 <a name="l00067"></a>00067     <a class="code" href="class_c_chat_container.html#a4fe3028661554d5362654dd3ab592f6">iListBox</a>-&gt;SetRect( aRect.Size() );<a name="l00068"></a>00068 <a name="l00069"></a>00069     <a class="code" href="class_c_chat_container.html#a4fe3028661554d5362654dd3ab592f6">iListBox</a>-&gt;ActivateL();<a name="l00070"></a>00070     <a class="code" href="class_c_chat_container.html#a4fe3028661554d5362654dd3ab592f6">iListBox</a>-&gt;CreateScrollBarFrameL( ETrue );<a name="l00071"></a>00071     <a class="code" href="class_c_chat_container.html#a4fe3028661554d5362654dd3ab592f6">iListBox</a>-&gt;ScrollBarFrame()-&gt;SetScrollBarVisibilityL(<a name="l00072"></a>00072         CEikScrollBarFrame::EOn, <a name="l00073"></a>00073         CEikScrollBarFrame::EAuto );<a name="l00074"></a>00074 <a name="l00075"></a>00075     <span class="comment">// Create an array to hold the messages</span><a name="l00076"></a>00076     <a class="code" href="class_c_chat_container.html#6bbe9a7332aad924e2907ed051176a63">iMessageList</a> = <span class="keyword">new</span> ( ELeave ) CDesCArrayFlat( KMessageListLen );<a name="l00077"></a>00077 <a name="l00078"></a>00078     <span class="comment">// Give it to the control</span><a name="l00079"></a>00079     CTextListBoxModel* model = <a class="code" href="class_c_chat_container.html#a4fe3028661554d5362654dd3ab592f6">iListBox</a>-&gt;Model();<a name="l00080"></a>00080     model-&gt;SetItemTextArray( <a class="code" href="class_c_chat_container.html#6bbe9a7332aad924e2907ed051176a63">iMessageList</a> );<a name="l00081"></a>00081 <a name="l00082"></a>00082     <span class="comment">// transfer ownership of iMessageList</span><a name="l00083"></a>00083     model-&gt;SetOwnershipType( ELbmOwnsItemArray );<a name="l00084"></a>00084 <a name="l00085"></a>00085     <span class="comment">// Activate the window, which makes it ready to be drawn</span><a name="l00086"></a>00086     ActivateL();<a name="l00087"></a>00087     }</pre></div><p>    </td>  </tr></table><hr><h2>Member Data Documentation</h2><a class="anchor" name="bb5625323d7569160129a2d6855e1819"></a><!-- doxytag: member="CChatContainer::iDisplayDialog" ref="bb5625323d7569160129a2d6855e1819" args="" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">TBool <a class="el" href="class_c_chat_container.html#bb5625323d7569160129a2d6855e1819">CChatContainer::iDisplayDialog</a><code> [private]</code>          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>iDisplayDialog boolean for Display Dialog <p>Definition at line <a class="el" href="_chat_container_8h-source.html#l00182">182</a> of file <a class="el" href="_chat_container_8h-source.html">ChatContainer.h</a>.<p>Referenced by <a class="el" href="_chat_container_8cpp-source.html#l00226">ShowDataQueryL()</a>.    </td>  </tr></table><a class="anchor" name="2f68e756f211397134f9470055598d9c"></a><!-- doxytag: member="CChatContainer::iQueryDialog" ref="2f68e756f211397134f9470055598d9c" args="" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">CAknQueryDialog* <a class="el" href="class_c_chat_container.html#2f68e756f211397134f9470055598d9c">CChatContainer::iQueryDialog</a><code> [private]</code>          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>iQueryDialog <p>Definition at line <a class="el" href="_chat_container_8h-source.html#l00187">187</a> of file <a class="el" href="_chat_container_8h-source.html">ChatContainer.h</a>.    </td>  </tr></table><a class="anchor" name="c1e285d76dd79b1c499eb6e0d47b52cb"></a><!-- doxytag: member="CChatContainer::iLabelResultMessage" ref="c1e285d76dd79b1c499eb6e0d47b52cb" args="" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">CEikLabel* <a class="el" href="class_c_chat_container.html#c1e285d76dd79b1c499eb6e0d47b52cb">CChatContainer::iLabelResultMessage</a><code> [private]</code>          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>iLabelResultMessage <p>Definition at line <a class="el" href="_chat_container_8h-source.html#l00192">192</a> of file <a class="el" href="_chat_container_8h-source.html">ChatContainer.h</a>.    </td>  </tr></table><a class="anchor" name="a4fe3028661554d5362654dd3ab592f6"></a><!-- doxytag: member="CChatContainer::iListBox" ref="a4fe3028661554d5362654dd3ab592f6" args="" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">CEikTextListBox* <a class="el" href="class_c_chat_container.html#a4fe3028661554d5362654dd3ab592f6">CChatContainer::iListBox</a><code> [private]</code>          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>iListBox the control used to display the results Owned by CCChatContainer <p>Definition at line <a class="el" href="_chat_container_8h-source.html#l00198">198</a> of file <a class="el" href="_chat_container_8h-source.html">ChatContainer.h</a>.<p>Referenced by <a class="el" href="_chat_container_8cpp-source.html#l00116">ClearMessageListL()</a>, <a class="el" href="_chat_container_8cpp-source.html#l00142">ComponentControl()</a>, <a class="el" href="_chat_container_8cpp-source.html#l00054">ConstructL()</a>, <a class="el" href="_chat_container_8cpp-source.html#l00215">ContainsEntries()</a>, <a class="el" href="_chat_container_8cpp-source.html#l00192">LogL()</a>, <a class="el" href="_chat_container_8cpp-source.html#l00226">ShowDataQueryL()</a>, <a class="el" href="_chat_container_8cpp-source.html#l00294">SizeChanged()</a>, and <a class="el" href="_chat_container_8cpp-source.html#l00104">~CChatContainer()</a>.    </td>  </tr></table><a class="anchor" name="6bbe9a7332aad924e2907ed051176a63"></a><!-- doxytag: member="CChatContainer::iMessageList" ref="6bbe9a7332aad924e2907ed051176a63" args="" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">CDesCArrayFlat* <a class="el" href="class_c_chat_container.html#6bbe9a7332aad924e2907ed051176a63">CChatContainer::iMessageList</a><code> [private]</code>          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>iMessageList the list of messages to display Not owned by CChatContainer <p>Definition at line <a class="el" href="_chat_container_8h-source.html#l00204">204</a> of file <a class="el" href="_chat_container_8h-source.html">ChatContainer.h</a>.<p>Referenced by <a class="el" href="_chat_container_8cpp-source.html#l00116">ClearMessageListL()</a>, <a class="el" href="_chat_container_8cpp-source.html#l00054">ConstructL()</a>, <a class="el" href="_chat_container_8cpp-source.html#l00192">LogL()</a>, and <a class="el" href="_chat_container_8cpp-source.html#l00226">ShowDataQueryL()</a>.    </td>  </tr></table><a class="anchor" name="2cf80a140858db9aca391444115ae163"></a><!-- doxytag: member="CChatContainer::iMsgIndex" ref="2cf80a140858db9aca391444115ae163" args="" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">TInt <a class="el" href="class_c_chat_container.html#2cf80a140858db9aca391444115ae163">CChatContainer::iMsgIndex</a><code> [private]</code>          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>iMsgIndex the id for the next message in the list <p>Definition at line <a class="el" href="_chat_container_8h-source.html#l00210">210</a> of file <a class="el" href="_chat_container_8h-source.html">ChatContainer.h</a>.    </td>  </tr></table><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="_chat_container_8h-source.html">ChatContainer.h</a><li><a class="el" href="_chat_container_8cpp-source.html">ChatContainer.cpp</a></ul><hr><table x-use-null-cells		style="x-cell-content-align: top;				width: 100%;				border-spacing: 0px;				border-spacing: 0px;"		cellspacing=0		width=100%>  <col style="width: 50%;">  <col style="width: 50%;">  <tr style="x-cell-content-align: top;"	valign=top>  <td style="width: 50%;			padding-right: 10px;			padding-left: 10px;			border-right-style: None;			border-left-style: None;			border-top-style: None;			border-bottom-style: None;"	width=50%>  <p style="font-family: Arial;"><small style="font-size: smaller;">

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -