📄 group__ctrl__msgs.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>MiniGUI V1.6.10 API Reference: Dialog and control messages</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.2 --><div class="qindex"><a class="qindex" href="index.htm">Main Page</a> | <a class="qindex" href="modules.htm">Modules</a> | <a class="qindex" href="classes.htm">Alphabetical List</a> | <a class="qindex" href="annotated.htm">Data Structures</a> | <a class="qindex" href="dirs.htm">Directories</a> | <a class="qindex" href="files.htm">File List</a> | <a class="qindex" href="functions.htm">Data Fields</a> | <a class="qindex" href="globals.htm">Globals</a> | <a class="qindex" href="pages.htm">Related Pages</a></div><h1>Dialog and control messages<br><small>[<a class="el" href="group__msgs.htm">Messages</a>]</small></h1><h2>Defines</h2><ul><li>#define <a class="el" href="group__ctrl__msgs.htm#ga1">MSG_COMMAND</a> 0x0120<dl class="el"><dd class="mdescRight">The command message, indicates a notification message from child window, or the user has selected a menu item. <a href="#ga1"></a><br></dl><li>#define <a class="el" href="group__ctrl__msgs.htm#ga2">MSG_SYSCOMMAND</a> 0x0121<dl class="el"><dd class="mdescRight">The system command message. <a href="#ga2"></a><br></dl><li>#define <a class="el" href="group__ctrl__msgs.htm#ga3">MSG_GETDLGCODE</a> 0x0122<dl class="el"><dd class="mdescRight">Get dialog code. <a href="#ga3"></a><br></dl><li>#define <a class="el" href="group__ctrl__msgs.htm#ga4">MSG_INITDIALOG</a> 0x0123<dl class="el"><dd class="mdescRight">Ready to initialize the controls in a dialog box. <a href="#ga4"></a><br></dl><li>#define <a class="el" href="group__ctrl__msgs.htm#ga7">MSG_DLG_GETDEFID</a> 0x0126<dl class="el"><dd class="mdescRight">Get default push button ID first. <a href="#ga7"></a><br></dl><li>#define <a class="el" href="group__ctrl__msgs.htm#ga8">MSG_DLG_SETDEFID</a> 0x0127<dl class="el"><dd class="mdescRight">Set default push button ID first. <a href="#ga8"></a><br></dl><li>#define <a class="el" href="group__ctrl__msgs.htm#ga9">MSG_ISDIALOG</a> 0x0128<dl class="el"><dd class="mdescRight">Sends to a window to query whether the window is a dialog window. <a href="#ga9"></a><br></dl><li>#define <a class="el" href="group__ctrl__msgs.htm#ga10">MSG_INITPAGE</a> 0x0129<dl class="el"><dd class="mdescRight">Ready to initialize the controls in a property page. <a href="#ga10"></a><br></dl><li>#define <a class="el" href="group__ctrl__msgs.htm#ga11">MSG_SHOWPAGE</a> 0x012A<dl class="el"><dd class="mdescRight">Indicates the page will be shown or hidden. <a href="#ga11"></a><br></dl><li>#define <a class="el" href="group__ctrl__msgs.htm#ga12">MSG_SHEETCMD</a> 0x012B<dl class="el"><dd class="mdescRight">Indicates that a PSM_SHEETCMD message had been sent to the PropertySheet control. <a href="#ga12"></a><br></dl><li>#define <a class="el" href="group__ctrl__msgs.htm#ga13">MSG_INITCONTAINER</a> 0x012C<dl class="el"><dd class="mdescRight">This message will be sent to the container window procedure after the container window is created. <a href="#ga13"></a><br></dl><li>#define <a class="el" href="group__ctrl__msgs.htm#ga14">MSG_SVCONTCMD</a> 0x012D<dl class="el"><dd class="mdescRight">This message will be sent to the parent of the ScrollView control when the container of the ScrollView control reveived a MSG_COMMAND message. <a href="#ga14"></a><br></dl><li>#define <a class="el" href="group__ctrl__msgs.htm#ga15">MSG_FREEZECTRL</a> 0x012E<dl class="el"><dd class="mdescRight">You can send this message to freeze or thaw the paint action of the control. <a href="#ga15"></a><br></dl><li>#define <a class="el" href="group__ctrl__msgs.htm#ga16">MSG_FONTCHANGING</a> 0x0130<dl class="el"><dd class="mdescRight">Indicates the user is trying to change the font of the window. <a href="#ga16"></a><br></dl><li>#define <a class="el" href="group__ctrl__msgs.htm#ga17">MSG_FONTCHANGED</a> 0x0131<dl class="el"><dd class="mdescRight">Indicates the window font has been changed. <a href="#ga17"></a><br></dl><li>#define <a class="el" href="group__ctrl__msgs.htm#ga18">MSG_GETTEXTLENGTH</a> 0x0132<dl class="el"><dd class="mdescRight">Sent to the control to get the length of the text. <a href="#ga18"></a><br></dl><li>#define <a class="el" href="group__ctrl__msgs.htm#ga19">MSG_GETTEXT</a> 0x0133<dl class="el"><dd class="mdescRight">Sent to the control to get the text. <a href="#ga19"></a><br></dl><li>#define <a class="el" href="group__ctrl__msgs.htm#ga20">MSG_SETTEXT</a> 0x0134<dl class="el"><dd class="mdescRight">Sent to the control to set the text. <a href="#ga20"></a><br></dl><li>#define <a class="el" href="group__ctrl__msgs.htm#ga21">MSG_ENABLE</a> 0x0135<dl class="el"><dd class="mdescRight">Indicates the window is disabled/enabled. <a href="#ga21"></a><br></dl></ul><hr><h2>Define Documentation</h2><a class="anchor" name="ga1" doxytag="window.h::MSG_COMMAND"></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_COMMAND 0x0120 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>The command message, indicates a notification message from child window, or the user has selected a menu item. <p>This message sent to the window when the user has selected a menu item, or a child window has sent a notification message to the parent.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__msgs.htm#ga1">MSG_COMMAND</a> <span class="keywordtype">int</span> <span class="keywordtype">id</span> = <a class="code" href="group__win32__types.htm#ga22">LOWORD</a>(wParam); <span class="keywordtype">int</span> code = <a class="code" href="group__win32__types.htm#ga23">HIWORD</a>(wParam); <a class="code" href="group__handles.htm#ga1">HWND</a> hwnd = (<a class="code" href="group__handles.htm#ga1">HWND</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>id</em> </td><td>The identifier of the menu item or the child window. </td></tr> <tr><td valign="top"></td><td valign="top"><em>code</em> </td><td>The notification code. </td></tr> <tr><td valign="top"></td><td valign="top"><em>hwnd</em> </td><td>The handle to the control.</td></tr> </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__misc__fns.htm#ga28">NotifyParent</a> </dd></dl><p>Definition at line <a class="el" href="window_8h-source.htm#l01304">1304</a> of file <a class="el" href="window_8h-source.htm">window.h</a>. </td> </tr></table><a class="anchor" name="ga7" doxytag="window.h::MSG_DLG_GETDEFID"></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_DLG_GETDEFID 0x0126 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Get default push button ID first. <p><p>Definition at line <a class="el" href="window_8h-source.htm#l01354">1354</a> of file <a class="el" href="window_8h-source.htm">window.h</a>. </td> </tr></table><a class="anchor" name="ga8" doxytag="window.h::MSG_DLG_SETDEFID"></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_DLG_SETDEFID 0x0127 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Set default push button ID first. <p><p>Definition at line <a class="el" href="window_8h-source.htm#l01360">1360</a> of file <a class="el" href="window_8h-source.htm">window.h</a>. </td> </tr></table><a class="anchor" name="ga21" doxytag="window.h::MSG_ENABLE"></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_ENABLE 0x0135 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Indicates the window is disabled/enabled. <p>This message is sent to the window if the window has been disabled or enabled.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__msgs.htm#ga21">MSG_ENABLE</a> <a class="code" href="group__simple__types.htm#ga0">BOOL</a> enabled = (<a class="code" href="group__simple__types.htm#ga0">BOOL</a>)wParam;</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>enabled</em> </td><td>Indicates whether the window was disabled or enabled. </td></tr> </table></dl><p>Definition at line <a class="el" href="window_8h-source.htm#l01613">1613</a> of file <a class="el" href="window_8h-source.htm">window.h</a>. </td> </tr></table><a class="anchor" name="ga17" doxytag="window.h::MSG_FONTCHANGED"></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_FONTCHANGED 0x0131 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Indicates the window font has been changed. <p>This message is sent to the window after the window font has changed. Some window should be repainted to reflect the new window font. <p>Definition at line <a class="el" href="window_8h-source.htm#l01533">1533</a> of file <a class="el" href="window_8h-source.htm">window.h</a>. </td> </tr></table><a class="anchor" name="ga16" doxytag="window.h::MSG_FONTCHANGING"></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_FONTCHANGING 0x0130 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Indicates the user is trying to change the font of the window. <p>This message is sent to the window when the user is trying to change the font of the window by calling <em>SetWindowFont</em>. If you return non-zero after handling this message, <em>SetWindowFont</em> will return immediately, i.e., the default window font will not change.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__msgs.htm#ga16">MSG_FONTCHANGING</a> <a class="code" href="struct__LOGFONT.htm">PLOGFONT</a> log_font = (<a class="code" href="struct__LOGFONT.htm">PLOGFONT</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>log_font</em> </td><td>The pointer to the new window logical font.</td></tr> </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__window__general__fns.htm#ga10">SetWindowFont</a> </dd></dl><p>Definition at line <a class="el" href="window_8h-source.htm#l01523">1523</a> of file <a class="el" href="window_8h-source.htm">window.h</a>. </td> </tr></table><a class="anchor" name="ga15" doxytag="window.h::MSG_FREEZECTRL"></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_FREEZECTRL 0x012E </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>You can send this message to freeze or thaw the paint action of the control. <p>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -