MiniGUI API Reference (MiniGUI-Processes)  v5.0.6
A mature and proven cross-platform GUI system for embedded and smart IoT devices
Data Structures | Macros | Typedefs
Messages of edit control

Data Structures

struct  _TEXTPOSINFO
 

Macros

#define EM_GETSEL   0xF0B0
 Get the selected string in the edit control. More...
 
#define EM_SETSEL   0xF0B1
 Set the selected point in the edit control and makes the text between insertion point and selection point selected. More...
 
#define EM_SETSELPOS   EM_SETSEL
 
#define EM_SETSELECTION   EM_SETSEL
 
#define EM_SELECTALL   0xF0B2
 Selects all the texts, the same meaning as ctrl+a. More...
 
#define EM_GETSELPOS   0xF0B3
 Get the position of the selection point. More...
 
#define EM_INSERTCBTEXT   0xF0B4
 Inserts the text in the clipboard to the current caret position. More...
 
#define EM_COPYTOCB   0xF0B5
 Copies the currently selected text to the clipboard. More...
 
#define EM_CUTTOCB   0xF0B6
 Cuts the currently selected text to the clipboard. More...
 
#define EM_SETLFDISPCHAR   0xF0B7
 Set the char used to represent the line seperator. More...
 
#define EM_SETLINESEP   0xF0B8
 Set the line seperator. More...
 
#define EM_GETCARETPOS   0xF0B9
 Get the position of the caret. More...
 
#define EM_SETCARETPOS   0xF0BA
 Set the position of the caret. More...
 
#define EM_SETINSERTION   EM_SETCARETPOS
 
#define EM_GETLINECOUNT   0xF0BC
 Get the line number. More...
 
#define EM_GETLINEHEIGHT   0xF0BD
 Get the height of a line. More...
 
#define EM_SETLINEHEIGHT   0xF0BE
 Set the height of a line. More...
 
#define EM_LINESCROLL   0xF0BF
 reserved. More...
 
#define EM_INSERTTEXT   0xF0C0
 Inserts the specified text to the current caret position. More...
 
#define EM_LINELENGTH   0xF0C1
 reserved. More...
 
#define EM_REPLACESEL   0xF0C2
 reserved. More...
 
#define EM_GETMAXLIMIT   0xF0C3
 Get text limit of a single-line edit control. More...
 
#define EM_GETLINE   0xF0C4
 reserved. More...
 
#define EM_LIMITTEXT   0xF0C5
 Set text limit of an edit control. More...
 
#define EM_REDO   0xF0C6
 Redo operation. More...
 
#define EM_UNDO   0xF0C7
 Undo operation. More...
 
#define EM_FMTLINES   0xF0C8
 reserved. More...
 
#define EM_LINEFROMCHAR   0xF0C9
 reserved. More...
 
#define EM_SETTABSTOPS   0xF0CB
 reserved. More...
 
#define EM_SETPASSWORDCHAR   0xF0CC
 Defines the character that edit control uses in conjunction with the ES_PASSWORD style. More...
 
#define EM_SETREADONLY   0xF0CF
 Set or removes the read-only style (ES_READONLY) in an edit control. More...
 
#define EM_SETDRAWSELECTFUNC   0xF0D0
 Set the callback function on drawing selected chars. More...
 
#define EM_SETGETCARETWIDTHFUNC   0xF0D1
 Set the callback function on getting caret width. More...
 
#define EM_GETPASSWORDCHAR   0xF0D2
 Returns the character that edit controls uses in conjunction with the ES_PASSWORD style. More...
 
#define EM_SETLIMITTEXT   EM_LIMITTEXT
 
#define ED_CARETSHAPE_LINE   0
 Line-shaped caret. More...
 
#define ED_CARETSHAPE_BLOCK   1
 Block-shaped caret. More...
 
#define EM_CHANGECARETSHAPE   0xF0D3
 Changes the shape of the caret. More...
 
#define EM_REFRESHCARET   0xF0D4
 Refresh caret of the edit control. More...
 
#define EM_ENABLECARET   0xF0D5
 To enable or disable the input caret. More...
 
#define EM_GETLIMITTEXT   0xF0D6
 Get text limit value of the edit control. More...
 
#define EM_SETTITLETEXT   0xF0DC
 Set the title text displayed before content text. More...
 
#define EM_GETTITLETEXT   0xF0DD
 Get the title text displayed before content text. More...
 
#define EM_SETTIPTEXT   0xF0DE
 Set the tip text displayed when content is empty. More...
 
#define EM_GETTIPTEXT   0xF0DF
 Get the tip text displayed when content is empty. More...
 
#define EM_GETNUMOFPARAGRAPHS   0xF0E0
 Get the number of paragraphs in textedit control. More...
 
#define EM_GETPARAGRAPHLENGTH   0xF0E1
 Get the specified paragraph length in textedit control. More...
 
#define EM_GETPARAGRAPHTEXT   0xF0E2
 Get the specified paragraph text from textedit control. More...
 
#define EM_SETCARETPOSBYLINE   0xF0D9
 Set the selected point in the edit control and makes the text between insertion point and selection point selected. This is set by really line. That means if you set the TES_AUTOWRAP, the line number you set, the caret pos line number you see. This is different from EM_SETCARETPOS. More...
 
#define EM_GETCARETPOSBYLINE   0xF0DA
 Get the position of the caret. More...
 
#define EM_SETSELPOSBYLINE   0xF0DB
 
#define EM_GETSELPOSBYLINE   0xF0E4
 Get the position of the selection point. More...
 
#define EM_GETPARAGRAPHLENGTHINMCHAR   0xF0E5
 Get the specified paragraph length in textedit control. in text not charactors. More...
 
#define EM_GETLINELENGTHINMCHAR   0xF0E6
 Get the specified line length in textedit control. in charactors not byte. More...
 
#define EM_GETLINELENGTH   0xF0E7
 Get the specified line length in textedit control. More...
 
#define EM_GETLINETEXT   0xF0E8
 Get the specified line text from textedit control. More...
 

Typedefs

typedef int(* ED_DRAWSEL_FUNC) (HWND, HDC, int, int, const char *, int, int)
 Type of the edit control callback function on drawing selected strings. More...
 
typedef struct _TEXTPOSINFO TEXTPOSINFO
 

Detailed Description

Macro Definition Documentation

◆ ED_CARETSHAPE_BLOCK

#define ED_CARETSHAPE_BLOCK   1

Block-shaped caret.

Definition at line 787 of file edit.h.

◆ ED_CARETSHAPE_LINE

#define ED_CARETSHAPE_LINE   0

Line-shaped caret.

Definition at line 781 of file edit.h.

◆ EM_CHANGECARETSHAPE

#define EM_CHANGECARETSHAPE   0xF0D3

Changes the shape of the caret.

int caret_shape;
wParam = (WPARAM)caret_shape;
lParam = 0;
Parameters
caret_shapeShape index of the caret, can be ED_CARETSHAPE_LINE or ED_CARETSHAPE_BLOCK.
Returns
The old create shape

Definition at line 806 of file edit.h.

◆ EM_COPYTOCB

#define EM_COPYTOCB   0xF0B5

Copies the currently selected text to the clipboard.

wParam = 0;
lParam = 0
Returns
Length of the text which is really copied to clipboard.

Definition at line 364 of file edit.h.

◆ EM_CUTTOCB

#define EM_CUTTOCB   0xF0B6

Cuts the currently selected text to the clipboard.

wParam = 0;
lParam = 0
Returns
Length of the text which is really copied to clipboard.

Definition at line 379 of file edit.h.

◆ EM_ENABLECARET

#define EM_ENABLECARET   0xF0D5

To enable or disable the input caret.

BOOL bEnable;
wParam = (WPARAM)bEnable;
lParam = 0;
Parameters
bEnableTRUE to enable caret.
Returns
The previous caret enabled status.

Definition at line 831 of file edit.h.

◆ EM_FMTLINES

#define EM_FMTLINES   0xF0C8

reserved.

Definition at line 642 of file edit.h.

◆ EM_GETCARETPOS

#define EM_GETCARETPOS   0xF0B9

Get the position of the caret.

int* line_pos;
int* char_pos;
wParam = (WPARAM)line_pos;
lParam = (LPARAM)char_pos;
Parameters
line_posPointer to a integer buffer to save the caret line position. For single line editor, it is always zero. Note : Here "line" means a text string ended with a line seperator, not a single text line in wrap mode. So, char_pos means the character position in a text string.
char_posPointer to a integer buffer to save the caret character position.
Returns
The string length of the text from the beginning to the caret pos.

Definition at line 447 of file edit.h.

◆ EM_GETCARETPOSBYLINE

#define EM_GETCARETPOSBYLINE   0xF0DA

Get the position of the caret.

int* line_pos;
int* char_pos;
wParam = (WPARAM)line_pos;
lParam = (LPARAM)char_pos;
Parameters
line_posPointer to a integer buffer to save the caret line position. For single line editor, it is always zero.
char_posPointer to a integer buffer to save the caret character position.
Returns
The string length of the text from the beginning to the caret pos.

Definition at line 1105 of file edit.h.

◆ EM_GETLIMITTEXT

#define EM_GETLIMITTEXT   0xF0D6

Get text limit value of the edit control.

Returns
-1 when user doesn't set limit value, otherwise return current limit value.

Definition at line 840 of file edit.h.

◆ EM_GETLINE

#define EM_GETLINE   0xF0C4

reserved.

Definition at line 591 of file edit.h.

◆ EM_GETLINECOUNT

#define EM_GETLINECOUNT   0xF0BC

Get the line number.

wParam = 0;
lParam = 0;
Returns
Line number on success, otherwise -1.
Note
Implemented for TextEdit control.

Definition at line 497 of file edit.h.

◆ EM_GETLINEHEIGHT

#define EM_GETLINEHEIGHT   0xF0BD

Get the height of a line.

wParam = 0;
lParam = 0;
Returns
Height value.
Note
Implemented for TextEdit control.

Definition at line 513 of file edit.h.

◆ EM_GETLINELENGTH

#define EM_GETLINELENGTH   0xF0E7

Get the specified line length in textedit control.

wParam = (WPARAM) index;
Returns
The length of text.

Definition at line 1173 of file edit.h.

◆ EM_GETLINELENGTHINMCHAR

#define EM_GETLINELENGTHINMCHAR   0xF0E6

Get the specified line length in textedit control. in charactors not byte.

wParam = (WPARAM) index;
Returns
The length of text.

Definition at line 1160 of file edit.h.

◆ EM_GETLINETEXT

#define EM_GETLINETEXT   0xF0E8

Get the specified line text from textedit control.

const char buffer[BUF_SIZE];
info.start_pos = 0;
info.copy_len = BUF_SIZE;
info.buff = buffer;
info.line_index = -1;
wParam = (WPARAM)&info;
Returns
The copied length of text which doesn't include terminate character 0x0.

Definition at line 1195 of file edit.h.

◆ EM_GETMAXLIMIT

#define EM_GETMAXLIMIT   0xF0C3

Get text limit of a single-line edit control.

Definition at line 583 of file edit.h.

◆ EM_GETNUMOFPARAGRAPHS

#define EM_GETNUMOFPARAGRAPHS   0xF0E0

Get the number of paragraphs in textedit control.

Returns
The number of paragraphs.

Definition at line 1008 of file edit.h.

◆ EM_GETPARAGRAPHLENGTH

#define EM_GETPARAGRAPHLENGTH   0xF0E1

Get the specified paragraph length in textedit control.

wParam = (WPARAM) index;
Returns
The length of text.

Definition at line 1020 of file edit.h.

◆ EM_GETPARAGRAPHLENGTHINMCHAR

#define EM_GETPARAGRAPHLENGTHINMCHAR   0xF0E5

Get the specified paragraph length in textedit control. in text not charactors.

EM_GETPARAGRAPHLENGTHINCHAR
wParam = (WPARAM) index;
Returns
The length of text.

Definition at line 1146 of file edit.h.

◆ EM_GETPARAGRAPHTEXT

#define EM_GETPARAGRAPHTEXT   0xF0E2

Get the specified paragraph text from textedit control.

const char buffer[BUF_SIZE];
info.start_pos = 0;
info.copy_len = BUF_SIZE;
info.buff = buffer;
info.paragraph_index = -1;
wParam = (WPARAM)&info;
Returns
The copied length of text which doesn't include terminate character 0x0.

Definition at line 1041 of file edit.h.

◆ EM_GETPASSWORDCHAR

#define EM_GETPASSWORDCHAR   0xF0D2

Returns the character that edit controls uses in conjunction with the ES_PASSWORD style.

wParam = 0;
lParam = 0;
Returns
The currently used password character

Definition at line 769 of file edit.h.

◆ EM_GETSEL

#define EM_GETSEL   0xF0B0

Get the selected string in the edit control.

char *buffer;
int len;
wParam = (WPARAM)len;
lParam = (LPARAM)buffer;
Parameters
lenLength of buffer.
bufferPointer to the string buffer
Returns
Length of the selected string

Definition at line 253 of file edit.h.

◆ EM_GETSELPOS

#define EM_GETSELPOS   0xF0B3

Get the position of the selection point.

int* line_pos;
int* char_pos;
wParam = (WPARAM)line_pos;
lParam = (LPARAM)char_pos;
Parameters
line_posPointer to a integer buffer to save the selection line position. For single line editor, it is always zero. Note : Here "line" means a text string ended with a line seperator, not a single text line in wrap mode. So, char_pos means the character position in a text string.
char_posPointer to a integer buffer to save the selection character position.
Returns
The string length of the text from the beginning to the selection point.

Definition at line 331 of file edit.h.

◆ EM_GETSELPOSBYLINE

#define EM_GETSELPOSBYLINE   0xF0E4

Get the position of the selection point.

int* line_pos;
int* char_pos;
wParam = (WPARAM)line_pos;
lParam = (LPARAM)char_pos;
Parameters
line_posPointer to a integer buffer to save the selection line position. For single line editor, it is always zero.
char_posPointer to a integer buffer to save the selection character position.
Returns
The string length of the text from the beginning to the selection point.

Definition at line 1132 of file edit.h.

◆ EM_GETTIPTEXT

#define EM_GETTIPTEXT   0xF0DF

Get the tip text displayed when content is empty.

const char *buffer;
int len;
wParam = (WPARAM)len;
lParam = (LPARAM)buffer;
Parameters
lenShould be length of buffer minus 1, left space for '\0'
bufferString buffer
Returns
Length of tip text

Definition at line 980 of file edit.h.

◆ EM_GETTITLETEXT

#define EM_GETTITLETEXT   0xF0DD

Get the title text displayed before content text.

const char *buffer;
int len;
wParam = (WPARAM)len;
lParam = (LPARAM)buffer;
Parameters
lenShould be length of buffer minus 1, left space for '\0'
bufferString buffer
Returns
Length of title
Note
Implemented for TextEdit control.

Definition at line 944 of file edit.h.

◆ EM_INSERTCBTEXT

#define EM_INSERTCBTEXT   0xF0B4

Inserts the text in the clipboard to the current caret position.

int len;
const char *string;
wParam = (WPARAM)len;
lParam = (LPARAM)string;
Parameters
lenLength of string
stringPointer to the text string

Definition at line 349 of file edit.h.

◆ EM_INSERTTEXT

#define EM_INSERTTEXT   0xF0C0

Inserts the specified text to the current caret position.

Normally used to input a long string.

int len;
const char *string;
wParam = (WPARAM)len;
lParam = (LPARAM)string;
Parameters
lenLength of string
stringPointer to the text string

Definition at line 561 of file edit.h.

◆ EM_LIMITTEXT

#define EM_LIMITTEXT   0xF0C5

Set text limit of an edit control.

int newLimit;
wParam = (WPARAM)newLimit;
lParam = 0;
Parameters
newLimitThe new text limit of an edit control, by character.

Definition at line 607 of file edit.h.

◆ EM_LINEFROMCHAR

#define EM_LINEFROMCHAR   0xF0C9

reserved.

Definition at line 650 of file edit.h.

◆ EM_LINELENGTH

#define EM_LINELENGTH   0xF0C1

reserved.

Definition at line 569 of file edit.h.

◆ EM_LINESCROLL

#define EM_LINESCROLL   0xF0BF

reserved.

Definition at line 541 of file edit.h.

◆ EM_REDO

#define EM_REDO   0xF0C6

Redo operation.

wParam = 0;
lParam = 0;

Definition at line 620 of file edit.h.

◆ EM_REFRESHCARET

#define EM_REFRESHCARET   0xF0D4

Refresh caret of the edit control.

Definition at line 812 of file edit.h.

◆ EM_REPLACESEL

#define EM_REPLACESEL   0xF0C2

reserved.

Definition at line 577 of file edit.h.

◆ EM_SELECTALL

#define EM_SELECTALL   0xF0B2

Selects all the texts, the same meaning as ctrl+a.

wParam = 0;
lParam = 0;

Definition at line 307 of file edit.h.

◆ EM_SETCARETPOS

#define EM_SETCARETPOS   0xF0BA

Set the position of the caret.

int line_pos;
int char_pos;
wParam = (WPARAM)line_pos;
lParam = (LPARAM)char_pos;
Parameters
line_posThe new caret line position. For single line editor, it will be ignored. Note : Here "line" means a text string ended with a line seperator, not a single text line in wrap mode. So, char_pos means the character position in a text string.
char_posThe new caret character position.
Returns
Length of the string from the beginning to the caret position on success, otherwise -1.

Definition at line 471 of file edit.h.

◆ EM_SETCARETPOSBYLINE

#define EM_SETCARETPOSBYLINE   0xF0D9

Set the selected point in the edit control and makes the text between insertion point and selection point selected. This is set by really line. That means if you set the TES_AUTOWRAP, the line number you set, the caret pos line number you see. This is different from EM_SETCARETPOS.

int line_pos;
int char_pos;
wParam = (WPARAM)line_pos;
lParam = (LPARAM)char_pos;
Parameters
line_posLine position of the selection point. For single line editor, it is always zero. Note : For multi-line editor, "line" means a text string ended with a line seperator, in wrap mode there also is the really line number. So, char_pos means the character position in a text string.
char_posCharacter(wide character) position of the selection point.
Returns
Length of the selected string

Definition at line 1083 of file edit.h.

◆ EM_SETDRAWSELECTFUNC

#define EM_SETDRAWSELECTFUNC   0xF0D0

Set the callback function on drawing selected chars.

wParam = 0;
lParam = (LPARAM)drawsel;
Parameters
drawselThe callback function used to draw selected strings.

Definition at line 729 of file edit.h.

◆ EM_SETGETCARETWIDTHFUNC

#define EM_SETGETCARETWIDTHFUNC   0xF0D1

Set the callback function on getting caret width.

int (*get_caret_width) (HWND, int);
wParam = 0;
lParam = (LPARAM)get_caret_width;
Parameters
get_caret_widthThe callback function used to get caret width. The window handle and the maximum caret width are passed as arguments.
Returns
The desired caret width.

Definition at line 748 of file edit.h.

◆ EM_SETINSERTION

#define EM_SETINSERTION   EM_SETCARETPOS
See also
EM_SETCARETPOS

Definition at line 477 of file edit.h.

◆ EM_SETLFDISPCHAR

#define EM_SETLFDISPCHAR   0xF0B7

Set the char used to represent the line seperator.

In default case, the line sperator will not be shown. If the char used to represent the line seperator is not zero, this char will be shown in place of line seperator.

unsigned char ch;
wParam = 0;
lParam = ch;
Parameters
chThe char used to represent the line seperator

Definition at line 399 of file edit.h.

◆ EM_SETLIMITTEXT

#define EM_SETLIMITTEXT   EM_LIMITTEXT
See also
EM_LIMITTEXT

Definition at line 775 of file edit.h.

◆ EM_SETLINEHEIGHT

#define EM_SETLINEHEIGHT   0xF0BE

Set the height of a line.

wParam = (WPARAM)height;
lParam = 0;
Returns
The old height value.
Note
Implemented for TextEdit control.

Definition at line 529 of file edit.h.

◆ EM_SETLINESEP

#define EM_SETLINESEP   0xF0B8

Set the line seperator.

In default case, the line sperator is Line Feed characters(LF , ASCII 10, '
').

unsigned char ch;
wParam = 0;
lParam = ch;
Parameters
chThe new line seperator

Definition at line 418 of file edit.h.

◆ EM_SETPASSWORDCHAR

#define EM_SETPASSWORDCHAR   0xF0CC

Defines the character that edit control uses in conjunction with the ES_PASSWORD style.

char passwdChar;
wParam = (WPARAM)passwdChar;
lParam = 0;

Definition at line 673 of file edit.h.

◆ EM_SETREADONLY

#define EM_SETREADONLY   0xF0CF

Set or removes the read-only style (ES_READONLY) in an edit control.

int readonly;
wParam = (WPARAM)readonly;
lParam = 0;
Parameters
readonlyIndicates whether the edit control is read-only:
  • Zero
    Not read-only.
  • Non zero
    Read-only.

Definition at line 698 of file edit.h.

◆ EM_SETSEL

#define EM_SETSEL   0xF0B1

Set the selected point in the edit control and makes the text between insertion point and selection point selected.

Generally, you should send EM_SETCARETPOS first to set insertion point before you use EM_SETSEL to select text.

int line_pos;
int char_pos;
wParam = (WPARAM)line_pos;
lParam = (LPARAM)char_pos;
Parameters
line_posLine position of the selection point. For single line editor, it is always zero. Note : For multi-line editor, "line" means a text string ended with a line seperator, not a single text line in wrap mode. So, char_pos means the character position in a text string.
char_posCharacter(wide character) position of the selection point.
Returns
Length of the selected string

Definition at line 282 of file edit.h.

◆ EM_SETSELECTION

#define EM_SETSELECTION   EM_SETSEL
See also
EM_SETSEL

Definition at line 294 of file edit.h.

◆ EM_SETSELPOS

#define EM_SETSELPOS   EM_SETSEL
See also
EM_SETSEL

Definition at line 288 of file edit.h.

◆ EM_SETSELPOSBYLINE

#define EM_SETSELPOSBYLINE   0xF0DB
See also
EM_SETSELBYLINE

Definition at line 1111 of file edit.h.

◆ EM_SETTABSTOPS

#define EM_SETTABSTOPS   0xF0CB

reserved.

Definition at line 658 of file edit.h.

◆ EM_SETTIPTEXT

#define EM_SETTIPTEXT   0xF0DE

Set the tip text displayed when content is empty.

const char *buffer;
int len;
wParam = (WPARAM)len;
lParam = (LPARAM)buffer;

Definition at line 960 of file edit.h.

◆ EM_SETTITLETEXT

#define EM_SETTITLETEXT   0xF0DC

Set the title text displayed before content text.

const char *title;
int len;
wParam = (WPARAM)len;
lParam = (LPARAM)title;
Note
Implemented for TextEdit control.

Definition at line 922 of file edit.h.

◆ EM_UNDO

#define EM_UNDO   0xF0C7

Undo operation.

wParam = 0;
lParam = 0;

Definition at line 634 of file edit.h.

Typedef Documentation

◆ ED_DRAWSEL_FUNC

typedef int(* ED_DRAWSEL_FUNC) (HWND, HDC, int, int, const char *, int, int)

Type of the edit control callback function on drawing selected strings.

Parameters
hWndHandle of the edit control.
startxx value of the beginning drawing position.
startyy value of the beginning drawing position.
contentThe string which will be drawed.
lenLength of the string which should be drawed by this callback.
seloutLength of the selected string that have been drawed before calling this callback function.
Returns
Width of the outputed strings.

Definition at line 712 of file edit.h.

◆ TEXTPOSINFO

typedef struct _TEXTPOSINFO TEXTPOSINFO

Structure defines text position information.

EM_GETLINECOUNT
#define EM_GETLINECOUNT
Get the line number.
Definition: edit.h:497
_TEXTPOSINFO::buff
char * buff
Definition: edit.h:999
EM_SETCARETPOS
#define EM_SETCARETPOS
Set the position of the caret.
Definition: edit.h:471
EM_COPYTOCB
#define EM_COPYTOCB
Copies the currently selected text to the clipboard.
Definition: edit.h:364
HWND
GHANDLE HWND
Handle to main window or control.
Definition: common.h:407
EM_CUTTOCB
#define EM_CUTTOCB
Cuts the currently selected text to the clipboard.
Definition: edit.h:379
EM_SETLFDISPCHAR
#define EM_SETLFDISPCHAR
Set the char used to represent the line seperator.
Definition: edit.h:399
EM_ENABLECARET
#define EM_ENABLECARET
To enable or disable the input caret.
Definition: edit.h:831
EM_SETLINEHEIGHT
#define EM_SETLINEHEIGHT
Set the height of a line.
Definition: edit.h:529
EM_GETLINELENGTH
#define EM_GETLINELENGTH
Get the specified line length in textedit control.
Definition: edit.h:1173
WPARAM
UINT_PTR WPARAM
A type definition for the first message paramter.
Definition: common.h:706
EM_GETLINEHEIGHT
#define EM_GETLINEHEIGHT
Get the height of a line.
Definition: edit.h:513
EM_GETLINETEXT
#define EM_GETLINETEXT
Get the specified line text from textedit control.
Definition: edit.h:1195
EM_GETTITLETEXT
#define EM_GETTITLETEXT
Get the title text displayed before content text.
Definition: edit.h:944
EM_SETGETCARETWIDTHFUNC
#define EM_SETGETCARETWIDTHFUNC
Set the callback function on getting caret width.
Definition: edit.h:748
_TEXTPOSINFO::paragraph_index
int paragraph_index
Definition: edit.h:988
EM_INSERTTEXT
#define EM_INSERTTEXT
Inserts the specified text to the current caret position.
Definition: edit.h:561
EM_GETCARETPOS
#define EM_GETCARETPOS
Get the position of the caret.
Definition: edit.h:447
EM_GETTIPTEXT
#define EM_GETTIPTEXT
Get the tip text displayed when content is empty.
Definition: edit.h:980
EM_SETDRAWSELECTFUNC
#define EM_SETDRAWSELECTFUNC
Set the callback function on drawing selected chars.
Definition: edit.h:729
BOOL
int BOOL
A type definition for boolean value.
Definition: common.h:343
EM_GETPARAGRAPHLENGTH
#define EM_GETPARAGRAPHLENGTH
Get the specified paragraph length in textedit control.
Definition: edit.h:1020
EM_SETTIPTEXT
#define EM_SETTIPTEXT
Set the tip text displayed when content is empty.
Definition: edit.h:960
EM_LIMITTEXT
#define EM_LIMITTEXT
Set text limit of an edit control.
Definition: edit.h:607
EM_GETPARAGRAPHTEXT
#define EM_GETPARAGRAPHTEXT
Get the specified paragraph text from textedit control.
Definition: edit.h:1041
_TEXTPOSINFO::copy_len
int copy_len
Definition: edit.h:996
EM_SETSEL
#define EM_SETSEL
Set the selected point in the edit control and makes the text between insertion point and selection p...
Definition: edit.h:282
EM_GETSEL
#define EM_GETSEL
Get the selected string in the edit control.
Definition: edit.h:253
EM_INSERTCBTEXT
#define EM_INSERTCBTEXT
Inserts the text in the clipboard to the current caret position.
Definition: edit.h:349
EM_SETPASSWORDCHAR
#define EM_SETPASSWORDCHAR
Defines the character that edit control uses in conjunction with the ES_PASSWORD style.
Definition: edit.h:673
_TEXTPOSINFO
Definition: edit.h:985
ED_DRAWSEL_FUNC
int(* ED_DRAWSEL_FUNC)(HWND, HDC, int, int, const char *, int, int)
Type of the edit control callback function on drawing selected strings.
Definition: edit.h:712
EM_GETSELPOSBYLINE
#define EM_GETSELPOSBYLINE
Get the position of the selection point.
Definition: edit.h:1132
EM_CHANGECARETSHAPE
#define EM_CHANGECARETSHAPE
Changes the shape of the caret.
Definition: edit.h:806
EM_GETCARETPOSBYLINE
#define EM_GETCARETPOSBYLINE
Get the position of the caret.
Definition: edit.h:1105
EM_GETPASSWORDCHAR
#define EM_GETPASSWORDCHAR
Returns the character that edit controls uses in conjunction with the ES_PASSWORD style.
Definition: edit.h:769
EM_GETLINELENGTHINMCHAR
#define EM_GETLINELENGTHINMCHAR
Get the specified line length in textedit control. in charactors not byte.
Definition: edit.h:1160
_TEXTPOSINFO::start_pos
int start_pos
Definition: edit.h:993
EM_SETREADONLY
#define EM_SETREADONLY
Set or removes the read-only style (ES_READONLY) in an edit control.
Definition: edit.h:698
EM_SETTITLETEXT
#define EM_SETTITLETEXT
Set the title text displayed before content text.
Definition: edit.h:922
LPARAM
UINT_PTR LPARAM
A type definition for the second message paramter.
Definition: common.h:712
EM_SETLINESEP
#define EM_SETLINESEP
Set the line seperator.
Definition: edit.h:418
EM_SELECTALL
#define EM_SELECTALL
Selects all the texts, the same meaning as ctrl+a.
Definition: edit.h:307
_TEXTPOSINFO::line_index
int line_index
Definition: edit.h:991
EM_SETCARETPOSBYLINE
#define EM_SETCARETPOSBYLINE
Set the selected point in the edit control and makes the text between insertion point and selection p...
Definition: edit.h:1083
EM_GETSELPOS
#define EM_GETSELPOS
Get the position of the selection point.
Definition: edit.h:331