|
// WABMenuItem.h : Declaration of the CWABMenuItem
#ifndef __WABMENUITEM_H_
#define __WABMENUITEM_H_
#include "resource.h" // main symbols
/////////////////////////////////////////////////////////////////////////////
// CWABMenuItem
struct TWabMenu
{
CString Name;
CString HelpString;
long ID;
BOOL bShow;
BOOL bEnable;
};
class ATL_NO_VTABLE CWABMenuItem :
public CComObjectRootEx<CComSingleThreadModel>,
public CComCoClass<CWABMenuItem, &CLSID_WABMenuItem>,
public IDispatchImpl<IWABMenuItem, &IID_IWABMenuItem, &LIBID_OELib>
{
public:
CString m_strID;
CWABMenuItem()
{
m_strID.Format("0");
}
DECLARE_REGISTRY_RESOURCEID(IDR_WABMENUITEM)
DECLARE_PROTECT_FINAL_CONSTRUCT()
BEGIN_COM_MAP(CWABMenuItem)
COM_INTERFACE_ENTRY(IWABMenuItem)
COM_INTERFACE_ENTRY(IDispatch)
END_COM_MAP()
// IWABMenuItem
public:
STDMETHOD(get_HelpString)(/*[out, retval]*/ BSTR *pVal);
STDMETHOD(put_HelpString)(/*[in]*/ BSTR newVal);
STDMETHOD(get_Enable)(/*[out, retval]*/ VARIANT_BOOL *pVal);
STDMETHOD(put_Enable)(/*[in]*/ VARIANT_BOOL newVal);
STDMETHOD(get_Show)(/*[out, retval]*/ VARIANT_BOOL *pVal);
STDMETHOD(put_Show)(/*[in]*/ VARIANT_BOOL newVal);
STDMETHOD(get_MenuID)(/*[out, retval]*/ long *pVal);
STDMETHOD(get_Name)(/*[out, retval]*/ BSTR *pVal);
STDMETHOD(put_Name)(/*[in]*/ BSTR newVal);
public :
};
#endif //__WABMENUITEM_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.
He used to have biography here
, but now he will hire someone (for free offcourse
), Who writes his biography on his behalf
He is Great Fan of Mr.
Johan Rosengren (his idol),
Lim Bio Liong,
Nishant S and
DavidCrow and Believes that, he will EXCEL in his life by following there steps!!!
He started with Visual C++ then moved to C# then he become language agnostic, you give him task,tell him the language or platform, he we start immediately, if he knows the language otherwise he quickly learn it and start contributing productively
Last but not the least, For good 8 years he was Visual CPP MSMVP!