edit.h

Go to the documentation of this file.
00001 
00019 /*
00020  * $Id: edit.h 13516 2010-09-29 07:52:02Z humingming $
00021  *
00022  *             MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks, 
00023  *                     pSOS, ThreadX, NuCleus, OSE, and Win32.
00024  *
00025  *             Copyright (C) 2002-2008 Feynman Software.
00026  *             Copyright (C) 1999-2002 Wei Yongming.
00027  */
00028 
00029 #ifndef _MGUI_CTRL_EDIT_H
00030 #define _MGUI_CTRL_EDIT_H
00031  
00032 
00033 #ifdef __cplusplus
00034 extern "C" {
00035 #endif  /* __cplusplus */
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 //#define ES_OEMCONVERT       0x00000400L
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 /* #define EM_GETRECT              0xF0B2 */
00388 /* #define EM_SETRECT              0xF0B3 */
00389 /* #define EM_SETRECTNP            0xF0B4 */
00390 /* #define EM_SCROLL               0xF0B5 */
00391 
00414 #define EM_GETCARETPOS          0xF0B9
00415 
00438 #define EM_SETCARETPOS          0xF0BA
00439 
00444 #define EM_SETINSERTION         EM_SETCARETPOS
00445 
00446 /* #define EM_SCROLLCARET          0xF0B9 */
00447 /* #define EM_GETMODIFY            0xF0BA */
00448 /* #define EM_SETMODIFY            0xF0BB */
00449 
00464 #define EM_GETLINECOUNT         0xF0BC
00465 
00480 #define EM_GETLINEHEIGHT        0xF0BD
00481 
00496 #define EM_SETLINEHEIGHT        0xF0BE
00497 
00498 
00499 /*#define EM_LINEINDEX            0xF0BD */
00500 /*#define EM_GETTHUMB             0xF0BE */
00501 
00502 /* internal used now */
00508 #define EM_LINESCROLL           0xF0BF
00509  
00528 #define EM_INSERTTEXT           0xF0C0
00529 
00530 /* Not use */
00536 #define EM_LINELENGTH           0xF0C1
00537 
00538 /* Not use */
00544 #define EM_REPLACESEL           0xF0C2
00545 
00550 #define EM_GETMAXLIMIT            0xF0C3
00551 
00552 /* Not use */
00558 #define EM_GETLINE              0xF0C4
00559 
00574 #define EM_LIMITTEXT            0xF0C5
00575 
00587 #define EM_REDO                 0xF0C6
00588 /*#define EM_CANUNDO              0xF0C6 */
00589  
00601 #define EM_UNDO                 0xF0C7
00602 
00603 /* Not use */
00609 #define EM_FMTLINES             0xF0C8
00610 
00611 /* Not use */
00617 #define EM_LINEFROMCHAR         0xF0C9
00618 
00619 /* Not use */
00625 #define EM_SETTABSTOPS          0xF0CB
00626 
00640 #define EM_SETPASSWORDCHAR      0xF0CC
00641 
00642 /* Not use */
00643 #define EM_EMPTYUNDOBUFFER      0xF0CD
00644 /* Not use */
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 #define EM_SETWORDBREAKPROC     0xF0D0
00720 #define EM_GETWORDBREAKPROC     0xF0D1
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  * \def EM_SETMARGINS
00812  * \brief Set the margins of edit control
00813  * 
00814  * \code
00815  * EM_SETMARGINS
00816  *
00817  * const RECT *prcMargins
00818  *
00819  * lParam = (LPARAM)prcMargins
00820  * \endcode
00821  * 
00822  * \param prcMargins : the margins info:
00823  *    - top : the top margin value
00824  *    - left: the left margin value
00825  *    - right: the right margin value
00826  *    - bottom: the bottom margin value
00827  *
00828  * \return ignored
00829  *
00830  * \sa EM_GETMARGINS
00831  */
00832 #define EM_SETMARGINS           0xF0D7
00833 
00834 /*
00835  * \def EM_GETMARGINS
00836  * \brief Get the margins of content
00837  *
00838  * \code
00839  * EM_GETMARGINS
00840  *
00841  * RECT *prcMargins
00842  *
00843  * lParam = (LPARAM)prcMargins
00844  * \endcode
00845  * 
00846  * \param prcMargins : the margins info:
00847  *    - top : the top margin value
00848  *    - left: the left margin value
00849  *    - right: the right margin value
00850  *    - bottom: the bottom margin value
00851  *
00852  * \return TRUE / FALSE
00853  *
00854  * \sa EM_SETMARGINS
00855  */
00856 #define EM_GETMARGINS           0xF0D8
00857 /*
00858 #define EM_POSFROMCHAR          0xF0D9
00859 #define EM_CHARFROMPOS          0xF0DA
00860 #define EM_SETIMESTATUS         0xF0DB
00861 #define EM_GETIMESTATUS         0xF0DC
00862 
00863 #define MEM_SCROLLCHANGE        0xF0DD
00864 */
00865 
00866 /* Not use */
00867 #define MED_STATE_YES           0x0
00868 /* Not use */
00869 #define MED_STATE_NOUP          0x1
00870 /* Not use */
00871 #define MED_STATE_NODN          0x2
00872 /* Not use */
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  * \def EM_MUSTUPDATEBKGND
01013  * \brief Test if the bkgournd must be update
01014  *
01015  * \return BOOL. TRUE -- must update the bkground, texteditor would not use ScrollWindow
01016  *  FALSE -- bkground does not need to update, textditor use Scrollwindow
01017  *
01018  *  if you want paint a image on bkground, please make this message return TRUE
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 /* Not use */
01244 #define EN_HSCROLL          0x0601
01245 /* Not use */
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 /* Edit control EM_SETMARGIN parameters */
01275 #define EC_LEFTMARGIN       0x0001
01276 
01280 #define EC_RIGHTMARGIN      0x0002
01281 
01285 #define EC_USEFONTINFO      0xffff
01286 
01287 /* wParam of EM_GET/SETIMESTATUS  */
01292 #define EMSIS_COMPOSITIONSTRING        0x0001
01293 
01294 /* lParam for EMSIS_COMPOSITIONSTRING  */
01299 #define EIMES_GETCOMPSTRATONCE         0x0001
01300 
01304 #define EIMES_CANCELCOMPSTRINFOCUS     0x0002
01305 
01309 #define EIMES_COMPLETECOMPSTRKILLFOCUS 0x0004
01310 
01315 #ifdef __cplusplus
01316 }
01317 #endif  /* __cplusplus */
01318 
01319 #endif /* _MGUI_CTRL_EDIT_H */
01320 
Generated on Thu Apr 7 16:01:40 2011 for MiniGUI V3.0.12 API Reference by  doxygen 1.6.3