⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wxsstyle.h

📁 非常好用的可移植的多平台C/C++源代码编辑器
💻 H
字号:
#ifndef __WXSSTYLE_H
#define __WXSSTYLE_H

/** Structure describing one widget's stule */
struct wxsStyle
{
    wxString Name;
    unsigned int Value;
};

/******************************************************************************/
/* Usefull defines used while creating set of widget's styles                 */
/******************************************************************************/


/** Declaring list in header file */
#define WXS_ST_DECLARE(name)                      \
    extern wxsStyle* name;


/** Beginning definition of array (source file) */
#define WXS_ST_BEGIN(name)                      \
    static wxsStyle __##name##__[] = {
    
/** Adding new style into list */
#define WXS_ST(name)                            \
    { _T(#name), name },
    
/** Beginning new  category */    
#define WXS_ST_CATEGORY(name)                   \
    { _T(name), ((unsigned int)-1) },
    
/** Ending creation of list */    
#define WXS_ST_END(name)                        \
    { _T(""), 0 } };                            \
    wxsStyle* name = __##name##__;
    
/** adding all default window's style */
#define WXS_ST_DEFAULTS()                       \
    WXS_ST_CATEGORY("wxWindow")                 \
    WXS_ST(wxSIMPLE_BORDER)                     \
    WXS_ST(wxDOUBLE_BORDER)                     \
    WXS_ST(wxSUNKEN_BORDER)                     \
    WXS_ST(wxRAISED_BORDER)                     \
    WXS_ST(wxSTATIC_BORDER)                     \
    WXS_ST(wxNO_BORDER)                         \
    WXS_ST(wxTRANSPARENT_WINDOW)                \
    WXS_ST(wxTAB_TRAVERSAL)                     \
    WXS_ST(wxWANTS_CHARS)                       \
    WXS_ST(wxNO_FULL_REPAINT_ON_RESIZE)         \
    WXS_ST(wxVSCROLL)                           \
    WXS_ST(wxHSCROLL)                           \
    WXS_ST(wxALWAYS_SHOW_SB)                    \
    WXS_ST(wxCLIP_CHILDREN)                     \
    WXS_ST(wxFULL_REPAINT_ON_RESIZE)
    

#endif

⌨️ 快捷键说明

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