|
// PropPageSimpleScriptEditor.h : Declaration of the CPropPageSimpleScriptEditor
//
// Author : David Shepherd
// Copyright (c) 2002, DaeDoe-Software
//
/////////////////////////////////////////////////////////////////////////////
#ifndef __PROPPAGESIMPLESCRIPTEDITOR_H_
#define __PROPPAGESIMPLESCRIPTEDITOR_H_
#include "resource.h" // main symbols
EXTERN_C const CLSID CLSID_PropPageSimpleScriptEditor;
/////////////////////////////////////////////////////////////////////////////
// CPropPageSimpleScriptEditor
class ATL_NO_VTABLE CPropPageSimpleScriptEditor :
public CComObjectRootEx<CComSingleThreadModel>,
public CComCoClass<CPropPageSimpleScriptEditor, &CLSID_PropPageSimpleScriptEditor>,
public IPropertyPageImpl<CPropPageSimpleScriptEditor>,
public CDialogImpl<CPropPageSimpleScriptEditor>,
public CWinDataExchange<CPropPageSimpleScriptEditor>
{
private:
// property values
// border
BOOL m_BorderVisible;
// control wrappers
// border
CButton m_ctrlBorderVisible;
public:
CPropPageSimpleScriptEditor();
enum {IDD = IDD_PROPPAGESIMPLESCRIPTEDITOR};
BEGIN_DDX_MAP(CPropPageSimpleScriptEditor)
DDX_CHECK(IDC_BORDER,m_BorderVisible)
END_DDX_MAP()
DECLARE_REGISTRY_RESOURCEID(IDR_PROPPAGESIMPLESCRIPTEDITOR)
DECLARE_PROTECT_FINAL_CONSTRUCT()
BEGIN_COM_MAP(CPropPageSimpleScriptEditor)
COM_INTERFACE_ENTRY(IPropertyPage)
END_COM_MAP()
BEGIN_MSG_MAP(CPropPageSimpleScriptEditor)
CHAIN_MSG_MAP(IPropertyPageImpl<CPropPageSimpleScriptEditor>)
MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
COMMAND_HANDLER(IDC_BORDER, BN_CLICKED, OnClickedBorder)
END_MSG_MAP()
// Handler prototypes:
// LRESULT MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
// LRESULT CommandHandler(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
// LRESULT NotifyHandler(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
// IPropertyPage
STDMETHOD(Apply)();
// message handlers
LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
LRESULT OnClickedBorder(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
};
#endif //__PROPPAGESIMPLESCRIPTEDITOR_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 member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.