msledit.h

Go to the documentation of this file.
00001 
00019 #ifndef _MGUI_NCSCTRL_SLEDIT_H
00020 #define _MGUI_NCSCTRL_SLEDIT_H
00021 
00022 #ifdef __cplusplus
00023 extern "C" {
00024 #endif  /* __cplusplus */
00025 
00031 /*
00032  * \def NCSCTRL_SLEDIT
00033  * \brief the name of sledit control
00034 */
00035 #define NCSCTRL_SLEDIT   NCSCLASSNAME("sledit")
00036 
00037 typedef struct _mSlEdit         mSlEdit;
00038 typedef struct _mSlEditClass    mSlEditClass;
00039 typedef struct _mSlEditRenderer mSlEditRenderer;
00040 
00041 #define mSlEditHeader(Class) \
00042         mEditHeader(Class)      \
00043         DWORD   status;         \
00044         int     editPos;        \
00045         int     selStart;       \
00046         int     selEnd;         \
00047         int     nContX;         \
00048         int     nContW;         \
00049         RECT    rcVis;          \
00050         int     nVisW;          \
00051         int     startX;         \
00052         int     startY;         \
00053         int     nBlockSize;     \
00054         StrBuffer content;      \
00055         char    *tipText;       \
00056         int     hardLimit;      \
00057         int     passwdChar;     \
00058         int     changed;        \
00059         TextCopyPaste *cp;
00060 
00106 struct _mSlEdit
00107 {
00108     mSlEditHeader(mSlEdit)
00109 };
00110 
00111 #define mSlEditClassHeader(clsName, parentClass) \
00112         mEditClassHeader(clsName, parentClass) 
00113 
00120 struct _mSlEditClass
00121 {
00122     mSlEditClassHeader(mSlEdit, mEdit)
00123 };
00124 
00131 MGNCS_EXPORT extern mSlEditClass g_stmSlEditCls;
00132 
00133 #define mSlEditRendererHeader(clsName, parentClass) \
00134         mEditRendererHeader(clsName, parentClass)
00135 
00142 struct _mSlEditRenderer
00143 {
00144         mSlEditRendererHeader(mSlEdit, mEdit)
00145 };
00146 
00147 
00152 #define NCSS_SLEDIT_PASSWORD   (0x0001L<<NCSS_EDIT_SHIFT)
00153 
00158 #define NCSS_SLEDIT_AUTOSELECT (0x0002L<<NCSS_EDIT_SHIFT)
00159 
00160 /*
00161  * \def NCSS_SLEDIT_TIP
00162  * \brief Shows specified tip text.
00163  */
00164 #define NCSS_SLEDIT_TIP        (0x0004L<<NCSS_EDIT_SHIFT)
00165 
00166 #define NCSS_SLEDIT_SHIFT       (NCSS_EDIT_SHIFT+3)
00167 
00169 enum mSlEditProp 
00170 {
00171     NCSP_SLEDIT_TIPTEXT = NCSP_EDIT_MAX + 1, 
00172     NCSP_SLEDIT_PWDCHAR,                  
00173     NCSP_SLEDIT_MAX
00174 };
00175 
00177 enum mSlEditNotify
00178 {
00179     NCSN_SLEDIT_CHANGE = NCSN_EDIT_CHANGE,  
00180     NCSN_SLEDIT_ENTER = NCSN_ITEMV_ENTER,  
00181     NCSN_SLEDIT_MAX = NCSN_EDIT_MAX + 1,
00182 };
00183 
00184 #define NCST_SLEDIT_FOCUSED     0x00000001L
00185 #define NCST_SLEDIT_MODIFY      0x00000002L
00186 #define NCST_SLEDIT_TMP         0x00000004L
00187 #define NCST_SLEDIT_REPLACE     0x00000008L
00188 
00191 #ifdef __cplusplus
00192 }
00193 #endif  /* __cplusplus */
00194 
00195 #endif /* _MGUI_NCSCTRL_SLEDIT_H */
Generated on Fri Jun 10 11:18:06 2011 for New Control Set V1.0.0 API Reference by  doxygen 1.6.3