⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 group__sys__bmps.htm

📁 MINIGUI1.6开发API
💻 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: System bitmap/icon operations</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&nbsp;Page</a> | <a class="qindex" href="modules.htm">Modules</a> | <a class="qindex" href="classes.htm">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.htm">Data&nbsp;Structures</a> | <a class="qindex" href="dirs.htm">Directories</a> | <a class="qindex" href="files.htm">File&nbsp;List</a> | <a class="qindex" href="functions.htm">Data&nbsp;Fields</a> | <a class="qindex" href="globals.htm">Globals</a> | <a class="qindex" href="pages.htm">Related&nbsp;Pages</a></div><h1>System bitmap/icon operations<br><small>[<a class="el" href="group__window__create__fns.htm">Window creating/destroying</a>]</small></h1><h2>Defines</h2><ul><li>#define <a class="el" href="group__sys__bmps.htm#ga40">LoadSystemBitmap</a>(pBitmap, szItemName)&nbsp;&nbsp;&nbsp;LoadSystemBitmapEx (pBitmap, szItemName, -1, -1)<dl class="el"><dd class="mdescRight">Loads a bitmap from information defined in MiniGUI.cfg.  <a href="#ga40"></a><br></dl></ul><h2>Functions</h2><ul><li>MG_EXPORT const <a class="el" href="struct__BITMAP.htm">BITMAP</a> *GUIAPI <a class="el" href="group__sys__bmps.htm#ga3">GetStockBitmap</a> (const char *name, int ckey_x, int ckey_y)<dl class="el"><dd class="mdescRight">Gets a stock bitmap object.  <a href="#ga3"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__sys__bmps.htm#ga4">LoadSystemBitmapEx</a> (<a class="el" href="struct__BITMAP.htm">PBITMAP</a> pBitmap, const char *szItemName, int ckey_x, int ckey_y)<dl class="el"><dd class="mdescRight">Loads a bitmap from information defined in MiniGUI.cfg.  <a href="#ga4"></a><br></dl><li>MG_EXPORT <a class="el" href="group__handles.htm#ga5">HICON</a> GUIAPI <a class="el" href="group__sys__bmps.htm#ga5">LoadSystemIcon</a> (const char *szItemName, int which)<dl class="el"><dd class="mdescRight">Loads an icon from information defined in MiniGUI.cfg.  <a href="#ga5"></a><br></dl></ul><hr><h2>Define Documentation</h2><a class="anchor" name="ga40" doxytag="window.h::LoadSystemBitmap"></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 LoadSystemBitmap          </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">pBitmap,         <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>szItemName&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap>&nbsp;&nbsp;&nbsp;LoadSystemBitmapEx (pBitmap, szItemName, -1, -1)</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Loads a bitmap from information defined in MiniGUI.cfg. <p><dl compact><dt><b>Note:</b></dt><dd>Defined as a macro calling <em>LoadSystemBitmapEx</em> without definition of color key pixel.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__sys__bmps.htm#ga4">LoadSystemBitmapEx</a> </dd></dl><p>Definition at line <a class="el" href="window_8h-source.htm#l04742">4742</a> of file <a class="el" href="window_8h-source.htm">window.h</a>.    </td>  </tr></table><hr><h2>Function Documentation</h2><a class="anchor" name="ga3" doxytag="window.h::GetStockBitmap"></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">const <a class="el" href="struct__BITMAP.htm">BITMAP</a> * GetStockBitmap           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const char *&nbsp;</td>          <td class="mdname" nowrap> <em>name</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>ckey_x</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>ckey_y</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Gets a stock bitmap object. <p>This function gets a stock bitmap object. It will also set the color key of the BITMAP object by using the pixel of (ckey_x, ckey_y) if the position is valid when loading the stock bitmap for the first time.<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>name</em>&nbsp;</td><td>The key name in the section of "bitmapinfo" in MiniGUI.cfg. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>ckey_x</em>&nbsp;</td><td>The point of (ckey_x, ckey_y) defines the pixel in the bitmap will be used as the color key. If either of <em>ckey_x</em> and <em>ckey_y</em> is less than zero, there is no color key. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>ckey_y</em>&nbsp;</td><td>The point of (ckey_x, ckey_y) defines the pixel in the bitmap will be used as color key. If either of ckey_x and ckey_y is less than zero, there is no color key.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>NULL on error, else the pointer to the system bitmap.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__sys__bmps.htm#ga4">LoadSystemBitmapEx</a>, <a class="el" href="group__bmp__load__fns.htm#ga6">LoadBitmapFromFile</a>, <a class="el" href="group__bmp__load__fns.htm#ga8">UnloadBitmap</a> </dd></dl>    </td>  </tr></table><a class="anchor" name="ga4" doxytag="window.h::LoadSystemBitmapEx"></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 LoadSystemBitmapEx           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="struct__BITMAP.htm">PBITMAP</a>&nbsp;</td>          <td class="mdname" nowrap> <em>pBitmap</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const char *&nbsp;</td>          <td class="mdname" nowrap> <em>szItemName</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>ckey_x</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>ckey_y</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Loads a bitmap from information defined in MiniGUI.cfg. <p>This function loads a bitmap from information defined in MiniGUI.cfg. It will also set the color key of the BITMAP object by using the pixel of (ckey_x, ckey_y) if the pixel is valid.<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>pBitmap</em>&nbsp;</td><td>The pointer to a bitmap object. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>szItemName</em>&nbsp;</td><td>The key name in the section of "bitmapinfo" in MiniGUI.cfg. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>ckey_x</em>&nbsp;</td><td>The point of (ckey_x, ckey_y) defines the pixel which will be used as color key in the bitmap. If either of ckey_x and ckey_y is less than zero, there is no color key. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>ckey_y</em>&nbsp;</td><td>See ckey_x.</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__sys__bmps.htm#ga5">LoadSystemIcon</a>, <a class="el" href="group__bmp__load__fns.htm#ga6">LoadBitmapFromFile</a>, <a class="el" href="group__bmp__load__fns.htm#ga8">UnloadBitmap</a> </dd></dl>    </td>  </tr></table><a class="anchor" name="ga5" doxytag="window.h::LoadSystemIcon"></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 LoadSystemIcon           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const char *&nbsp;</td>          <td class="mdname" nowrap> <em>szItemName</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>which</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Loads an icon from information defined in MiniGUI.cfg. <p>This function loads an icon from information defined in MiniGUI.cfg.<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>szItemName</em>&nbsp;</td><td>The key name in the section of "iconinfo" in MiniGUI.cfg. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>which</em>&nbsp;</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 loaded icon.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__sys__bmps.htm#ga40">LoadSystemBitmap</a>, <a class="el" href="group__icon__fns.htm#ga0">LoadIconFromFile</a>, <a class="el" href="group__icon__fns.htm#ga3">DestroyIcon</a> </dd></dl>    </td>  </tr></table><hr size="1"><address style="align: right;"><small>Generated on Thu Nov 22 15:35:55 2007 for MiniGUI V1.6.10 API Reference by&nbsp;<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 + -