📄 group__icon__fns.htm
字号:
<td class="mdname" nowrap> <em>w</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>h</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="group__handles.htm#ga5">HICON</a> </td> <td class="mdname" nowrap> <em>hicon</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>Draws an icon into a box. <p>This function draws an icon object <em>hicon</em> into a box specified by <em></em>(x,y,w,h).<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>hdc</em> </td><td>The device context. </td></tr> <tr><td valign="top"></td><td valign="top"><em>x</em> </td><td>The x coordinate of the upper-left corner of the box. </td></tr> <tr><td valign="top"></td><td valign="top"><em>y</em> </td><td>The y coordinate of the upper-left corner of the box. </td></tr> <tr><td valign="top"></td><td valign="top"><em>w</em> </td><td>The width of the box. </td></tr> <tr><td valign="top"></td><td valign="top"><em>h</em> </td><td>The height of the box. </td></tr> <tr><td valign="top"></td><td valign="top"><em>hicon</em> </td><td>The icon object.</td></tr> </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__icon__fns.htm#ga2">CreateIconEx</a>, <a class="el" href="group__icon__fns.htm#ga0">LoadIconFromFile</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga4" doxytag="gdi.h::GetIconSize"></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"><a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI GetIconSize </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga5">HICON</a> </td> <td class="mdname" nowrap> <em>hicon</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>w</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>h</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>Gets the size of an icon object. <p>This function gets the size of the icon object <em>hicon</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>hicon</em> </td><td>The icon object. </td></tr> <tr><td valign="top"></td><td valign="top"><em>w</em> </td><td>The width of the icon will be returned throught this buffer. </td></tr> <tr><td valign="top"></td><td valign="top"><em>h</em> </td><td>The height of the icon will be returned throught this buffer. </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>TRUE on success, otherwise FALSE.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__icon__fns.htm#ga2">CreateIconEx</a>, <a class="el" href="group__icon__fns.htm#ga0">LoadIconFromFile</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga0" doxytag="gdi.h::LoadIconFromFile"></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"><a class="el" href="group__handles.htm#ga5">HICON</a> GUIAPI LoadIconFromFile </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga2">HDC</a> </td> <td class="mdname" nowrap> <em>hdc</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>const char * </td> <td class="mdname" nowrap> <em>filename</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>which</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>Loads an icon from a Windows ICO file. <p>This function loads an icon from a Windows ICO file named <em>filename</em> and creates an icon object. This function can load mono-,16-color and 256-color icons.Some Windows ICO file contain two icons in different sizes. You can tell this function to load which icon though <em>which</em>, 0 for the first icon, and 1 for the second icon. Generally, the later icon is the larger icon. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>hdc</em> </td><td>The device context. </td></tr> <tr><td valign="top"></td><td valign="top"><em>filename</em> </td><td>The file name of the ICO file. </td></tr> <tr><td valign="top"></td><td valign="top"><em>which</em> </td><td>Tell the function to load which icon. </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The handle to the icon object, zero means error occurred.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__icon__fns.htm#ga2">CreateIconEx</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga1" doxytag="gdi.h::LoadIconFromMem"></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"><a class="el" href="group__handles.htm#ga5">HICON</a> GUIAPI LoadIconFromMem </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga2">HDC</a> </td> <td class="mdname" nowrap> <em>hdc</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>const void * </td> <td class="mdname" nowrap> <em>area</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>which</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>Loads an icon from a memory area. <p>This function loads an icon from a memroy area pointed to by <em>area</em>. The memory area has the same layout as the M$ Windows ICO file. This function can load mono- ,16-color and 256-color icons. Some Windows ICO file contain two icons in different sizes. You can tell this function to load which icon though <em>which</em>, 0 for the first icon, and 1 for the second icon. Generally, the later icon is the larger icon.<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>hdc</em> </td><td>The device context. </td></tr> <tr><td valign="top"></td><td valign="top"><em>area</em> </td><td>The pointer to the memory area. </td></tr> <tr><td valign="top"></td><td valign="top"><em>which</em> </td><td>Tell the function to load which icon. </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The handle to the icon object, zero means error occurred.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__icon__fns.htm#ga2">CreateIconEx</a> </dd></dl> </td> </tr></table><hr size="1"><address style="align: right;"><small>Generated on Thu Nov 22 15:35:54 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 + -