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

📄 class_c_helpful_form.html

📁 应用于S60平台的示例程序
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!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>CHelpfulForm Class Reference</title><link href="style.css" rel="stylesheet" type="text/css"></head><table border="0" width="100%" height="8" bgcolor="#eeeeee"><tr> <td width="100%" height="1"><b><font size="2" color="#000000" face="Arial, Helvetica, sans-serif"><strong><a name=Top></a>S60 3rd Edition SDK FP1 for Symbian OS </strong></font></b><br><i>Example Applications Guide</i></td></tr> </table><!-- Generated by Doxygen 1.4.5 --><div class="tabs">  <ul>    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>    <li id="current"><a href="annotated.html"><span>Classes</span></a></li>    <li><a href="files.html"><span>Files</span></a></li>  </ul></div><div class="tabs">  <ul>    <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>  </ul></div><h1>CHelpfulForm Class Reference</h1><!-- doxytag: class="CHelpfulForm" --><!-- doxytag: inherits="CAknForm" --><code>#include &lt;<a class="el" href="helpfulform_8h-source.html">helpfulform.h</a>&gt;</code><p>Inherits CAknForm.<p>Inheritance diagram for CHelpfulForm:<p><center><img src="class_c_helpful_form__inherit__graph.png" border="0" usemap="#_c_helpful_form__inherit__map" alt="Inheritance graph"></center><a href="class_c_helpful_form-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>CHelpfulForm CHelpfulForm implements context sensitive help for itself and the controls it contains <p><p>Definition at line <a class="el" href="helpfulform_8h-source.html#l00027">27</a> of file <a class="el" href="helpfulform_8h-source.html">helpfulform.h</a>.<table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr><tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_helpful_form.html#418904920ba3cf86d56d138ff3a2a083">ProcessCommandL</a> (TInt aCommandId)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_helpful_form.html#e972525d2efcc9df7aa10de236a313e3">GetHelpContext</a> (TCoeHelpContext &amp;aContext) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_helpful_form.html#3ae77c2aed5e1270a13c14bd5aa415fe">DynInitMenuPaneL</a> (TInt aResourceId, CEikMenuPane *aMenuPane)</td></tr><tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="class_c_helpful_form.html">CHelpfulForm</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_helpful_form.html#23888945de0fdf30c3849bc1024e5283">NewL</a> (TInt aMenuResource)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="class_c_helpful_form.html">CHelpfulForm</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_helpful_form.html#d5fb310d2415333ccfc40e43e633b2da">NewLC</a> (TInt aMenuResource)</td></tr><tr><td colspan="2"><br><h2>Private Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_helpful_form.html#f763d6a76a5476d3863904b71b2bd874">ConstructL</a> (TInt aMenuResource)</td></tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="23888945de0fdf30c3849bc1024e5283"></a><!-- doxytag: member="CHelpfulForm::NewL" ref="23888945de0fdf30c3849bc1024e5283" 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"><a class="el" href="class_c_helpful_form.html">CHelpfulForm</a> * CHelpfulForm::NewL           </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> [static]</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#23888945de0fdf30c3849bc1024e5283">NewL()</a> Construct a CHelpfulForm for the AVKON application using two phase construction, and return a pointer to the created 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>Resource of menu to be added to form menu (with Help option) </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>A pointer to the created instance of CHelpfulForm </dd></dl><p>Definition at line <a class="el" href="helpfulform_8cpp-source.html#l00033">33</a> of file <a class="el" href="helpfulform_8cpp-source.html">helpfulform.cpp</a>.<p>References <a class="el" href="helpfulform_8cpp-source.html#l00045">NewLC()</a>.<p>Referenced by <a class="el" href="helpexampleappui_8cpp-source.html#l00073">CHelpExampleAppUi::HandleCommandL()</a>.<div class="fragment"><pre class="fragment"><a name="l00034"></a>00034     {<a name="l00035"></a>00035     <a class="code" href="class_c_helpful_form.html">CHelpfulForm</a>* <span class="keyword">self</span> = <a class="code" href="class_c_helpful_form.html#d5fb310d2415333ccfc40e43e633b2da">NewLC</a>( aMenuResource );<a name="l00036"></a>00036     CleanupStack::Pop( <span class="keyword">self</span> );<a name="l00037"></a>00037     <span class="keywordflow">return</span> <span class="keyword">self</span>;<a name="l00038"></a>00038     }</pre></div><p>    </td>  </tr></table><a class="anchor" name="d5fb310d2415333ccfc40e43e633b2da"></a><!-- doxytag: member="CHelpfulForm::NewLC" ref="d5fb310d2415333ccfc40e43e633b2da" 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"><a class="el" href="class_c_helpful_form.html">CHelpfulForm</a> * CHelpfulForm::NewLC           </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> [static]</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#d5fb310d2415333ccfc40e43e633b2da">NewLC()</a> Construct a CHelpfulForm for the AVKON application using two phase construction, and return a pointer to the created 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>Resource of menu to be added to form menu (with Help option) </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>A pointer to the created instance of CHelpfulForm </dd></dl><p>Definition at line <a class="el" href="helpfulform_8cpp-source.html#l00045">45</a> of file <a class="el" href="helpfulform_8cpp-source.html">helpfulform.cpp</a>.<p>Referenced by <a class="el" href="helpfulform_8cpp-source.html#l00033">NewL()</a>.<div class="fragment"><pre class="fragment"><a name="l00046"></a>00046     {<a name="l00047"></a>00047     <a class="code" href="class_c_helpful_form.html">CHelpfulForm</a>* <span class="keyword">self</span> = <span class="keyword">new</span> ( ELeave ) <a class="code" href="class_c_helpful_form.html">CHelpfulForm</a>();<a name="l00048"></a>00048     CleanupStack::PushL( <span class="keyword">self</span> );<a name="l00049"></a>00049     <span class="keyword">self</span>-&gt;ConstructL( aMenuResource );<a name="l00050"></a>00050     <span class="keywordflow">return</span> <span class="keyword">self</span>;<a name="l00051"></a>00051     }</pre></div><p>    </td>  </tr></table><a class="anchor" name="418904920ba3cf86d56d138ff3a2a083"></a><!-- doxytag: member="CHelpfulForm::ProcessCommandL" ref="418904920ba3cf86d56d138ff3a2a083" args="(TInt aCommandId)" --><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::ProcessCommandL           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">TInt&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>aCommandId</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><a class="el" href="class_c_helpful_form.html#418904920ba3cf86d56d138ff3a2a083">ProcessCommandL()</a> Handle user menu commands <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>aCommandId</em>&nbsp;</td><td>The command identifier to process </td></tr>  </table></dl><p>Definition at line <a class="el" href="helpfulform_8cpp-source.html#l00099">99</a> of file <a class="el" href="helpfulform_8cpp-source.html">helpfulform.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00100"></a>00100     {<a name="l00101"></a>00101     <span class="keywordflow">switch</span> ( aCommandId )<a name="l00102"></a>00102         {<a name="l00103"></a>00103         <span class="keywordflow">case</span> ELaunchHelpForContext :<a name="l00104"></a>00104             <span class="comment">// Pass it back to the AppUi to deal with</span><a name="l00105"></a>00105             iAvkonAppUi-&gt;HandleCommandL( aCommandId );<a name="l00106"></a>00106             <span class="keywordflow">break</span>;<a name="l00107"></a>00107         <span class="keywordflow">default</span> :<a name="l00108"></a>00108             <span class="keywordflow">break</span>;<a name="l00109"></a>00109         }<a name="l00110"></a>00110 <a name="l00111"></a>00111     <span class="comment">// Need to do this in all cases or menu does not disappear after</span><a name="l00112"></a>00112     <span class="comment">// a selection is made</span>

⌨️ 快捷键说明

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