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

📄 class_c_helpful_form.html

📁 应用于S60平台的示例程序
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<a name="l00113"></a>00113     CAknForm::ProcessCommandL( aCommandId );<a name="l00114"></a>00114     }</pre></div><p>    </td>  </tr></table><a class="anchor" name="e972525d2efcc9df7aa10de236a313e3"></a><!-- doxytag: member="CHelpfulForm::GetHelpContext" ref="e972525d2efcc9df7aa10de236a313e3" args="(TCoeHelpContext &amp;aContext) const " --><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 CHelpfulForm::GetHelpContext           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">TCoeHelpContext &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>aContext</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const</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_helpful_form.html#e972525d2efcc9df7aa10de236a313e3">GetHelpContext()</a> Identify the help context so that the framework can look up the corresponding help topic <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>aContext</em>&nbsp;</td><td>Returns the help context </td></tr>  </table></dl><p>Definition at line <a class="el" href="helpfulform_8cpp-source.html#l00070">70</a> of file <a class="el" href="helpfulform_8cpp-source.html">helpfulform.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00071"></a>00071     {<a name="l00072"></a>00072     <span class="comment">// Get any special help context for the control with focus, else a default</span><a name="l00073"></a>00073     aContext.iMajor = KUidHelpFile;<a name="l00074"></a>00074 <a name="l00075"></a>00075     <span class="keywordflow">switch</span> ( IdOfFocusControl() )<a name="l00076"></a>00076         {<a name="l00077"></a>00077         <span class="keywordflow">case</span> EHelpExampleEdwin1:<a name="l00078"></a>00078             <span class="comment">// Provide special help context if first control has focus</span><a name="l00079"></a>00079             aContext.iContext = KContextEdwin1;<a name="l00080"></a>00080             <span class="keywordflow">break</span>;<a name="l00081"></a>00081 <a name="l00082"></a>00082         <span class="keywordflow">case</span> EHelpExampleEdwin2:<a name="l00083"></a>00083             <span class="comment">// Provide special help context if second control has focus</span><a name="l00084"></a>00084             aContext.iContext = KContextEdwin2;<a name="l00085"></a>00085             <span class="keywordflow">break</span>;<a name="l00086"></a>00086 <a name="l00087"></a>00087         <span class="keywordflow">default</span>:<a name="l00088"></a>00088             <span class="comment">// Provide default help context for this dialog otherwise</span><a name="l00089"></a>00089             aContext.iContext = KContextHelpfulForm;<a name="l00090"></a>00090             <span class="keywordflow">break</span>;<a name="l00091"></a>00091         }<a name="l00092"></a>00092     }</pre></div><p>    </td>  </tr></table><a class="anchor" name="3ae77c2aed5e1270a13c14bd5aa415fe"></a><!-- doxytag: member="CHelpfulForm::DynInitMenuPaneL" ref="3ae77c2aed5e1270a13c14bd5aa415fe" args="(TInt aResourceId, CEikMenuPane *aMenuPane)" --><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 CHelpfulForm::DynInitMenuPaneL           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">TInt&nbsp;</td>          <td class="mdname" nowrap> <em>aResourceId</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>CEikMenuPane *&nbsp;</td>          <td class="mdname" nowrap> <em>aMenuPane</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></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_helpful_form.html#3ae77c2aed5e1270a13c14bd5aa415fe">DynInitMenuPaneL()</a> Remove the unused default form options <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>aResourceId</em>&nbsp;</td><td>The id of the menu pane </td></tr>    <tr><td valign="top"></td><td valign="top"><em>aMenuPane</em>&nbsp;</td><td>The menu pane itself </td></tr>  </table></dl><p>Definition at line <a class="el" href="helpfulform_8cpp-source.html#l00121">121</a> of file <a class="el" href="helpfulform_8cpp-source.html">helpfulform.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00122"></a>00122     {<a name="l00123"></a>00123     CAknForm::DynInitMenuPaneL( aResourceId, aMenuPane );<a name="l00124"></a>00124     <span class="keywordflow">if</span> ( aResourceId == R_AVKON_FORM_MENUPANE )<a name="l00125"></a>00125         {<a name="l00126"></a>00126         <span class="comment">// Override the default form options. N/A in this case</span><a name="l00127"></a>00127         aMenuPane-&gt;SetItemDimmed( EAknFormCmdAdd, ETrue );<a name="l00128"></a>00128         aMenuPane-&gt;SetItemDimmed( EAknFormCmdSave, ETrue );<a name="l00129"></a>00129         aMenuPane-&gt;SetItemDimmed( EAknFormCmdLabel, ETrue );<a name="l00130"></a>00130         aMenuPane-&gt;SetItemDimmed( EAknFormCmdDelete, ETrue );<a name="l00131"></a>00131         }<a name="l00132"></a>00132     }</pre></div><p>    </td>  </tr></table><a class="anchor" name="f763d6a76a5476d3863904b71b2bd874"></a><!-- doxytag: member="CHelpfulForm::ConstructL" ref="f763d6a76a5476d3863904b71b2bd874" args="(TInt aMenuResource)" --><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 CHelpfulForm::ConstructL           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">TInt&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>aMenuResource</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_helpful_form.html#f763d6a76a5476d3863904b71b2bd874">ConstructL()</a> Perform the second phase construction of a CHelpfulForm object <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>aMenuResource</em>&nbsp;</td><td>The menu resource to be used for the form </td></tr>  </table></dl><p>Definition at line <a class="el" href="helpfulform_8cpp-source.html#l00058">58</a> of file <a class="el" href="helpfulform_8cpp-source.html">helpfulform.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00059"></a>00059     {<a name="l00060"></a>00060     <span class="comment">// Ensure the base class construction is complete or some of the form's</span><a name="l00061"></a>00061     <span class="comment">// features will not work</span><a name="l00062"></a>00062     CAknForm::ConstructL( aMenuResource );<a name="l00063"></a>00063     }</pre></div><p>    </td>  </tr></table><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="helpfulform_8h-source.html">helpfulform.h</a><li><a class="el" href="helpfulform_8cpp-source.html">helpfulform.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 + -