📄 group__ctrl__msgs.htm
字号:
<div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__msgs.htm#ga15">MSG_FREEZECTRL</a> <a class="code" href="group__simple__types.htm#ga0">BOOL</a> bFrozen; wParam = bFrozen lParam = 0;</pre></div><p><dl compact><dt><b>Note:</b></dt><dd>Note that implemented only in scrollview and listview.</dd></dl><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>bFrozen</em> </td><td>to freeze or to thaw. </td></tr> </table></dl><p>Definition at line <a class="el" href="window_8h-source.htm#l01503">1503</a> of file <a class="el" href="window_8h-source.htm">window.h</a>. </td> </tr></table><a class="anchor" name="ga3" doxytag="window.h::MSG_GETDLGCODE"></a><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">#define MSG_GETDLGCODE 0x0122 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Get dialog code. <p><p>Definition at line <a class="el" href="window_8h-source.htm#l01316">1316</a> of file <a class="el" href="window_8h-source.htm">window.h</a>. </td> </tr></table><a class="anchor" name="ga19" doxytag="window.h::MSG_GETTEXT"></a><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">#define MSG_GETTEXT 0x0133 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Sent to the control to get the text. <p>This message is sent to the control when you calling <em>GetWindowText</em> function to get the text.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__msgs.htm#ga19">MSG_GETTEXT</a> <span class="keywordtype">int</span> max_len; <span class="keywordtype">char</span>* text_buf; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)max_len; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)text_buf;</pre></div><p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>max_len</em> </td><td>The maximal number of characters can be copied to the buffer. </td></tr> <tr><td valign="top"></td><td valign="top"><em>text_buf</em> </td><td>The pointer to a buffer receives the text. </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The length of the window text string.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__window__general__fns.htm#ga53">GetWindowText</a> </dd></dl><p>Definition at line <a class="el" href="window_8h-source.htm#l01576">1576</a> of file <a class="el" href="window_8h-source.htm">window.h</a>. </td> </tr></table><a class="anchor" name="ga18" doxytag="window.h::MSG_GETTEXTLENGTH"></a><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">#define MSG_GETTEXTLENGTH 0x0132 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Sent to the control to get the length of the text. <p>This message is sent to the control when you calling <em>GetWindowTextLength</em> function to get the lenght of the text.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__msgs.htm#ga18">MSG_GETTEXTLENGTH</a> wParam = 0; lParam = 0;</pre></div><p><dl compact><dt><b>Returns:</b></dt><dd>The length of the text.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__window__general__fns.htm#ga52">GetWindowTextLength</a> </dd></dl><p>Definition at line <a class="el" href="window_8h-source.htm#l01552">1552</a> of file <a class="el" href="window_8h-source.htm">window.h</a>. </td> </tr></table><a class="anchor" name="ga13" doxytag="window.h::MSG_INITCONTAINER"></a><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">#define MSG_INITCONTAINER 0x012C </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>This message will be sent to the container window procedure after the container window is created. <p>This message is sent to the container in order that you can initialize the controls in the container.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__msgs.htm#ga13">MSG_INITCONTAINER</a> <a class="code" href="group__win32__types.htm#ga4">DWORD</a> add_data = (<a class="code" href="group__win32__types.htm#ga4">DWORD</a>)lParam;</pre></div><p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>add_data</em> </td><td>The additional data in <em>CONTAINERINFO</em> structure passed through the argument of <em>dwAddData</em> when creating the ScrollView control by calling CreateWindowEx.</td></tr> </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__ctrl__scrollview.htm">ScrollView control</a>, <a class="el" href="group__ctrl__scrollview.htm#ga1">CONTAINERINFO</a> </dd></dl><p>Definition at line <a class="el" href="window_8h-source.htm#l01453">1453</a> of file <a class="el" href="window_8h-source.htm">window.h</a>. </td> </tr></table><a class="anchor" name="ga4" doxytag="window.h::MSG_INITDIALOG"></a><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">#define MSG_INITDIALOG 0x0123 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Ready to initialize the controls in a dialog box. <p>This message is sent to the dialog in order that you can initialize the controls in the dialog box.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__msgs.htm#ga4">MSG_INITDIALOG</a> <a class="code" href="group__handles.htm#ga1">HWND</a> focus_hwnd = (<a class="code" href="group__handles.htm#ga1">HWND</a>)wParam; <a class="code" href="group__win32__types.htm#ga9">LPARAM</a> lparam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)lParam;</pre></div><p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>focus_hwnd</em> </td><td>The handle to the control which will gain the input focus. </td></tr> <tr><td valign="top"></td><td valign="top"><em>lparam</em> </td><td>The parameter passed into the dialog box through <em>DialogBoxIndirectParam</em> function.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Returns non-zero value to set the input focus to <em>focus_hwnd</em>, else do not set focus.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__dialog__fns.htm#ga6">DialogBoxIndirectParam</a></dd></dl>Example:<p><div class="fragment"><pre class="fragment"><span class="keyword">static</span> <span class="keywordtype">int</span> DepInfoBoxProc (<a class="code" href="group__handles.htm#ga1">HWND</a> hDlg, <span class="keywordtype">int</span> message, <a class="code" href="group__win32__types.htm#ga8">WPARAM</a> wParam, <a class="code" href="group__win32__types.htm#ga9">LPARAM</a> lParam){ <span class="keyword">struct </span>_DepInfo *info; <span class="keywordflow">switch</span>(message) { <span class="keywordflow">case</span> <a class="code" href="group__ctrl__msgs.htm#ga4">MSG_INITDIALOG</a>: { <span class="comment">/* </span><span class="comment"> * Get the lParam passed to this dialog box, and assign it</span><span class="comment"> * to the second private additional data assoiciated</span><span class="comment"> * with the dialog box.</span><span class="comment"> */</span> info = (<span class="keyword">struct </span>_DepInfo*)lParam; <a class="code" href="group__window__general__fns.htm#ga24">SetWindowAdditionalData2</a> (hDlg, (<a class="code" href="group__win32__types.htm#ga4">DWORD</a>)lParam); <span class="keywordflow">break</span>; } <span class="keywordflow">case</span> <a class="code" href="group__ctrl__msgs.htm#ga1">MSG_COMMAND</a>: { <span class="comment">/* </span><span class="comment"> * Get the parameter from the second private data assoiciated</span><span class="comment"> * with the dialog box.</span><span class="comment"> */</span> info = (<span class="keyword">struct </span>_DepInfo*) <a class="code" href="group__window__general__fns.htm#ga23">GetWindowAdditionalData2</a> (hDlg); <span class="keywordflow">switch</span>(wParam) { <span class="keywordflow">case</span> IDOK: <span class="comment">/* Use the data in the parameter. */</span> ...... <span class="keywordflow">case</span> IDCANCEL: <a class="code" href="group__dialog__fns.htm#ga7">EndDialog</a>(hDlg,wParam); <span class="keywordflow">break</span>; } } } <span class="keywordflow">return</span> <a class="code" href="group__window__create__fns.htm#ga20">DefaultDialogProc</a> (hDlg, message, wParam, lParam);}</pre></div> <p>Definition at line <a class="el" href="window_8h-source.htm#l01344">1344</a> of file <a class="el" href="window_8h-source.htm">window.h</a>. </td> </tr></table><a class="anchor" name="ga10" doxytag="window.h::MSG_INITPAGE"></a><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">#define MSG_INITPAGE 0x0129 </td> </tr> </table> </td> </tr></table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -