📄 group__dialog__fns.htm
字号:
<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 DLGC_WANTALLKEYS 0x0004 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Control wants all keys. <p><p>Definition at line <a class="el" href="window_8h-source.htm#l06662">6662</a> of file <a class="el" href="window_8h-source.htm">window.h</a>. </td> </tr></table><a class="anchor" name="ga23" doxytag="window.h::DLGC_WANTARROWS"></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 DLGC_WANTARROWS 0x0001 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Control wants arrow keys. <p><p>Definition at line <a class="el" href="window_8h-source.htm#l06652">6652</a> of file <a class="el" href="window_8h-source.htm">window.h</a>. </td> </tr></table><a class="anchor" name="ga26" doxytag="window.h::DLGC_WANTCHARS"></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 DLGC_WANTCHARS 0x0008 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Want MSG_CHAR messages. <p><p>Definition at line <a class="el" href="window_8h-source.htm#l06667">6667</a> of file <a class="el" href="window_8h-source.htm">window.h</a>. </td> </tr></table><a class="anchor" name="ga27" doxytag="window.h::DLGC_WANTENTER"></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 DLGC_WANTENTER 0x0010 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Control wants enter keys. <p><p>Definition at line <a class="el" href="window_8h-source.htm#l06673">6673</a> of file <a class="el" href="window_8h-source.htm">window.h</a>. </td> </tr></table><a class="anchor" name="ga24" doxytag="window.h::DLGC_WANTTAB"></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 DLGC_WANTTAB 0x0002 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Control wants tab keys. <p><p>Definition at line <a class="el" href="window_8h-source.htm#l06657">6657</a> of file <a class="el" href="window_8h-source.htm">window.h</a>. </td> </tr></table><hr><h2>Typedef Documentation</h2><a class="anchor" name="ga0" doxytag="window.h::CTRLDATA"></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">typedef struct <a class="el" href="struct__CTRLDATA.htm">_CTRLDATA</a> <a class="el" href="struct__CTRLDATA.htm">CTRLDATA</a> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Structure which defines a control. </td> </tr></table><a class="anchor" name="ga2" doxytag="window.h::DLGTEMPLATE"></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">typedef struct <a class="el" href="struct__DLGTEMPLATE.htm">_DLGTEMPLATE</a> <a class="el" href="struct__DLGTEMPLATE.htm">DLGTEMPLATE</a> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Structure which defines a dialogbox.<p>Example:<p><div class="fragment"><pre class="fragment"><span class="keyword">static</span> <a class="code" href="struct__DLGTEMPLATE.htm">DLGTEMPLATE</a> DlgInitProgress ={ <a class="code" href="group__styles.htm#ga11">WS_BORDER</a> | <a class="code" href="group__styles.htm#ga4">WS_CAPTION</a>, <a class="code" href="group__styles.htm#ga20">WS_EX_NONE</a>, 120, 150, 400, 130, <span class="stringliteral">"VAM-CNC is initializing"</span>, 0, 0, 3, <a class="code" href="group__simple__types.htm#ga3">NULL</a>, 0};<span class="keyword">static</span> <a class="code" href="struct__CTRLDATA.htm">CTRLDATA</a> CtrlInitProgress [] ={ { <span class="stringliteral">"static"</span>, <a class="code" href="group__styles.htm#ga6">WS_VISIBLE</a> | <a class="code" href="group__ctrl__static__styles.htm#ga11">SS_SIMPLE</a>, 10, 10, 380, 16, IDC_PROMPTINFO, <span class="stringliteral">"Initialize..."</span>, 0 }, { <span class="stringliteral">"progressbar"</span>, <a class="code" href="group__styles.htm#ga6">WS_VISIBLE</a>, 10, 40, 380, 20, IDC_PROGRESS, <a class="code" href="group__simple__types.htm#ga3">NULL</a>, 0 }, { <span class="stringliteral">"button"</span>, <a class="code" href="group__styles.htm#ga19">WS_TABSTOP</a> | <a class="code" href="group__styles.htm#ga6">WS_VISIBLE</a> | <a class="code" href="group__ctrl__button__styles.htm#ga1">BS_DEFPUSHBUTTON</a>, 170, 70, 60, 25, IDOK, <span class="stringliteral">"OK"</span>, 0 }};</pre></div> </td> </tr></table><hr><h2>Function Documentation</h2><a class="anchor" name="ga20" doxytag="window.h::CheckDlgButton"></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">void GUIAPI CheckDlgButton </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga1">HWND</a> </td> <td class="mdname" nowrap> <em>hDlg</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>nIDDlgItem</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>nCheck</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Changes the check status of a button control. <p>This function changes the check status of the button control whose identifier is <em>nIDDlgItem</em> in the dialog box <em>hDlg</em>.<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>hDlg</em> </td><td>The handle to the dialog box. </td></tr> <tr><td valign="top"></td><td valign="top"><em>nIDDlgItem</em> </td><td>The identifier of the control. </td></tr> <tr><td valign="top"></td><td valign="top"><em>nCheck</em> </td><td>The state of the button. If the button is a normal button, the value being zero means the button is checked, otherwise unchecked. If the button is a special button with three states, the value can be one of the following values:<ul><li>BST_UNCHECKED<br> The button is unchecked.</li><li>BST_CHECKED<br> The button is checked.</li><li>BST_INDETERMINATE<br> The button is in indeterminate state.</li></ul></td></tr> </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__dialog__fns.htm#ga21">CheckRadioButton</a>, <a class="el" href="group__dialog__fns.htm#ga22">IsDlgButtonChecked</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga21" doxytag="window.h::CheckRadioButton"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -