📄 group__map__fns.htm
字号:
<tr> <td> </td> <td><p>Retrieves the x-coordinates and y-coordinates of the window for a device context. <p>This function retrieves the x-coordinates and y-coordinates of the window origin of the specified device context <em>hdc</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> </td><td>The device context. </td></tr> <tr><td valign="top"></td><td valign="top"><em>pPt</em> </td><td>The window origin will be returned through this buffer.</td></tr> </table></dl><dl compact><dt><b>Note:</b></dt><dd>Defined as a macro calling <em>GetDCLCS</em> for _USE_NEWGAL. If _USE_NEWGAL is not defined, <em>GetWindowOrg</em> is defined as a function, and have the same semantics as this macro.</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#ga19">SetWindowOrg</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l04101">4101</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>. </td> </tr></table><a class="anchor" name="ga7" doxytag="gdi.h::SetMapMode"></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 SetMapMode </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">hdc, <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>mapmode </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> SetDCAttr (hdc, DC_ATTR_MAP_MODE, (<a class="el" href="group__win32__types.htm#ga4">DWORD</a>)mapmode)</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Sets the mapping mode of a display context. <p>This function sets the mapping mode of the specified display context <em>hdc</em>.<p>So far, MiniGUI support two mapping modes: MM_TEXT and MM_ANISOTROPIC.<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>mapmode</em> </td><td>The new mapping mode, should be either <em>MM_TEXT</em> or <em>MM_ANISOTROPIC</em>. </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The old mapping mode, either <em>MM_TEXT</em> or <em>MM_ANISOTROPIC</em>.</dd></dl><dl compact><dt><b>Note:</b></dt><dd>Defined as a macro calling <em>SetDCAttr</em> for _USE_NEWGAL. If _USE_NEWGAL is not defined, <em>SetMapMode</em> is defined as a function, and have the same semantics as this macro.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__map__fns.htm#ga20">SetWindowExt</a>, <a class="el" href="group__map__fns.htm#ga18">SetViewportExt</a>, <a class="el" href="group__map__fns.htm#ga7">SetMapMode</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l03972">3972</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>. </td> </tr></table><a class="anchor" name="ga18" doxytag="gdi.h::SetViewportExt"></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 SetViewportExt </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">hdc, <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>pPt </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> SetDCLCS(hdc, DC_LCS_VEXT, pPt)</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Sets the x-extents and y-extents of the current viewport for a device context. <p>This function sets the x-extents and y-extens of the current viewport of the specified device context <em>hdc</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> </td><td>The device context. </td></tr> <tr><td valign="top"></td><td valign="top"><em>pPt</em> </td><td>The viewport extents will be set.</td></tr> </table></dl><dl compact><dt><b>Note:</b></dt><dd>Defined as a macro calling <em>GetDCLCS</em> for _USE_NEWGAL. If _USE_NEWGAL is not defined, <em>SetViewportExt</em> is defined as a function, and have the same semantics as this macro.</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#ga14">GetViewportExt</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l04158">4158</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>. </td> </tr></table><a class="anchor" name="ga17" doxytag="gdi.h::SetViewportOrg"></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 SetViewportOrg </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">hdc, <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>pPt </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> SetDCLCS(hdc, DC_LCS_VORG, pPt)</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Sets the x-coordinates and y-coordinates of the viewport origin for a device context. <p>This function sets the x-coordinates and y-coordinates of the viewport origin of the specified device context <em>hdc</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> </td><td>The device context. </td></tr> <tr><td valign="top"></td><td valign="top"><em>pPt</em> </td><td>The viewport origin will be set.</td></tr> </table></dl><dl compact><dt><b>Note:</b></dt><dd>Defined as a macro calling <em>GetDCLCS</em> for _USE_NEWGAL. If _USE_NEWGAL is not defined, <em>SetViewportOrg</em> is defined as a function, and have the same semantics as this macro.</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#ga13">GetViewportOrg</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l04139">4139</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>. </td> </tr></table><a class="anchor" name="ga20" doxytag="gdi.h::SetWindowExt"></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 SetWindowExt </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">hdc, <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>pPt </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> SetDCLCS(hdc, DC_LCS_WEXT, pPt)</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Sets the x-extents and y-extents of the current window for a device context. <p>This function sets the x-extents and y-extens of the current window of the specified device context <em>hdc</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> </td><td>The device context. </td></tr> <tr><td valign="top"></td><td valign="top"><em>pPt</em> </td><td>The window extents will be set.</td></tr> </table></dl><dl compact><dt><b>Note:</b></dt><dd>Defined as a macro calling <em>GetDCLCS</em> for _USE_NEWGAL. If _USE_NEWGAL is not defined, <em>SetWindowExt</em> is defined as a function, and have the same semantics as this macro.</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#ga16">GetWindowExt</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l04196">4196</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>. </td> </tr></table><a class="anchor" name="ga19" doxytag="gdi.h::SetWindowOrg"></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 SetWindowOrg </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">hdc, <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>pPt </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> SetDCLCS(hdc, DC_LCS_WORG, pPt)</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Sets the x-coordinates and y-coordinates of the window for a device context. <p>This function sets the x-coordinates and y-coordinates of the window origin of the specified device context <em>hdc</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> </td><td>The device context. </td></tr> <tr><td valign="top"></td><td valign="top"><em>pPt</em> </td><td>The window origin will be set.</td></tr> </table></dl><dl compact><dt><b>Note:</b></dt><dd>Defined as a macro calling <em>GetDCLCS</em> for _USE_NEWGAL. If _USE_NEWGAL is not defined, <em>SetWindowOrg</em> is defined as a function, and have the same semantics as this macro.</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#ga15">GetWindowOrg</a> </dd></dl>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -