XMLGUISyntax.h
上传用户:kj0090
上传日期:2007-03-02
资源大小:39k
文件大小:3k
- /***********************************************************************
- *
- * This module is part of the XMLGUI system
- *
- * File name: XMLGUISyntax.h
- *
- * Creation date: [14 AUGUST 2002]
- *
- * Author(s): [Kolosenko Ruslan]
- *
- * Description: Declares macroses and global structures describing XMLGUI syntax
- *
- **********************************************************************/
- #ifndef AFX_XML_GUI_SYNTAX_H_RKOL_8_14_2002_
- #define AFX_XML_GUI_SYNTAX_H_RKOL_8_14_2002_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // macroses describing available XMLGUI tags and attributes:
- // tags used in dialog templates
- #define TAG_DIALOG L"DIALOG"
- #define TAG_CONTROL L"CONTROL"
- // attributes of the <dialog> tag
- #define ATTRIBUTE_DIALOG_LEFT _T("left")
- #define ATTRIBUTE_DIALOG_TOP _T("top")
- #define ATTRIBUTE_DIALOG_WIDTH _T("width")
- #define ATTRIBUTE_DIALOG_HEIGHT _T("height")
- #define ATTRIBUTE_DIALOG_CAPTION _T("caption")
- #define ATTRIBUTE_DIALOG_MENU _T("menu")
- #define ATTRIBUTE_DIALOG_CLASS _T("class")
- #define ATTRIBUTE_DIALOG_FONTSIZE _T("fontsize")
- #define ATTRIBUTE_DIALOG_FONTNAME _T("fontname")
- // attributes of the <control> tag
- #define ATTRIBUTE_CONTROL_STYLE _T("style")
- #define ATTRIBUTE_CONTROL_LEFT _T("left")
- #define ATTRIBUTE_CONTROL_TOP _T("top")
- #define ATTRIBUTE_CONTROL_WIDTH _T("width")
- #define ATTRIBUTE_CONTROL_HEIGHT _T("height")
- #define ATTRIBUTE_CONTROL_ID _T("id")
- #define ATTRIBUTE_CONTROL_CLASS _T("class")
- #define ATTRIBUTE_CONTROL_RCID _T("resource-id")
- #define ATTRIBUTE_CONTROL_CLSID _T("clsid")
- // some constants for values of <control> tag attributes
- #define ATTVALUE_CONTROL_ACTIVEX L"ActiveX"
- #define ATTVALUE_CONTROL_STYLE_DELIM _T(',')
- #define ATTVALUE_CONTROL_STYLE_PREFIX_NOT _T("not ")
- // structures mapping XMLGUI class and style names to Windows constants
- // mapping of XMLGUI style name to Windows style constant
- typedef struct tagXMLGUIStylesValues
- {
- TCHAR szXMLGUIStyle[20]; // XMLGUI style name
- DWORD nWin32Style; // Windows style constant value
- } XMLGUIStylesValues, *LPXMLGUIStylesValues;
- // mapping of XMLGUI class name to Windows class name
- typedef struct tagXMLGUIControlSyntax
- {
- wchar_t szXMLGUIName[15]; // XMLGUI class name of a control
- wchar_t szWindowClass[20]; // control's Windows class name
- WORD nClassOrdinal; // Windows class ordinal
- XMLGUIStylesValues* controlStylesSet; // style constants for the control
- XMLGUIStylesValues* controlExStylesSet; // extended style constants for the control
- DWORD nDefWindowStyles; // default window styles for the control
- } XMLGUIControlSyntax, *LPXMLGUIControlSyntax;
- // declarations of global syntax structure instances
- extern XMLGUIControlSyntax g_ControlsSyntax[];
- extern XMLGUIStylesValues g_CommonWindowStyles[];
- extern XMLGUIStylesValues g_CommonWindowExStyles[];
- extern XMLGUIStylesValues g_DialogStyles[];
- #endif // AFX_XML_GUI_SYNTAX_H_RKOL_8_14_2002_