#endif
LIBEDITTEXT_API_CURSORAPI_INFO
+ int LibEditText_GetCursorPosition(
+ int i_tinfoid, int i_curid, DWord *pdw_curline, DWord *pdw_curpos );
+LIBEDITTEXT_API_CURSORAPI_INFO
+ DWord LibEditText_GetMaxLines( int i_tinfoid );
+LIBEDITTEXT_API_CURSORAPI_INFO
const char *LibEditText_GetCursorRangeNextString( int i_tinfoid, int i_curid, DWord *pdw_len );
LIBEDITTEXT_API_CURSORAPI_INFO
const char * LibEditText_GetCursorRangeString( int i_tinfoid, int i_curid, DWord *pdw_len );
/***********************************************************************
+ GetMaxLines
+ GetCursorPosition
* GetCursorRangeString
* GetCursorRangeNextString
* GetCursorStartString
/***********************************************************************
+***********************************************************************/
+LIBEDITTEXT_API_CURSORAPI_INFO
+int
+ LibEditText_GetCursorPosition(
+ int i_tinfoid,
+ int i_curid,
+ DWord *pdw_curline,
+ DWord *pdw_curpos )
+{
+ LibEditText_TextInfo *p_tinfo;
+ LibEditText_Cursor *p_cursor;
+
+ p_tinfo = LibEditText_System_GetTextInfo( i_tinfoid );
+ if( NULL == p_tinfo ) {
+ return -0x01;
+ }
+
+ p_cursor = LibEditText_CursorInfo_GetCursor( p_tinfo, i_curid );
+ if( NULL == p_cursor ) {
+ return -0x02;
+ }
+
+ if( NULL != pdw_curline ) { *pdw_curline = p_cursor->dw_line; }
+ if( NULL != pdw_curpos ) { *pdw_curpos = p_cursor->dw_pos; }
+
+ return 0x00;
+}
+
+
+/***********************************************************************
+***********************************************************************/
+LIBEDITTEXT_API_CURSORAPI_INFO
+DWord
+ LibEditText_GetMaxLines(
+ int i_tinfoid )
+{
+ LibEditText_TextInfo *p_tinfo;
+
+ p_tinfo = LibEditText_System_GetTextInfo( i_tinfoid );
+ if( NULL == p_tinfo ) {
+ return MAXLINES;
+ }
+
+ return p_tinfo->dw_maxline;
+}
+
+
+/***********************************************************************
Implemented
***********************************************************************/
LIBEDITTEXT_API_CURSORAPI_INFO
/* TestPhase B --- CursorMove & Jump ========================*/
/* Move Up/Down/Left/Right/Start/End & Jump */
+ i_result = LibEditText_JumpCursor( i_tinfoid, i_curid, 0 );
+ CU_ASSERT( 0x00 == i_result );
+
/* TestPhase C --- Delete Data ==============================*/
/* Test 30 --- JoinLine */