Editor_GetCaretPos¶
檢索目前的游標位置。您能直接用該內嵌函式或明確地發送 EE_GET_CARET_POS 消息。
Editor_GetCaretPos( HWND hwnd, int nLogical, POINT_PTR* pptPos );
參數¶
hwnd
指定 EmEditor 視圖或框架的視窗控制代碼。
nLogical
指定下列值之一。
值 | 含義 |
---|---|
POS_VIEW | 顯示坐標 |
POS_LOGICAL_A | 邏輯坐標 (把雙位元字元計為兩個) |
POS_LOGICAL_W | 邏輯坐標 (把雙位元字元計為一個) |
pptPos
指標至一個會接收目前的游標位置的 POINT_PTR 結構 that will receive the current cursor position.
返回值¶
不使用返回值。