set_mshapeT_set_mshapeSetMshapeSetMshapeset_mshape (算子)
名称
set_mshapeT_set_mshapeSetMshapeSetMshapeset_mshape — 设置当前鼠标指针形状。
警告
This operator does not work in an HDevelop graphics window opened with
dev_open_window.
签名
描述
set_mshapeset_mshapeSetMshapeSetMshapeSetMshapeset_mshape sets the shape of the mouse pointer for the
window. A list of the names of all available mouse pointer
shapes can be obtained by calling query_mshapequery_mshapeQueryMshapeQueryMshapeQueryMshapequery_mshape。The
mouse pointer shape given by CursorCursorCursorCursorcursorcursor is used if the mouse
pointer enters the window, irrespective of which window is
the output window at present.
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
参数
WindowHandleWindowHandleWindowHandleWindowHandlewindowHandlewindow_handle (输入控制) window → HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
窗口句柄。
CursorCursorCursorCursorcursorcursor (输入控制) string → HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Mouse pointer name.
默认值:
'arrow'
"arrow"
"arrow"
"arrow"
"arrow"
"arrow"
结果
set_mshapeset_mshapeSetMshapeSetMshapeSetMshapeset_mshape 返回值 2 (
H_MSG_TRUE)
if
the mouse pointer shape CursorCursorCursorCursorcursorcursor is defined for this
window.否则,将抛出异常。
可能的前趋
open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window,
query_mshapequery_mshapeQueryMshapeQueryMshapeQueryMshapequery_mshape,
get_mshapeget_mshapeGetMshapeGetMshapeGetMshapeget_mshape
另见
get_mshapeget_mshapeGetMshapeGetMshapeGetMshapeget_mshape,
query_mshapequery_mshapeQueryMshapeQueryMshapeQueryMshapequery_mshape
模块
基础