📄 group__mgext__ctrl__coolbar__styles.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: Styles of coolbar control</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>Styles of coolbar control<br><small>[<a class="el" href="group__mgext__ctrl__coolbar.htm">CoolBar control</a>]</small></h1><h2>Defines</h2><ul><li>#define <a class="el" href="group__mgext__ctrl__coolbar__styles.htm#ga0">CBS_BMP_16X16</a> 0x0000<dl class="el"><dd class="mdescRight">The size of the item bitmap is 16x16. <a href="#ga0"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__coolbar__styles.htm#ga1">CBS_BMP_32X32</a> 0x0001<dl class="el"><dd class="mdescRight">The size of the item bitmap is 32x32. <a href="#ga1"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__coolbar__styles.htm#ga2">CBS_BMP_CUSTOM</a> 0x0002<dl class="el"><dd class="mdescRight">The item bitmap has customized size. <a href="#ga2"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__coolbar__styles.htm#ga3">CBS_USEBKBMP</a> 0x0004<dl class="el"><dd class="mdescRight">The control has a background bitmap. <a href="#ga3"></a><br></dl></ul><hr><h2>Define Documentation</h2><a class="anchor" name="ga0" doxytag="coolbar.h::CBS_BMP_16X16"></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 CBS_BMP_16X16 0x0000 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>The size of the item bitmap is 16x16. <p><p>Definition at line <a class="el" href="coolbar_8h-source.htm#l00121">121</a> of file <a class="el" href="coolbar_8h-source.htm">coolbar.h</a>. </td> </tr></table><a class="anchor" name="ga1" doxytag="coolbar.h::CBS_BMP_32X32"></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 CBS_BMP_32X32 0x0001 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>The size of the item bitmap is 32x32. <p><p>Definition at line <a class="el" href="coolbar_8h-source.htm#l00127">127</a> of file <a class="el" href="coolbar_8h-source.htm">coolbar.h</a>. </td> </tr></table><a class="anchor" name="ga2" doxytag="coolbar.h::CBS_BMP_CUSTOM"></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 CBS_BMP_CUSTOM 0x0002 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>The item bitmap has customized size. <p><dl compact><dt><b>Note:</b></dt><dd>For the control with this style, you should pass the width and the height of the item bitmap by the argument <em>dwAddData</em> of <em>CreateWindowEx</em> function.</dd></dl><div class="fragment"><pre class="fragment"> <span class="keywordtype">int</span> item_width = 20; <span class="keywordtype">int</span> item_height = 20; <a class="code" href="group__control__fns.htm#ga1">CreateWindowEx</a> (<a class="code" href="group__mgext__ctrl__coolbar.htm#ga2">CTRL_COOLBAR</a>, ..., <a class="code" href="group__win32__types.htm#ga26">MAKELONG</a> (item_width, item_height)));</pre></div> <p>Definition at line <a class="el" href="coolbar_8h-source.htm#l00144">144</a> of file <a class="el" href="coolbar_8h-source.htm">coolbar.h</a>. </td> </tr></table><a class="anchor" name="ga3" doxytag="coolbar.h::CBS_USEBKBMP"></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 CBS_USEBKBMP 0x0004 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>The control has a background bitmap. <p><dl compact><dt><b>Note:</b></dt><dd>For a CoolBar control with this style, you should pass the bitmap file name by the argument <em>spCaption</em> of <em>CreateWindowEx</em> function.</dd></dl><div class="fragment"><pre class="fragment"> <span class="keyword">const</span> <span class="keywordtype">char</span>* file_bkgnd = <span class="stringliteral">"res/my_bkgnd.gif"</span>; <a class="code" href="group__control__fns.htm#ga1">CreateWindowEx</a> (<a class="code" href="group__mgext__ctrl__coolbar.htm#ga2">CTRL_COOLBAR</a>, file_bkgnd, ...);</pre></div> <p>Definition at line <a class="el" href="coolbar_8h-source.htm#l00159">159</a> of file <a class="el" href="coolbar_8h-source.htm">coolbar.h</a>. </td> </tr></table><hr size="1"><address style="align: right;"><small>Generated on Thu Nov 22 15:35:56 2007 for MiniGUI V1.6.10 API Reference by <a href="http://www.doxygen.org/index.html"><img src="http://www.minigui.com/api_ref/1.6.10/doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -