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

📄 group__win32__types.htm

📁 MINIGUI1.6开发API
💻 HTM
📖 第 1 页 / 共 3 页
字号:
<!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: Win32-like data types and macros</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>Win32-like data types and macros<br><small>[<a class="el" href="group__macros__types.htm">Macros and data types commonly used</a>]</small></h1><h2>Data Structures</h2><ul><li>struct <a class="el" href="struct__RECT.htm">_RECT</a><li>struct <a class="el" href="struct__POINT.htm">_POINT</a><li>struct <a class="el" href="struct__SIZE.htm">_SIZE</a><li>struct <a class="el" href="struct__RGB.htm">_RGB</a></ul><h2>Defines</h2><ul><li>#define <a class="el" href="group__win32__types.htm#ga19">LOBYTE</a>(w)&nbsp;&nbsp;&nbsp;((<a class="el" href="group__win32__types.htm#ga0">BYTE</a>)(w))<dl class="el"><dd class="mdescRight">Returns the low byte of the word <em>w</em>.  <a href="#ga19"></a><br></dl><li>#define <a class="el" href="group__win32__types.htm#ga20">HIBYTE</a>(w)&nbsp;&nbsp;&nbsp;((<a class="el" href="group__win32__types.htm#ga0">BYTE</a>)(((<a class="el" href="group__win32__types.htm#ga2">WORD</a>)(w) &gt;&gt; 8) &amp; 0xFF))<dl class="el"><dd class="mdescRight">Returns the high byte of the word <em>w</em>.  <a href="#ga20"></a><br></dl><li>#define <a class="el" href="group__win32__types.htm#ga21">MAKEWORD</a>(low, high)&nbsp;&nbsp;&nbsp;((<a class="el" href="group__win32__types.htm#ga2">WORD</a>)(((<a class="el" href="group__win32__types.htm#ga0">BYTE</a>)(low)) | (((<a class="el" href="group__win32__types.htm#ga2">WORD</a>)((<a class="el" href="group__win32__types.htm#ga0">BYTE</a>)(high))) &lt;&lt; 8)))<dl class="el"><dd class="mdescRight">Makes a word from <em>low</em> byte and <em>high</em> byte.  <a href="#ga21"></a><br></dl><li>#define <a class="el" href="group__win32__types.htm#ga22">LOWORD</a>(l)&nbsp;&nbsp;&nbsp;((<a class="el" href="group__win32__types.htm#ga2">WORD</a>)(<a class="el" href="group__win32__types.htm#ga4">DWORD</a>)(l))<dl class="el"><dd class="mdescRight">Returns the low word of the double word <em>l</em>.  <a href="#ga22"></a><br></dl><li>#define <a class="el" href="group__win32__types.htm#ga23">HIWORD</a>(l)&nbsp;&nbsp;&nbsp;((<a class="el" href="group__win32__types.htm#ga2">WORD</a>)((((<a class="el" href="group__win32__types.htm#ga4">DWORD</a>)(l)) &gt;&gt; 16) &amp; 0xFFFF))<dl class="el"><dd class="mdescRight">Returns the high word of the double word <em>l</em>.  <a href="#ga23"></a><br></dl><li>#define <a class="el" href="group__win32__types.htm#ga24">LOSWORD</a>(l)&nbsp;&nbsp;&nbsp;((<a class="el" href="group__win32__types.htm#ga3">SWORD</a>)(<a class="el" href="group__win32__types.htm#ga4">DWORD</a>)(l))<dl class="el"><dd class="mdescRight">Returns the low signed word of the double word <em>l</em>.  <a href="#ga24"></a><br></dl><li>#define <a class="el" href="group__win32__types.htm#ga25">HISWORD</a>(l)&nbsp;&nbsp;&nbsp;((<a class="el" href="group__win32__types.htm#ga3">SWORD</a>)((((<a class="el" href="group__win32__types.htm#ga4">DWORD</a>)(l)) &gt;&gt; 16) &amp; 0xFFFF))<dl class="el"><dd class="mdescRight">Returns the high signed word of the double word <em>l</em>.  <a href="#ga25"></a><br></dl><li>#define <a class="el" href="group__win32__types.htm#ga26">MAKELONG</a>(low, high)&nbsp;&nbsp;&nbsp;((<a class="el" href="group__win32__types.htm#ga4">DWORD</a>)(((<a class="el" href="group__win32__types.htm#ga2">WORD</a>)(low)) | (((<a class="el" href="group__win32__types.htm#ga4">DWORD</a>)((<a class="el" href="group__win32__types.htm#ga2">WORD</a>)(high))) &lt;&lt; 16)))<dl class="el"><dd class="mdescRight">Makes a double word from <em>low</em> word and <em>high</em> word.  <a href="#ga26"></a><br></dl><li>#define <a class="el" href="group__win32__types.htm#ga27">GetRValue</a>(rgb)&nbsp;&nbsp;&nbsp;((<a class="el" href="group__win32__types.htm#ga0">BYTE</a>)(rgb))<dl class="el"><dd class="mdescRight">Gets the red component from a RGB triple value <em>rgb</em>.  <a href="#ga27"></a><br></dl><li>#define <a class="el" href="group__win32__types.htm#ga28">GetGValue</a>(rgb)&nbsp;&nbsp;&nbsp;((<a class="el" href="group__win32__types.htm#ga0">BYTE</a>)(((<a class="el" href="group__win32__types.htm#ga2">WORD</a>)(rgb)) &gt;&gt; 8))<dl class="el"><dd class="mdescRight">Gets the green component from a RGB triple value <em>rgb</em>.  <a href="#ga28"></a><br></dl><li>#define <a class="el" href="group__win32__types.htm#ga29">GetBValue</a>(rgb)&nbsp;&nbsp;&nbsp;((<a class="el" href="group__win32__types.htm#ga0">BYTE</a>)((rgb) &gt;&gt; 16))<dl class="el"><dd class="mdescRight">Gets the blue component from a RGB triple value <em>rgb</em>.  <a href="#ga29"></a><br></dl><li>#define <a class="el" href="group__win32__types.htm#ga30">MakeRGB</a>(r, g, b)<dl class="el"><dd class="mdescRight">Makes a RGB triple value from red <em>r</em>, green <em>g</em>, and blue <em>b</em> components.  <a href="#ga30"></a><br></dl></ul><h2>Typedefs</h2><ul><li>typedef unsigned char <a class="el" href="group__win32__types.htm#ga0">BYTE</a><dl class="el"><dd class="mdescRight">A type definition for unsigned character (byte).  <a href="#ga0"></a><br></dl><li>typedef signed char <a class="el" href="group__win32__types.htm#ga1">SBYTE</a><dl class="el"><dd class="mdescRight">A type definition for signed character.  <a href="#ga1"></a><br></dl><li>typedef unsigned short <a class="el" href="group__win32__types.htm#ga2">WORD</a><dl class="el"><dd class="mdescRight">A type definition for unsigned short integer (word).  <a href="#ga2"></a><br></dl><li>typedef signed short <a class="el" href="group__win32__types.htm#ga3">SWORD</a><dl class="el"><dd class="mdescRight">A type definition for signed short integer.  <a href="#ga3"></a><br></dl><li>typedef unsigned long <a class="el" href="group__win32__types.htm#ga4">DWORD</a><dl class="el"><dd class="mdescRight">A type definition for unsigned long integer (double word).  <a href="#ga4"></a><br></dl><li>typedef signed long <a class="el" href="group__win32__types.htm#ga5">SDWORD</a><dl class="el"><dd class="mdescRight">A type definition for signed long integer.  <a href="#ga5"></a><br></dl><li>typedef unsigned int <a class="el" href="group__win32__types.htm#ga6">UINT</a><dl class="el"><dd class="mdescRight">A type definition for unsigned integer.  <a href="#ga6"></a><br></dl><li>typedef long <a class="el" href="group__win32__types.htm#ga7">LONG</a><dl class="el"><dd class="mdescRight">A type definition for long integer.  <a href="#ga7"></a><br></dl><li>typedef unsigned int <a class="el" href="group__win32__types.htm#ga8">WPARAM</a><dl class="el"><dd class="mdescRight">A type definition for the first message paramter.  <a href="#ga8"></a><br></dl><li>typedef unsigned long <a class="el" href="group__win32__types.htm#ga9">LPARAM</a><dl class="el"><dd class="mdescRight">A type definition for the second message paramter.  <a href="#ga9"></a><br></dl><li>typedef <a class="el" href="group__win32__types.htm#ga4">DWORD</a> <a class="el" href="group__win32__types.htm#ga10">RGBCOLOR</a><dl class="el"><dd class="mdescRight">A type definition for a RGB color.  <a href="#ga10"></a><br></dl><li>typedef <a class="el" href="struct__RECT.htm">_RECT</a> <a class="el" href="group__win32__types.htm#ga11">RECT</a><li>typedef <a class="el" href="struct__RECT.htm">RECT</a> * <a class="el" href="group__win32__types.htm#ga12">PRECT</a><dl class="el"><dd class="mdescRight">Data type of the pointer to a RECT.  <a href="#ga12"></a><br></dl><li>typedef <a class="el" href="struct__POINT.htm">_POINT</a> <a class="el" href="group__win32__types.htm#ga13">POINT</a><li>typedef <a class="el" href="struct__POINT.htm">POINT</a> * <a class="el" href="group__win32__types.htm#ga14">PPOINT</a><dl class="el"><dd class="mdescRight">Data type of the pointer to a POINT.  <a href="#ga14"></a><br></dl><li>typedef <a class="el" href="struct__SIZE.htm">_SIZE</a> <a class="el" href="group__win32__types.htm#ga15">SIZE</a><li>typedef <a class="el" href="struct__SIZE.htm">SIZE</a> * <a class="el" href="group__win32__types.htm#ga16">PSIZE</a><dl class="el"><dd class="mdescRight">Data type of the pointer to a SIZE.  <a href="#ga16"></a><br></dl><li>typedef <a class="el" href="struct__RGB.htm">_RGB</a> <a class="el" href="group__win32__types.htm#ga17">RGB</a><li>typedef <a class="el" href="struct__RGB.htm">RGB</a> * <a class="el" href="group__win32__types.htm#ga18">PRGB</a><dl class="el"><dd class="mdescRight">Data type of the pointer to a RGB.  <a href="#ga18"></a><br></dl></ul><hr><h2>Define Documentation</h2><a class="anchor" name="ga29" doxytag="common.h::GetBValue"></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 GetBValue          </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">rgb&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap>&nbsp;&nbsp;&nbsp;((<a class="el" href="group__win32__types.htm#ga0">BYTE</a>)((rgb) &gt;&gt; 16))</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Gets the blue component from a RGB triple value <em>rgb</em>. <p>You can make a RGB triple by using MakeRGB.<p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__win32__types.htm#ga30">MakeRGB</a> </dd></dl><p>Definition at line <a class="el" href="common_8h-source.htm#l00508">508</a> of file <a class="el" href="common_8h-source.htm">common.h</a>.    </td>  </tr></table><a class="anchor" name="ga28" doxytag="common.h::GetGValue"></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 GetGValue          </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">rgb&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap>&nbsp;&nbsp;&nbsp;((<a class="el" href="group__win32__types.htm#ga0">BYTE</a>)(((<a class="el" href="group__win32__types.htm#ga2">WORD</a>)(rgb)) &gt;&gt; 8))</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Gets the green component from a RGB triple value <em>rgb</em>. <p>You can make a RGB triple by using MakeRGB.<p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__win32__types.htm#ga30">MakeRGB</a> </dd></dl><p>Definition at line <a class="el" href="common_8h-source.htm#l00499">499</a> of file <a class="el" href="common_8h-source.htm">common.h</a>.    </td>  </tr></table><a class="anchor" name="ga27" doxytag="common.h::GetRValue"></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 GetRValue          </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">rgb&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap>&nbsp;&nbsp;&nbsp;((<a class="el" href="group__win32__types.htm#ga0">BYTE</a>)(rgb))</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Gets the red component from a RGB triple value <em>rgb</em>. <p>You can make a RGB triple by using MakeRGB.<p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__win32__types.htm#ga30">MakeRGB</a> </dd></dl><p>Definition at line <a class="el" href="common_8h-source.htm#l00490">490</a> of file <a class="el" href="common_8h-source.htm">common.h</a>.    </td>  </tr></table><a class="anchor" name="ga20" doxytag="common.h::HIBYTE"></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 HIBYTE          </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">w&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap>&nbsp;&nbsp;&nbsp;((<a class="el" href="group__win32__types.htm#ga0">BYTE</a>)(((<a class="el" href="group__win32__types.htm#ga2">WORD</a>)(w) &gt;&gt; 8) &amp; 0xFF))</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Returns the high byte of the word <em>w</em>. <p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__win32__types.htm#ga21">MAKEWORD</a> </dd></dl><p>Definition at line <a class="el" href="common_8h-source.htm#l00438">438</a> of file <a class="el" href="common_8h-source.htm">common.h</a>.    </td>  </tr></table><a class="anchor" name="ga25" doxytag="common.h::HISWORD"></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 HISWORD          </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">l&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap>&nbsp;&nbsp;&nbsp;((<a class="el" href="group__win32__types.htm#ga3">SWORD</a>)((((<a class="el" href="group__win32__types.htm#ga4">DWORD</a>)(l)) &gt;&gt; 16) &amp; 0xFFFF))</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Returns the high signed word of the double word <em>l</em>. <p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__win32__types.htm#ga26">MAKELONG</a> </dd></dl><p>Definition at line <a class="el" href="common_8h-source.htm#l00474">474</a> of file <a class="el" href="common_8h-source.htm">common.h</a>.    </td>  </tr></table><a class="anchor" name="ga23" doxytag="common.h::HIWORD"></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 HIWORD          </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">l&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap>&nbsp;&nbsp;&nbsp;((<a class="el" href="group__win32__types.htm#ga2">WORD</a>)((((<a class="el" href="group__win32__types.htm#ga4">DWORD</a>)(l)) &gt;&gt; 16) &amp; 0xFFFF))</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Returns the high word of the double word <em>l</em>. <p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__win32__types.htm#ga26">MAKELONG</a> </dd></dl><p>Definition at line <a class="el" href="common_8h-source.htm#l00459">459</a> of file <a class="el" href="common_8h-source.htm">common.h</a>.    </td>  </tr></table><a class="anchor" name="ga19" doxytag="common.h::LOBYTE"></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 LOBYTE          </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">w&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap>&nbsp;&nbsp;&nbsp;((<a class="el" href="group__win32__types.htm#ga0">BYTE</a>)(w))</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Returns the low byte of the word <em>w</em>. <p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__win32__types.htm#ga21">MAKEWORD</a> </dd></dl><p>Definition at line <a class="el" href="common_8h-source.htm#l00431">431</a> of file <a class="el" href="common_8h-source.htm">common.h</a>.    </td>  </tr></table><a class="anchor" name="ga24" doxytag="common.h::LOSWORD"></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 LOSWORD          </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">l&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap>&nbsp;&nbsp;&nbsp;((<a class="el" href="group__win32__types.htm#ga3">SWORD</a>)(<a class="el" href="group__win32__types.htm#ga4">DWORD</a>)(l))</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Returns the low signed word of the double word <em>l</em>. <p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__win32__types.htm#ga26">MAKELONG</a> </dd></dl><p>Definition at line <a class="el" href="common_8h-source.htm#l00467">467</a> of file <a class="el" href="common_8h-source.htm">common.h</a>.    </td>  </tr></table><a class="anchor" name="ga22" doxytag="common.h::LOWORD"></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 + -