📄 group__cursor__fns.htm
字号:
<tr><td valign="top"></td><td valign="top"><em>ppt</em> </td><td>The position will be saved in this buffer. </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__cursor__fns.htm#ga9">SetCursorPos</a>, <a class="el" href="group__win32__types.htm#ga13">POINT</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga11" doxytag="minigui.h::GetDefaultCursor"></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#ga4">HCURSOR</a> GUIAPI GetDefaultCursor </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Gets the default cursor. <p>This function gets the current default cursor.<p><dl compact><dt><b>Returns:</b></dt><dd>The current default cursor handle.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__cursor__fns.htm#ga10">SetCursorEx</a>, <a class="el" href="group__cursor__fns.htm#ga38">SetDefaultCursor</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga4" doxytag="minigui.h::GetSystemCursor"></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#ga4">HCURSOR</a> GUIAPI GetSystemCursor </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname1" valign="top" nowrap> <em>csrid</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Gets the handle to a system cursor by its identifier. <p>MiniGUI creates (MAX_SYSCURSORINDEX + 1) system cursors for application. You can use <em>GetSystemCursor</em> to get the handle to these system cursors. The identifier can be one of the following:<p><ul><li>IDC_ARROW<br> Normal arrow cursor.</li><li>IDC_IBEAM<br> 'I' shaped beam cursor, indicate an input field.</li><li>IDC_PENCIL<br> Pencil-shape cursor.</li><li>IDC_CROSS<br> Cross cursor.</li><li>IDC_MOVE<br> Moving cursor.</li><li>IDC_SIZENWSE<br> Sizing cursor, along north-west and south-east.</li><li>IDC_SIZENESW<br> Sizing cursor, along north-east and south-west.</li><li>IDC_SIZEWE<br> Sizing cursor, along west and east.</li><li>IDC_SIZENS<br> Sizing cursor, along north and south.</li><li>IDC_UPARROW<br> Up arrow cursor.</li><li>IDC_NONE<br> None cursor.</li><li>IDC_HELP<br> Arrow with question.</li><li>IDC_BUSY<br> Busy cursor.</li><li>IDC_WAIT<br> Wait cursor.</li><li>IDC_RARROW<br> Right arrow cursor.</li><li>IDC_COLOMN<br> Cursor indicates column.</li><li>IDC_ROW<br> Cursor indicates row.</li><li>IDC_DRAG<br> Draging cursor.</li><li>IDC_NODROP<br> No droping cursor.</li><li>IDC_HAND_POINT<br> Hand point cursor.</li><li>IDC_HAND_SELECT<br> Hand selection cursor.</li><li>IDC_SPLIT_HORZ<br> Horizontal splitting cursor.</li><li>IDC_SPLIT_VERT<br> Vertical splitting cursor.</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>csrid</em> </td><td>The identifier of the system cursor. </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Handle to the system cursor, otherwise zero. </dd></dl> </td> </tr></table><a class="anchor" name="ga0" doxytag="minigui.h::LoadCursorFromFile"></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#ga4">HCURSOR</a> GUIAPI LoadCursorFromFile </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const char * </td> <td class="mdname1" valign="top" nowrap> <em>filename</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Loads a cursor from a M$ Windows cursor file. <p>This function loads a cursor from M$ Windows *.cur file named <em>filename</em> and returns the handle to loaded cursor. The returned handle can be used by <em>SetCursor</em> to set new mouse cursor.<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>filename</em> </td><td>The path name of the cursor file.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Handle to the cursor, zero on error.</dd></dl><dl compact><dt><b>Note:</b></dt><dd>MiniGUI does not support 256-color or animation cursor.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__cursor__fns.htm#ga37">SetCursor</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga1" doxytag="minigui.h::LoadCursorFromMem"></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#ga4">HCURSOR</a> GUIAPI LoadCursorFromMem </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const void * </td> <td class="mdname1" valign="top" nowrap> <em>area</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Loads a cursor from a memory area. <p>This function loads a cursor from a memory area pointed to by <em>area</em>. The memory has the same layout as a M$ Windows CURSOR file. The returned handle can be used by <em>SetCursor</em> to set new mouse cursor.<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>area</em> </td><td>The pointer to the cursor data.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Handle to the cursor, zero on error.</dd></dl><dl compact><dt><b>Note:</b></dt><dd>MiniGUI does not support 256-color or animation cursor.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__cursor__fns.htm#ga37">SetCursor</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga10" doxytag="minigui.h::SetCursorEx"></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#ga4">HCURSOR</a> GUIAPI SetCursorEx </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga4">HCURSOR</a> </td> <td class="mdname" nowrap> <em>hcsr</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="group__simple__types.htm#ga0">BOOL</a> </td> <td class="mdname" nowrap> <em>set_def</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>Changes the current cursor. <p>This function changes the current cursor to be <em>hcsr</em>, and/or sets it to be the default cursor.<p>If you pass <em>set_def</em> as TRUE, the expected cursor will be the default cursor. The default cursor will be used when you move the cursor to the desktop.<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>hcsr</em> </td><td>The expected cursor handle. </td></tr> <tr><td valign="top"></td><td valign="top"><em>set_def</em> </td><td>Indicates whether setting the cursor as the default cursor.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The old cursor handle.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__cursor__fns.htm#ga37">SetCursor</a>, <a class="el" href="group__cursor__fns.htm#ga38">SetDefaultCursor</a>, <a class="el" href="group__cursor__fns.htm#ga11">GetDefaultCursor</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga9" doxytag="minigui.h::SetCursorPos"></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 SetCursorPos </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname" nowrap> <em>x</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>y</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>Sets position of the current cursor. <p>This function sets mouse cursor position with the given arguments: <em></em>(<em>x</em>,<em>y</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>x</em> </td><td>The x-corrdinate of the expected poistion. </td></tr> <tr><td valign="top"></td><td valign="top"><em>y</em> </td><td>The y-corrdinate of the expected poistion. </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__cursor__fns.htm#ga8">GetCursorPos</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga12" doxytag="minigui.h::ShowCursor"></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">int GUIAPI ShowCursor </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__simple__types.htm#ga0">BOOL</a> </td> <td class="mdname1" valign="top" nowrap> <em>fShow</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Shows or hides cursor. <p>This function shows or hides cursor according to the argument <em>fShow</em>. Show cursor when <em>fShow</em> is TRUE, and hide cursor when <em>fShow</em> is FALSE. MiniGUI maintains a showing count value. Calling <em>ShowCursor</em> once, the count will increase when <em>fShow</em> is TRUE, or decrease one when FALSE. When the count is less than 0, the cursor will disapear actually.<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>fShow</em> </td><td>Indicates show or hide the cursor.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Cursor showing count value. </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 <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 + -