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

📄 group__map__fns.htm

📁 MINIGUI1.6开发API
💻 HTM
📖 第 1 页 / 共 3 页
字号:
<p>Definition at line <a class="el" href="gdi_8h-source.htm#l04177">4177</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>.    </td>  </tr></table><hr><h2>Function Documentation</h2><a class="anchor" name="ga2" doxytag="gdi.h::DPtoLP"></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">void GUIAPI DPtoLP           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga2">HDC</a>&nbsp;</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><a class="el" href="struct__POINT.htm">POINT</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>pPt</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>Converts device coordinates into logical coordinates. <p>This function converts device coordinates into logical coordinates in the device context <em>hdc</em>.<p>The conversion depends on the mapping mode of the display context, the settings of the origins and extents for the window and viewport. The x-coordinate and y-coordinate contained in struct <em>pPt</em> will be transformed.<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>&nbsp;</td><td>The device context. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>pPt</em>&nbsp;</td><td>The coordinates to be converted, and the transformed coordinates will be contained in this buffer after the function returns.</td></tr>  </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__map__fns.htm#ga3">LPtoDP</a> </dd></dl>    </td>  </tr></table><a class="anchor" name="ga0" doxytag="gdi.h::GetDCLCS"></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">void GUIAPI GetDCLCS           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga2">HDC</a>&nbsp;</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>int&nbsp;</td>          <td class="mdname" nowrap> <em>which</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap><a class="el" href="struct__POINT.htm">POINT</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>pt</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>Retrieves mapping parameters of a device context. <p>This function retrieves mapping paramters of the specified device context <em>hdc</em> when the mapping mode is not <em>MM_TEXT</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>hdc</em>&nbsp;</td><td>The device context. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>which</em>&nbsp;</td><td>Which parameter you want to retrieve, can be one of the following values:</td></tr>  </table></dl><ul><li>DC_LCS_VORG<br> Retrieves the x-coordinates and y-coordinates of the viewport origin.</li><li>DC_LCS_VEXT<br> Retrieves the x-extents and y-extents of the current viewport.</li><li>DC_LCS_WORG<br> Retrieves the x-coordinates and y-coordinates of the window origin.</li><li>DC_LCS_WEXT<br> Retrieves the x-extents and y-extents of the window.</li></ul><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>pt</em>&nbsp;</td><td>The coordinates or extents will be returned through this buffer.</td></tr>  </table></dl><dl compact><dt><b>Note:</b></dt><dd>Only defined for _USE_NEWGAL</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__map__fns.htm#ga6">GetMapMode</a>, <a class="el" href="group__map__fns.htm#ga7">SetMapMode</a>, <a class="el" href="group__map__fns.htm#ga1">SetDCLCS</a> </dd></dl>    </td>  </tr></table><a class="anchor" name="ga3" doxytag="gdi.h::LPtoDP"></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">void GUIAPI LPtoDP           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga2">HDC</a>&nbsp;</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><a class="el" href="struct__POINT.htm">POINT</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>pPt</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>Converts logical coordinates into device coordinates. <p>This function converts logical coordinates into device coordinates in the device context <em>hdc</em>.<p>The conversion depends on the mapping mode of the display context, the settings of the origins and extents for the window and viewport. The x-coordinate and y-coordinate contained in struct <em>pPt</em> will be transformed.<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>&nbsp;</td><td>The device context. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>pPt</em>&nbsp;</td><td>The coordinates to be converted, and the transformed coordinates will be contained in this buffer after the function returns.</td></tr>  </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__map__fns.htm#ga2">DPtoLP</a> </dd></dl>    </td>  </tr></table><a class="anchor" name="ga1" doxytag="gdi.h::SetDCLCS"></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">void GUIAPI SetDCLCS           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga2">HDC</a>&nbsp;</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>int&nbsp;</td>          <td class="mdname" nowrap> <em>which</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const <a class="el" href="struct__POINT.htm">POINT</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>pt</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>Sets mapping parameters of a device context. <p>This function sets mapping paramters of the specified device context <em>hdc</em> when the mapping mode is not <em>MM_TEXT</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>hdc</em>&nbsp;</td><td>The device context. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>which</em>&nbsp;</td><td>Which parameter you want to retrieve, can be one of the following values:</td></tr>  </table></dl><ul><li>DC_LCS_VORG<br> Sets the x-coordinates and y-coordinates of the viewport origin.</li><li>DC_LCS_VEXT<br> Sets the x-extents and y-extents of the current viewport.</li><li>DC_LCS_WORG<br> Sets the x-coordinates and y-coordinates of the window origin.</li><li>DC_LCS_WEXT<br> Sets the x-extents and y-extents of the window.</li></ul><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>pt</em>&nbsp;</td><td>The coordinates or extents will be set.</td></tr>  </table></dl><dl compact><dt><b>Note:</b></dt><dd>Only defined for _USE_NEWGAL</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__map__fns.htm#ga6">GetMapMode</a>, <a class="el" href="group__map__fns.htm#ga7">SetMapMode</a>, <a class="el" href="group__map__fns.htm#ga0">GetDCLCS</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&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 + -