edit.h
Go to the documentation of this file.00001
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef _MGUI_CTRL_EDIT_H
00030 #define _MGUI_CTRL_EDIT_H
00031
00032
00033 #ifdef __cplusplus
00034 extern "C" {
00035 #endif
00036
00054 #define CTRL_EDIT ("edit")
00055
00063 #define CTRL_SLEDIT ("sledit")
00064
00072 #define CTRL_BIDISLEDIT ("bidisledit")
00073
00081 #define CTRL_MLEDIT ("mledit")
00082
00090 #define CTRL_MEDIT ("medit")
00091
00101 #define ES_LEFT 0x00000000L
00102
00107 #define ES_CENTER 0x00000001L
00108
00113 #define ES_RIGHT 0x00000002L
00114
00119 #define ES_MULTILINE 0x00000004L
00120
00125 #define ES_UPPERCASE 0x00000008L
00126
00131 #define ES_LOWERCASE 0x00000010L
00132
00137 #define ES_PASSWORD 0x00000020L
00138
00143 #define ES_AUTOVSCROLL 0x00000040L
00144
00149 #define ES_AUTOHSCROLL 0x00000080L
00150
00155 #define ES_NOHIDESEL 0x00000100L
00156
00161 #define ES_AUTOSELECT 0x00000400L
00162
00163
00168 #define ES_READONLY 0x00000800L
00169
00174 #define ES_BASELINE 0x00001000L
00175
00180 #define ES_AUTOWRAP 0x00002000L
00181
00186 #define ES_TITLE 0x00004000L
00187
00192 #define ES_TIP 0x00008000L
00193
00220 #define EM_GETSEL 0xF0B0
00221
00249 #define EM_SETSEL 0xF0B1
00250
00255 #define EM_SETSELPOS EM_SETSEL
00256
00261 #define EM_SETSELECTION EM_SETSEL
00262
00274 #define EM_SELECTALL 0xF0B2
00275
00298 #define EM_GETSELPOS 0xF0B3
00299
00316 #define EM_INSERTCBTEXT 0xF0B4
00317
00331 #define EM_COPYTOCB 0xF0B5
00332
00346 #define EM_CUTTOCB 0xF0B6
00347
00366 #define EM_SETLFDISPCHAR 0xF0B7
00367
00385 #define EM_SETLINESEP 0xF0B8
00386
00387
00388
00389
00390
00391
00414 #define EM_GETCARETPOS 0xF0B9
00415
00438 #define EM_SETCARETPOS 0xF0BA
00439
00444 #define EM_SETINSERTION EM_SETCARETPOS
00445
00446
00447
00448
00449
00464 #define EM_GETLINECOUNT 0xF0BC
00465
00480 #define EM_GETLINEHEIGHT 0xF0BD
00481
00496 #define EM_SETLINEHEIGHT 0xF0BE
00497
00498
00499
00500
00501
00502
00508 #define EM_LINESCROLL 0xF0BF
00509
00528 #define EM_INSERTTEXT 0xF0C0
00529
00530
00536 #define EM_LINELENGTH 0xF0C1
00537
00538
00544 #define EM_REPLACESEL 0xF0C2
00545
00550 #define EM_GETMAXLIMIT 0xF0C3
00551
00552
00558 #define EM_GETLINE 0xF0C4
00559
00574 #define EM_LIMITTEXT 0xF0C5
00575
00587 #define EM_REDO 0xF0C6
00588
00589
00601 #define EM_UNDO 0xF0C7
00602
00603
00609 #define EM_FMTLINES 0xF0C8
00610
00611
00617 #define EM_LINEFROMCHAR 0xF0C9
00618
00619
00625 #define EM_SETTABSTOPS 0xF0CB
00626
00640 #define EM_SETPASSWORDCHAR 0xF0CC
00641
00642
00643 #define EM_EMPTYUNDOBUFFER 0xF0CD
00644
00645 #define EM_GETFIRSTVISIBLELINE 0xF0CE
00646
00665 #define EM_SETREADONLY 0xF0CF
00666
00680 typedef int (*ED_DRAWSEL_FUNC) (HWND, HDC, int, int, const char*, int, int);
00681
00682
00697 #define EM_SETDRAWSELECTFUNC 0xF0D0
00698
00716 #define EM_SETGETCARETWIDTHFUNC 0xF0D1
00717
00718
00719
00720
00721
00722
00737 #define EM_GETPASSWORDCHAR 0xF0D2
00738
00743 #define EM_SETLIMITTEXT EM_LIMITTEXT
00744
00749 #define ED_CARETSHAPE_LINE 0
00750
00755 #define ED_CARETSHAPE_BLOCK 1
00756
00774 #define EM_CHANGECARETSHAPE 0xF0D3
00775
00780 #define EM_REFRESHCARET 0xF0D4
00781
00799 #define EM_ENABLECARET 0xF0D5
00800
00808 #define EM_GETLIMITTEXT 0xF0D6
00809
00810
00811
00812
00813
00814
00815
00816
00817
00818
00819
00820
00821
00822
00823
00824
00825
00826
00827
00828
00829
00830
00831
00832 #define EM_SETMARGINS 0xF0D7
00833
00834
00835
00836
00837
00838
00839
00840
00841
00842
00843
00844
00845
00846
00847
00848
00849
00850
00851
00852
00853
00854
00855
00856 #define EM_GETMARGINS 0xF0D8
00857
00858
00859
00860
00861
00862
00863
00864
00865
00866
00867 #define MED_STATE_YES 0x0
00868
00869 #define MED_STATE_NOUP 0x1
00870
00871 #define MED_STATE_NODN 0x2
00872
00873 #define MED_STATE_NO 0x3
00874
00890 #define EM_SETTITLETEXT 0xF0DC
00891
00912 #define EM_GETTITLETEXT 0xF0DD
00913
00928 #define EM_SETTIPTEXT 0xF0DE
00929
00948 #define EM_GETTIPTEXT 0xF0DF
00949
00953 typedef struct _TEXTPOSINFO {
00956 int paragraph_index;
00959 int line_index;
00961 int start_pos;
00964 int copy_len;
00967 char *buff;
00968 }TEXTPOSINFO;
00969
00976 #define EM_GETNUMOFPARAGRAPHS 0xF0E0
00977
00988 #define EM_GETPARAGRAPHLENGTH 0xF0E1
00989
01009 #define EM_GETPARAGRAPHTEXT 0xF0E2
01010
01011
01012
01013
01014
01015
01016
01017
01018
01019
01020
01021 #define EM_MUSTUPDATEBKGND 0xF0E3
01022
01051 #define EM_SETCARETPOSBYLINE 0xF0D9
01052
01073 #define EM_GETCARETPOSBYLINE 0xF0DA
01074
01079 #define EM_SETSELPOSBYLINE 0xF0DB
01080
01100 #define EM_GETSELPOSBYLINE 0xF0E4
01101
01114 #define EM_GETPARAGRAPHLENGTHINMCHAR 0xF0E5
01115
01128 #define EM_GETLINELENGTHINMCHAR 0xF0E6
01129
01141 #define EM_GETLINELENGTH 0xF0E7
01142
01163 #define EM_GETLINETEXT 0xF0E8
01164
01165 #define EM_MSGMAX 0xF0EA
01166
01174 #define EN_ERRSPACE 255
01175
01183 #define EN_CLICKED 0x0001
01184
01192 #define EN_DBLCLK 0x0002
01193
01201 #define EN_SETFOCUS 0x0100
01202
01210 #define EN_KILLFOCUS 0x0200
01211
01219 #define EN_CHANGE 0x0300
01220
01232 #define EN_UPDATE 0x0400
01233
01241 #define EN_MAXTEXT 0x0501
01242
01243
01244 #define EN_HSCROLL 0x0601
01245
01246 #define EN_VSCROLL 0x0602
01247
01248
01253 #define EN_SELCHANGED 0x0603
01254
01260 #define EN_CONTCHANGED 0x0604
01261
01266 #define EN_ENTER 0x0700
01267
01270
01275 #define EC_LEFTMARGIN 0x0001
01276
01280 #define EC_RIGHTMARGIN 0x0002
01281
01285 #define EC_USEFONTINFO 0xffff
01286
01287
01292 #define EMSIS_COMPOSITIONSTRING 0x0001
01293
01294
01299 #define EIMES_GETCOMPSTRATONCE 0x0001
01300
01304 #define EIMES_CANCELCOMPSTRINFOCUS 0x0002
01305
01309 #define EIMES_COMPLETECOMPSTRKILLFOCUS 0x0004
01310
01315 #ifdef __cplusplus
01316 }
01317 #endif
01318
01319 #endif
01320