|
#ifndef __ITEMS_H__
#define __ITEMS_H__
#pragma warning(disable:4786)
#include <list>
#include <vector>
namespace PropertyGrid
{
/////////////////////////////////////////////////////////////////////////////
// Flags
// Category Flags
const long CF_EXPANDED = 0x0001;
const long CF_COLLAPSED = 0x0002;
// Element Flags
const long EF_READONLY = 0x0001;
const long EF_EDITBOX = 0x0002;
const long EF_DATETIME = 0x0004;
const long EF_COMBOBOX = 0x0010;
const long EF_HOTKEY = 0x0020;
/////////////////////////////////////////////////////////////////////////////
// Extended Element Data
typedef struct tagCOMBOBOXDATA {
CString strData;
long lItemData;
} COMBOBOXDATA, *PCOMBOBOXDATA;
/////////////////////////////////////////////////////////////////////////////
// Element
typedef std::vector<COMBOBOXDATA> VCOMBOBOXDATA;
typedef struct tagELEMENT {
long lFlags;
long lID;
CString strName;
CString strValue;
long lValue; // Combo Box value
CString strInitialValue;
CString strTip;
VCOMBOBOXDATA vComboBox; // Combo Box Strings
WORD wHotKey; // Hot Key
} ELEMENT, *PELEMENT;
typedef std::list<ELEMENT> LELEMENT;
/////////////////////////////////////////////////////////////////////////////
// Category
typedef struct tagCATEGORY {
long lFlags;
long lID; // Category ID
CString strName;
CString strTip;
LELEMENT lElements;
} CATEGORY, *PCATEGORY;
typedef std::vector<CATEGORY> VCATEGORY;
/////////////////////////////////////////////////////////////////////////////
// Item being edited
typedef struct tagEDITEDITEM {
int nItem;
CWnd *pWindow; // Edit control
HWND hWindow;
CString strPrevious;
} EDITEDITEM, *PEDITEDITEM;
}
#endif //__ITEMS_H__
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here