simedit.h

来自「在ADS环境下MiniGUI的源码」· C头文件 代码 · 共 56 行

H
56
字号
/*
** $Id: simedit.h,v 1.7 2004/07/22 09:38:11 snig Exp $
**
** simedit.h: the head file of Simple Edit Control module.
**
** Copyright (C) 2003, Feynman Software.
** Copyright (C) 1999~2002, Wei Yongming.
**
** Create date: 1999/8/26
*/

#ifndef GUI_SIMEDIT_H_
#define GUI_SIMEDIT_H_

#ifdef  __cplusplus
extern  "C" {
#endif

#define LEN_SIMEDIT_BUFFER       512

typedef struct tagSIMEDITDATA
{
    DWORD   status;         // status of box

    int     bufferLen;      // length of buffer
    char*   buffer;         // buffer

    int     dataEnd;        // data end position
    int     editPos;        // current edit position
    int     caretOff;       // caret offset in box
    int     startPos;       // start display position
    
    int     charWidth;      // width of a character
    
    char    passwdChar;     // password character
    
    int     leftMargin;     // left margin
    int     topMargin;      // top margin
    int     rightMargin;    // right margin
    int     bottomMargin;   // bottom margin
    
    int     hardLimit;      // hard limit

} SIMEDITDATA;
typedef SIMEDITDATA* PSIMEDITDATA;
    
BOOL RegisterSIMEditControl (void);
void SIMEditControlCleanup (void);

#ifdef __cplusplus
}
#endif

#endif // GUI_SIMEDIT_H_

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?