|
// GuiEditDoc.h : interface of the CGuiEditDoc class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_GUIEDITDOC_H__7E5229C6_4808_4D81_A9C9_1CE6B84AB35B__INCLUDED_)
#define AFX_GUIEDITDOC_H__7E5229C6_4808_4D81_A9C9_1CE6B84AB35B__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define DEFAULTFILE "default.dat"
typedef struct
{
DWORD m_bothFore;
DWORD m_bothBack;
DWORD m_selFore;
DWORD m_selBack;
DWORD m_cursorFore;
DWORD m_cursorBack;
DWORD m_inactiveColour;
DWORD m_activeColour;
DWORD m_lightColour;
DWORD m_mediumColour;
DWORD m_darkColour;
int m_isSerif;
int m_height;
int m_weight;
int m_proportional;
int m_nextID;
int m_cornerBuffer;
DWORD m_textColour;
DWORD m_hotColour;
}
defaultValues_t;
class CGuiEditDoc : public CDocument
{
protected: // create from serialization only
CGuiEditDoc();
DECLARE_DYNCREATE(CGuiEditDoc)
// Attributes
public:
// Operations
public:
int SaveDefaults(void);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CGuiEditDoc)
public:
virtual BOOL OnNewDocument();
virtual void Serialize(CArchive& ar);
virtual BOOL OnSaveDocument(LPCTSTR lpszPathName);
virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
//}}AFX_VIRTUAL
// Implementation
public:
char m_exePath[MAX_PATH+1];
gui_all_u * m_currGui;
int m_currGuiIndex;
int m_isGrid;
int m_gridSize;
int m_drawGrid;
defaultValues_t m_defaultValues;
virtual ~CGuiEditDoc();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
int LoadDefaults(void);
char *GetExePath(char *exePath);
//{{AFX_MSG(CGuiEditDoc)
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_GUIEDITDOC_H__7E5229C6_4808_4D81_A9C9_1CE6B84AB35B__INCLUDED_)
|
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