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

📄 class_c_focus_event_app_ui.html

📁 用来学习 焦点 的 的例子,可以 好好看看焦点在 symbian中很重要,
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<a name="l00100"></a>00100         User::InfoPrint( *lostFocusMessage );<a name="l00101"></a>00101 <span class="preprocessor">#endif </span><span class="comment">/* __WINS__ */</span><a name="l00102"></a>00102         <a class="code" href="class_c_focus_event_app_ui.html#45dd0a3e0e75e56b4727a01a8ef2c6b1">iAppView</a>-&gt;<a class="code" href="class_c_focus_event_app_view.html#cb774d5077102fc3c5dbdb7df1261389">Print</a>( *lostFocusMessage );<a name="l00103"></a>00103         <a class="code" href="class_c_focus_event_app_ui.html#45dd0a3e0e75e56b4727a01a8ef2c6b1">iAppView</a>-&gt;<a class="code" href="class_c_focus_event_app_view.html#07d5ce838d6f875de7f10db4e60a0f6a">PrintNewLineL</a>();<a name="l00104"></a>00104         <span class="comment">// Pop HBuf from CleanupStack and destroy it.</span><a name="l00105"></a>00105         CleanupStack::PopAndDestroy( lostFocusMessage );<a name="l00106"></a>00106         }<a name="l00107"></a>00107     <span class="keywordflow">else</span> <span class="comment">// Focus gained</span><a name="l00108"></a>00108         {<a name="l00109"></a>00109         <span class="comment">// Load a string from the resource file.</span><a name="l00110"></a>00110         HBufC* gainedFocusMessage = StringLoader::LoadLC<a name="l00111"></a>00111                                                    ( R_FOCU_GAINED_FOCUS_TEXT );<a name="l00112"></a>00112 #ifdef __WINS__<a name="l00113"></a>00113         User::InfoPrint( *gainedFocusMessage );<a name="l00114"></a>00114 <span class="preprocessor">#endif </span><span class="comment">/* __WINS__ */</span><a name="l00115"></a>00115         <a class="code" href="class_c_focus_event_app_ui.html#45dd0a3e0e75e56b4727a01a8ef2c6b1">iAppView</a>-&gt;<a class="code" href="class_c_focus_event_app_view.html#cb774d5077102fc3c5dbdb7df1261389">Print</a>( *gainedFocusMessage );<a name="l00116"></a>00116         <a class="code" href="class_c_focus_event_app_ui.html#45dd0a3e0e75e56b4727a01a8ef2c6b1">iAppView</a>-&gt;<a class="code" href="class_c_focus_event_app_view.html#07d5ce838d6f875de7f10db4e60a0f6a">PrintNewLineL</a>();<a name="l00117"></a>00117         <span class="comment">// Pop HBuf from CleanupStack and Destroy it.</span><a name="l00118"></a>00118         CleanupStack::PopAndDestroy( gainedFocusMessage );<a name="l00119"></a>00119         }<a name="l00120"></a>00120 <a name="l00121"></a>00121     CAknAppUi::HandleForegroundEventL( aForeground );<a name="l00122"></a>00122     }</pre></div><p>    </td>  </tr></table><a class="anchor" name="a682d228622cea7790645ce10f591242"></a><!-- doxytag: member="CFocusEventAppUi::HandleCommandL" ref="a682d228622cea7790645ce10f591242" args="(TInt aCommand)" --><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 CFocusEventAppUi::HandleCommandL           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">TInt&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>aCommand</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>From CEikAppUi, HandleCommandL. Takes care of command handling. <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>aCommand</em>&nbsp;</td><td>Command to be handled. </td></tr>  </table></dl><p>Definition at line <a class="el" href="focuseventappui_8cpp-source.html#l00072">72</a> of file <a class="el" href="focuseventappui_8cpp-source.html">focuseventappui.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00073"></a>00073     {<a name="l00074"></a>00074     <span class="keywordflow">switch</span> ( aCommand )<a name="l00075"></a>00075         {<a name="l00076"></a>00076     <span class="keywordflow">case</span> EEikCmdExit:<a name="l00077"></a>00077     <span class="keywordflow">case</span> EAknSoftkeyExit:<a name="l00078"></a>00078         Exit();<a name="l00079"></a>00079         <span class="keywordflow">break</span>;<a name="l00080"></a>00080 <a name="l00081"></a>00081     <span class="keywordflow">default</span>:<a name="l00082"></a>00082         Panic(EFocusEventBasicUi);<a name="l00083"></a>00083         <span class="keywordflow">break</span>;<a name="l00084"></a>00084         }<a name="l00085"></a>00085     }</pre></div><p>    </td>  </tr></table><a class="anchor" name="9ce34ba0b947863222da3c63d0481044"></a><!-- doxytag: member="CFocusEventAppUi::ConstructL" ref="9ce34ba0b947863222da3c63d0481044" 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">void CFocusEventAppUi::ConstructL           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </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>ConstructL. 2nd phase constructor. <p>Definition at line <a class="el" href="focuseventappui_8cpp-source.html#l00043">43</a> of file <a class="el" href="focuseventappui_8cpp-source.html">focuseventappui.cpp</a>.<p>References <a class="el" href="focuseventappui_8h-source.html#l00078">iAppView</a>, and <a class="el" href="focuseventappview_8cpp-source.html#l00041">CFocusEventAppView::NewL()</a>.<div class="fragment"><pre class="fragment"><a name="l00044"></a>00044     {<a name="l00045"></a>00045     BaseConstructL( EAknEnableSkin );<a name="l00046"></a>00046 <a name="l00047"></a>00047     <a class="code" href="class_c_focus_event_app_ui.html#45dd0a3e0e75e56b4727a01a8ef2c6b1">iAppView</a> = <a class="code" href="class_c_focus_event_app_view.html#5891ab00f23b517058efe213c1febfd2">CFocusEventAppView::NewL</a>( ClientRect() );<a name="l00048"></a>00048     AddToStackL( <a class="code" href="class_c_focus_event_app_ui.html#45dd0a3e0e75e56b4727a01a8ef2c6b1">iAppView</a> );<a name="l00049"></a>00049     }</pre></div><p>    </td>  </tr></table><hr><h2>Member Data Documentation</h2><a class="anchor" name="45dd0a3e0e75e56b4727a01a8ef2c6b1"></a><!-- doxytag: member="CFocusEventAppUi::iAppView" ref="45dd0a3e0e75e56b4727a01a8ef2c6b1" 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"><a class="el" href="class_c_focus_event_app_view.html">CFocusEventAppView</a>* <a class="el" href="class_c_focus_event_app_ui.html#45dd0a3e0e75e56b4727a01a8ef2c6b1">CFocusEventAppUi::iAppView</a><code> [private]</code>          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>The application view Owned by CFocusEventAppUi <p>Definition at line <a class="el" href="focuseventappui_8h-source.html#l00078">78</a> of file <a class="el" href="focuseventappui_8h-source.html">focuseventappui.h</a>.<p>Referenced by <a class="el" href="focuseventappui_8cpp-source.html#l00043">ConstructL()</a>, <a class="el" href="focuseventappui_8cpp-source.html#l00092">HandleForegroundEventL()</a>, and <a class="el" href="focuseventappui_8cpp-source.html#l00057">~CFocusEventAppUi()</a>.    </td>  </tr></table><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="focuseventappui_8h-source.html">focuseventappui.h</a><li><a class="el" href="focuseventappui_8cpp-source.html">focuseventappui.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 + -