Author |
Topic Search Topic Options
|
Joe Brown
Newbie
Joined: 01 March 2004
Status: Offline
Points: 15
|
Post Options
Thanks(0)
Quote Reply
Topic: adding a CXTMaskEdit to a toolbar Posted: 11 May 2004 at 5:26pm |
I have a toolbar with a placeholder icon for an edit control that I want to be a CXTMaskEdit. It works fine to set the controlType to xtpControlEdit and then return TRUE, but I want the input field to allow only 8 numbers.
In my OnCreateControl(), I have the following:
if (lpCreateControl->nID == IDC_GOTO_CYCLE_EDIT)
{
// lpCreateControl->controlType = xtpControlEdit;
CXTPControlCustom* pControl = (CXTPControlCustom*) CXTPControlCustom::CreateObject();
if (!m_gotoCycleMaskEdit.Create(WS_CHILD | WS_VISIBLE, CRect(0, 0, 65, 16), this, IDC_GOTO_CYCLE_EDIT))
return FALSE;
m_gotoCycleMaskEdit.SetEditMask("00000000", " ");
m_gotoCycleMaskEdit.SetPromptChar(' ');
pControl->SetControl(&m_gotoCycleMaskEdit);
lpCreateControl->pControl = pControl;
return TRUE;
}
m_gotoCycleMaskEdit is declared as a CXTMaskEdit in my header file.
The two problems I have are:
1) When I hit enter in the edit box, nothing happens. I have an ON_COMMAND(IDC_GOTO_CYCLE_EDIT, OnGotoCycle) in my AFX_MSG_MAP. Works fine if controlType is set to
xtpControlEdit and then return TRUE.
2) My edit box doesn't get a blue outline when the mouse is over it. Blue outline is from the OfficeXP theme, I believe.
Any ideas?
Edited by Joe Brown
|
 |
Oleg
Admin Group
Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
|
Post Options
Thanks(0)
Quote Reply
Posted: 12 May 2004 at 12:10am |
in customthemes you can find CControlComboBoxEx implementation with masked text support.
|
Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS
|
 |
Joe Brown
Newbie
Joined: 01 March 2004
Status: Offline
Points: 15
|
Post Options
Thanks(0)
Quote Reply
Posted: 12 May 2004 at 10:35am |
I searched the entire directory tree for CControlComboBoxEx and didn't get any matches. I have Toolkit Pro v8.51. Could it be a different name?
|
 |
Oleg
Admin Group
Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
|
Post Options
Thanks(0)
Quote Reply
Posted: 12 May 2004 at 1:48pm |
|
Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS
|
 |
Maye Johnson
Groupie
Joined: 16 October 2004
Status: Offline
Points: 40
|
Post Options
Thanks(0)
Quote Reply
Posted: 04 April 2005 at 6:02pm |
How can I add just a mask edit control to a toolbar? The samples show combo boxes with mask edit.
|
 |
Oleg
Admin Group
Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
|
Post Options
Thanks(0)
Quote Reply
Posted: 06 April 2005 at 4:01am |
You can use same code.
class CControlEditCtrlEx : public CXTMaskEditT<CXTPControlEditCtrl> { public: afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
DECLARE_MESSAGE_MAP() };
class CControlEditEx: public CXTPControlEdit
{ DECLARE_XTP_CONTROL(CControlEditEx) public: CXTPControlEditCtrl* CreateEditControl() { return new CControlEditCtrlEx(); } };
|
Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS
|
 |
Maye Johnson
Groupie
Joined: 16 October 2004
Status: Offline
Points: 40
|
Post Options
Thanks(0)
Quote Reply
Posted: 06 April 2005 at 1:18pm |
I'm following the CustomThemes_vc60 sample app, and am using XTP v9.601.
I get a link error:
error LNK2001: unresolved external symbol "public: static class CObject
* __stdcall CNumberMaskEdit::CreateObject(void)"
(?CreateObject@CNumber MaskEdit@@SGPAVCObject@@XZ)
Here is my H file:
class CNumberMaskEditEx : public CXTMaskEditT<CXTPControlEditCtrl>
{
public:
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
DECLARE_MESSAGE_MAP()
};
class CNumberMaskEdit: public CXTPControlEdit
{
DECLARE_XTP_CONTROL(CNumberMaskEdit)
public:
CXTPControlEditCtrl* CreateEditControl()
{
return new CNumberMaskEditEx();
}
};
|
Here is my CPP file:
int CNumberMaskEditEx::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
SetEditMask(_T("000000000"), _T(" "), _T("0"));
return CXTMaskEditT<CXTPControlEditCtrl>::OnCreate(lpCreateSt ruct);
}
int CTDLEditorFrame::OnCreateControl(LPCREATECONTROLSTRUCT lpCreateControl)
{
if (lpCreateControl->bToolBar)
{
CXTPToolBar* pToolBar = DYNAMIC_DOWNCAST(CXTPToolBar, lpCreateControl->pCommandBar);
if (!pToolBar)
return FALSE;
if (pToolBar->GetBarID() == IDR_TDLEDITORGOTOBAR)
{
if (lpCreateControl->nID == IDC_TDLEDITOR_GOTO_EDIT)
{
CXTPControlEdit* pMasked = (CXTPControlEdit*)
CNumberMaskEdit::CreateObject();
pMasked->SetWidth(130);
pMasked->SetCaption(_T("Masked"));
pMasked->SetTooltip(_T("Goto line # (Ctrl+G)"));
lpCreateControl->pControl = pMasked;
return TRUE;
}
}
}
return FALSE;
}
|
Edited by Maye Johnson
|
 |
Maye Johnson
Groupie
Joined: 16 October 2004
Status: Offline
Points: 40
|
Post Options
Thanks(0)
Quote Reply
Posted: 06 April 2005 at 3:56pm |
I solved my problem by paying attention to the sample ... adding
the following made it work. However, the new problem is that the mask edit isn't limited
to 9 digits like I specify in SetEditMask(). I can infinitely
type digits and chars.
BEGIN_MESSAGE_MAP(CNumberMaskEditEx, CXTMaskEditT<CXTPControlEditCtrl>)
ON_WM_CREATE()
END_MESSAGE_MAP()
int CNumberMaskEditEx::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
SetEditMask(_T("000000000"), _T(" "), _T("0"));
return CXTMaskEditT<CXTPControlEditCtrl>::OnCreate(lpCreateSt ruct);
}
IMPLEMENT_XTP_CONTROL(CNumberMaskEdit, CXTPControlEdit)
|
Edited by Maye Johnson
|
 |
Maye Johnson
Groupie
Joined: 16 October 2004
Status: Offline
Points: 40
|
Post Options
Thanks(0)
Quote Reply
Posted: 06 April 2005 at 4:18pm |
I added ON_MASKEDIT_REFLECT() like the sample shows, and now my input doesn't show up in the edit box.
Also when I click at the end of the input box, it highlights half of the input box.
I appreciate the help you give.
My CPP file looks like this:
BEGIN_MESSAGE_MAP(CNumberMaskEditEx, CXTMaskEditT<CXTPControlEditCtrl>)
ON_MASKEDIT_REFLECT()
ON_WM_CREATE()
END_MESSAGE_MAP()
int CNumberMaskEditEx::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
int rv = CXTMaskEditT<CXTPControlEditCtrl>::OnCreate(lpCreateSt ruct);
SetEditMask(_T("000000000"),
_T(" &n bsp; "),
_T(" "));
return rv;
}
IMPLEMENT_XTP_CONTROL(CNumberMaskEdit, CXTPControlEdit)
int CTDLEditorFrame::OnCreateControl(LPCREATECONTROLSTRUCT lpCreateControl)
{
if (lpCreateControl->bToolBar)
{
CXTPToolBar* pToolBar = DYNAMIC_DOWNCAST(CXTPToolBar, lpCreateControl->pCommandBar);
if (!pToolBar)
return FALSE;
if (pToolBar->GetBarID() == IDR_TDLEDITORGOTOBAR)
{
if (lpCreateControl->nID == IDC_TDLEDITOR_GOTO_EDIT)
{
CXTPControlEdit* pMasked = (CXTPControlEdit*)
CNumberMaskEdit::CreateObject();
// pMasked->SetWidth(130);
pMasked->SetCaption(_T("Goto"));
// pMasked->SetFlags(xtpFlagManualUpdate);
pMasked->SetTooltip(_T("Goto line # (Ctrl+G)"));
// pMasked->SetEnabled(TRUE);
lpCreateControl->pControl = pMasked;
return TRUE;
}
}
}
return FALSE;
}
|
Edited by Maye Johnson
|
 |
Oleg
Admin Group
Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
|
Post Options
Thanks(0)
Quote Reply
Posted: 08 April 2005 at 12:16am |
by default prompt char is "_" you must specify it:
SetEditMask(_T("000000000"), _T(" "), _T(" ")); SetPromptChar(_T(' '));
|
Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS
|
 |
Oleg
Admin Group
Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
|
Post Options
Thanks(0)
Quote Reply
Posted: 08 April 2005 at 12:18am |
As suggestion:
Edit control support "numbers only" mode without CXTMaskEditT.
all you need is just call:
ModifyStyle(0, ES_NUMBER);
and instead CXTMaskEditT<CXTPControlComboBoxEditCtrl> use
CXTPControlComboBoxEditCtrl
|
Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS
|
 |
Maye Johnson
Groupie
Joined: 16 October 2004
Status: Offline
Points: 40
|
Post Options
Thanks(0)
Quote Reply
Posted: 08 April 2005 at 3:33pm |
I did have an edit control, but then I faced the original problems of:
1) When mouse moved over control, it didn't highlight like the other controls.
2) Couldn't capture Enter key.
My old code was this:
.h file
----------------
CEdit m_gotoCycleEdit;
.cpp file
----------------
In OnCreateControl() ...
CXTPControlCustom* pControl = (CXTPControlCustom*)
CXTPControlCustom::CreateObject();
if (!m_gotoCycleEdit.Create(WS_CHILD | WS_VISIBLE |
ES_NUMBER, CRect(0, 0, 90, 16), this, IDC_SIM_GOTO_CYCLE_EDIT))
return FALSE;
m_gotoCycleEdit.SetLimitText(10);
pControl->SetControl(&m_gotoCycleEdit);
lpCreateControl->pControl = pControl;
|
I'm trying anything to get number input, limited length, capture Enter
key, highlights when mouse moved over it, and in the toolbar. So
far nothing meets all of the criteria.
At this point I just need to be told what code to implement, because I
can't figure out what I'm supposed to do to achieve what I want, or if
it's even possible. I appreciate your help.
Edited by Maye Johnson
|
 |
Oleg
Admin Group
Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
|
Post Options
Thanks(0)
Quote Reply
Posted: 09 April 2005 at 7:28am |
|
Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS
|
 |
Maye Johnson
Groupie
Joined: 16 October 2004
Status: Offline
Points: 40
|
Post Options
Thanks(0)
Quote Reply
Posted: 11 April 2005 at 11:08am |
Compile errors tell me that it can't find AboutDlg.rc, and when I
comment that out, it can't find AboutDlg.h. I comment that out,
then I get 152 compiler errors:
--------------------Configuration: CustomizeDlg - Win32 Debug--------------------
Compiling resources...
Compiling...
StdAfx.cpp
Compiling...
ChildFrm.cpp
ControlEditGoto.cpp
c:\incoming\2005-04-09_072749_sample\controleditgoto.h(14) : error C2504: 'CXTPControlEditCtrl' : base class undefined
c:\incoming\2005-04-09_072749_sample\controleditgoto.h(22) : error C2504: 'CXTPControlEdit' : base class undefined
c:\incoming\2005-04-09_072749_sample\controleditgoto.h(25) : error C2143: syntax error : missing ';' before 'public'
c:\incoming\2005-04-09_072749_sample\controleditgoto.h(29) : error C2143: syntax error : missing ';' before '*'
c:\incoming\2005-04-09_072749_sample\controleditgoto.h(29) : error
C2501: 'CXTPControlEditCtrl' : missing storage-class or type specifiers
c:\incoming\2005-04-09_072749_sample\controleditgoto.h(30) : error
C2501: 'CreateEditControl' : missing storage-class or type specifiers
c:\incoming\2005-04-09_072749_sample\controleditgoto.h(32) : warning
C4183: 'CreateEditControl': member function definition looks like a
ctor, but name does not match enclosing class
C:\incoming\2005-04-09_072749_sample\ControlEditGoto.cpp(2 2) : error
C2653: 'CXTPControlEditCtrl' : is not a class or namespace name
C:\incoming\2005-04-09_072749_sample\ControlEditGoto.cpp(2 8) : error C2065: 'ModifyStyle' : undeclared identifier
C:\incoming\2005-04-09_072749_sample\ControlEditGoto.cpp(3 1) : error
C2653: 'CXTPControlEditCtrl' : is not a class or namespace name
C:\incoming\2005-04-09_072749_sample\ControlEditGoto.cpp(3 4) : error C2061: syntax error : identifier 'CXTPControlEdit'
C:\incoming\2005-04-09_072749_sample\ControlEditGoto.cpp(3 5) : fatal error C1004: unexpected end of file found
ControlTools.cpp
c:\incoming\2005-04-09_072749_sample\controltools.h(29) : error C2504: 'CXTPControlButton' : base class undefined
c:\incoming\2005-04-09_072749_sample\controltools.h(34) : error C2061: syntax error : identifier 'CXTPCommandBar'
c:\incoming\2005-04-09_072749_sample\controltools.h(40) : error C2143: syntax error : missing ';' before '}'
c:\incoming\2005-04-09_072749_sample\customizepagetools.h( 63) : error C2143: syntax error : missing ';' before '<'
c:\incoming\2005-04-09_072749_sample\customizepagetools.h( 63) : error C2143: syntax error : missing ';' before '<'
c:\incoming\2005-04-09_072749_sample\customizepagetools.h( 80) : error
C2146: syntax error : missing ';' before identifier 'm_lstTools'
c:\incoming\2005-04-09_072749_sample\customizepagetools.h( 80) : error
C2501: 'm_lstTools' : missing storage-class or type specifiers
C:\incoming\2005-04-09_072749_sample\ControlTools.cpp(30) : error C2061: syntax error : identifier 'CXTPControlButton'
C:\incoming\2005-04-09_072749_sample\ControlTools.cpp(33) : error C2143: syntax error : missing ';' before 'tag::id'
C:\incoming\2005-04-09_072749_sample\ControlTools.cpp(33) : fatal error C1004: unexpected end of file found
CustomizeDlg.cpp
c:\incoming\2005-04-09_072749_sample\mainfrm.h(29) : error C2504: 'CXTPMDIFrameWnd' : base class undefined
c:\incoming\2005-04-09_072749_sample\mainfrm.h(57) : error C2146: syntax error : missing ';' before identifier 'm_wndStatusBar'
c:\incoming\2005-04-09_072749_sample\mainfrm.h(57) : error C2501: 'CXTPStatusBar' : missing storage-class or type specifiers
c:\incoming\2005-04-09_072749_sample\mainfrm.h(57) : error C2501: 'm_wndStatusBar' : missing storage-class or type specifiers
c:\incoming\2005-04-09_072749_sample\mainfrm.h(67) : error C2061: syntax error : identifier 'LPCREATECONTROLSTRUCT'
C:\incoming\2005-04-09_072749_sample\CustomizeDlg.cpp(29) : fatal error
C1083: Cannot open include file: 'AboutDlg.h': No such file or directory
CustomizeDlgDoc.cpp
CustomizeDlgView.cpp
C:\incoming\2005-04-09_072749_sample\CustomizeDlgView.cpp( 47) : error C2065: 'ON_XTP_EXECUTE' : undeclared identifier
C:\incoming\2005-04-09_072749_sample\CustomizeDlgView.cpp( 49) : error C2059: syntax error : '{'
C:\incoming\2005-04-09_072749_sample\CustomizeDlgView.cpp( 49) : error C2143: syntax error : missing ';' before '{'
C:\incoming\2005-04-09_072749_sample\CustomizeDlgView.cpp( 49) : error C2447: missing function header (old-style formal list?)
C:\incoming\2005-04-09_072749_sample\CustomizeDlgView.cpp( 49) : error C2143: syntax error : missing ';' before '}'
C:\incoming\2005-04-09_072749_sample\CustomizeDlgView.cpp( 138) : error C2065: 'NMXTPCONTROL' : undeclared identifier
C:\incoming\2005-04-09_072749_sample\CustomizeDlgView.cpp( 138) : error C2065: 'tagNMCONTROL' : undeclared identifier
C:\incoming\2005-04-09_072749_sample\CustomizeDlgView.cpp( 138) : error C2059: syntax error : ')'
C:\incoming\2005-04-09_072749_sample\CustomizeDlgView.cpp( 140) : error C2065: 'CXTPControlComboBox' : undeclared identifier
C:\incoming\2005-04-09_072749_sample\CustomizeDlgView.cpp( 140) : error C2065: 'pControl' : undeclared identifier
C:\incoming\2005-04-09_072749_sample\CustomizeDlgView.cpp( 140) : error C2059: syntax error : ')'
C:\incoming\2005-04-09_072749_sample\CustomizeDlgView.cpp( 141) : error
C2227: left of '->GetType' must point to class/struct/union
C:\incoming\2005-04-09_072749_sample\CustomizeDlgView.cpp( 141) : error C2065: 'xtpControlEdit' : undeclared identifier
C:\incoming\2005-04-09_072749_sample\CustomizeDlgView.cpp( 143) : error C2065: 'CXTPControlEdit' : undeclared identifier
C:\incoming\2005-04-09_072749_sample\CustomizeDlgView.cpp( 143) : error C2059: syntax error : ')'
CustomizePageTools.cpp
c:\incoming\2005-04-09_072749_sample\customizepagetools.h( 63) : error C2143: syntax error : missing ';' before '<'
c:\incoming\2005-04-09_072749_sample\customizepagetools.h( 63) : error C2143: syntax error : missing ';' before '<'
c:\incoming\2005-04-09_072749_sample\customizepagetools.h( 80) : error
C2146: syntax error : missing ';' before identifier 'm_lstTools'
c:\incoming\2005-04-09_072749_sample\customizepagetools.h( 80) : error
C2501: 'm_lstTools' : missing storage-class or type specifiers
C:\incoming\2005-04-09_072749_sample\CustomizePageTools.cp p(32) : error
C2039: 'm_lstTools' : is not a member of 'CCustomizePageTools'
c:\incoming\20 05-04-09_072749_sample\customizepagetools.h(68) : see
declaration of 'CCustomizePageTools'
C:\incoming\2005-04-09_072749_sample\CustomizePageTools.cp p(32) : error
C2146: syntax error : missing ';' before identifier 'm_lstTools'
C:\incoming\2005-04-09_072749_sample\CustomizePageTools.cp p(32) : error
C2501: 'CToolsList' : missing storage-class or type specifiers
C:\incoming\2005-04-09_072749_sample\CustomizePageTools.cp p(32) : fatal error C1004: unexpected end of file found
MainFrm.cpp
c:\incoming\2005-04-09_072749_sample\customizepagetools.h( 63) : error C2143: syntax error : missing ';' before '<'
c:\incoming\2005-04-09_072749_sample\customizepagetools.h( 63) : error C2143: syntax error : missing ';' before '<'
c:\incoming\2005-04-09_072749_sample\customizepagetools.h( 80) : error
C2146: syntax error : missing ';' before identifier 'm_lstTools'
c:\incoming\2005-04-09_072749_sample\customizepagetools.h( 80) : error
C2501: 'm_lstTools' : missing storage-class or type specifiers
c:\incoming\2005-04-09_072749_sample\controltools.h(29) : error C2504: 'CXTPControlButton' : base class undefined
c:\incoming\2005-04-09_072749_sample\controltools.h(34) : error C2061: syntax error : identifier 'CXTPCommandBar'
c:\incoming\2005-04-09_072749_sample\controltools.h(40) : error C2143: syntax error : missing ';' before '}'
c:\incoming\2005-04-09_072749_sample\controleditgoto.h(14) : error C2504: 'CXTPControlEditCtrl' : base class undefined
c:\incoming\2005-04-09_072749_sample\controleditgoto.h(22) : error C2504: 'CXTPControlEdit' : base class undefined
c:\incoming\2005-04-09_072749_sample\controleditgoto.h(25) : error C2143: syntax error : missing ';' before 'public'
c:\incoming\2005-04-09_072749_sample\controleditgoto.h(29) : error C2143: syntax error : missing ';' before '*'
c:\incoming\2005-04-09_072749_sample\controleditgoto.h(29) : error
C2501: 'CXTPControlEditCtrl' : missing storage-class or type specifiers
c:\incoming\2005-04-09_072749_sample\controleditgoto.h(30) : error
C2501: 'CreateEditControl' : missing storage-class or type specifiers
c:\incoming\2005-04-09_072749_sample\controleditgoto.h(32) : warning
C4183: 'CreateEditControl': member function definition looks like a
ctor, but name does not match enclosing class
c:\incoming\2005-04-09_072749_sample\mainfrm.h(29) : error C2504: 'CXTPMDIFrameWnd' : base class undefined
c:\incoming\2005-04-09_072749_sample\mainfrm.h(57) : error C2146: syntax error : missing ';' before identifier 'm_wndStatusBar'
c:\incoming\2005-04-09_072749_sample\mainfrm.h(57) : error C2501: 'CXTPStatusBar' : missing storage-class or type specifiers
c:\incoming\2005-04-09_072749_sample\mainfrm.h(57) : error C2501: 'm_wndStatusBar' : missing storage-class or type specifiers
c:\incoming\2005-04-09_072749_sample\mainfrm.h(67) : error C2061: syntax error : identifier 'LPCREATECONTROLSTRUCT'
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(40) : error C2248:
'messageMap' : cannot access protected member declared in class
'CMDIFrameWnd'
c:\program files\microsoft
visual studio\vc98\mfc\include\afxwin.h(3391) : see declaration of
'messageMap'
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(46) : error C2065: 'XTP_ID_CUSTOMIZE' : undeclared identifier
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(47) : error C2065: 'ON_XTP_CREATECONTROL' : undeclared identifier
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(48) : error C2061: syntax error : identifier 'ON_XTP_EXECUTE'
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(51) : error C2143: syntax error : missing ';' before '{'
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(51) : error C2447: missing function header (old-style formal list?)
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(51) : error C2143: syntax error : missing ';' before '}'
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(78) : error C2248:
'OnCreate' : cannot access protected member declared in class
'CFrameWnd'
c:\program files\microsoft
visual studio\vc98\mfc\include\afxwin.h(3278) : see declaration of
'OnCreate'
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(78) : error C2352:
'CFrameWnd::OnCreate' : illegal call of non-static member function
c:\program files\microsoft
visual studio\vc98\mfc\include\afxwin.h(3278) : see declaration of
'OnCreate'
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(84) : error C2065: 'm_wndStatusBar' : undeclared identifier
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(84) : error C2228: left of '.Create' must have class/struct/union type
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(85) : error C2228: left of '.SetIndicators' must have class/struct/union type
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(93) : error C2065: 'InitCommandBars' : undeclared identifier
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(97) : error C2065: 'CXTPCommandBars' : undeclared identifier
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(97) : error C2065: 'pCommandBars' : undeclared identifier
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(97) : error C2065: 'GetCommandBars' : undeclared identifier
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(97) : error C2106: '=' : left operand must be l-value
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(105) : error C2065: 'CXTPCommandBar' : undeclared identifier
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(105) : error C2065: 'pMenuBar' : undeclared identifier
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(105) : error C2227: left of '->SetMenu' must point to class/struct/union
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(112) : error C2227: left of '->SetFlags' must point to class/struct/union
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(112) : error C2065: 'xtpFlagAddMDISysPopup' : undeclared identifier
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(115) : error C2065: 'CXTPToolBar' : undeclared identifier
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(115) : error C2065: 'pToolBar' : undeclared identifier
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(115) : error C2059: syntax error : ')'
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(117) : error C2227: left of '->LoadToolBar' must point to class/struct/union
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(124) : error C2653: 'CXTPPaintManager' : is not a class or namespace name
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(124) : error C2065: 'SetTheme' : undeclared identifier
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(124) : error C2065: 'xtpThemeOffice2003' : undeclared identifier
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(125) : error C2653: 'CXTPOffice2003Theme' : is not a class or namespace name
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(125) : error C2065: 'LoadModernToolbarIcons' : undeclared identifier
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(127) : error C2065: 'LoadCommandBars' : undeclared identifier
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(135) : error C2039: 'm_lstTools' : is not a member of 'CCustomizePageTools'
c:\incoming\20 05-04-09_072749_sample\customizepagetools.h(68) : see
declaration of 'CCustomizePageTools'
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(135) : error C2065: 'm_lstTools' : undeclared identifier
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(135) : error C2228: left of '.AddTail' must have class/struct/union type
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(136) : error C2039: 'm_lstTools' : is not a member of 'CCustomizePageTools'
c:\incoming\20 05-04-09_072749_sample\customizepagetools.h(68) : see
declaration of 'CCustomizePageTools'
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(136) : error C2228: left of '.AddTail' must have class/struct/union type
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(137) : error C2039: 'm_lstTools' : is not a member of 'CCustomizePageTools'
c:\incoming\20 05-04-09_072749_sample\customizepagetools.h(68) : see
declaration of 'CCustomizePageTools'
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(137) : error C2228: left of '.AddTail' must have class/struct/union type
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(146) : error C2352:
'CMDIFrameWnd::PreCreateWindow' : illegal call of non-static member
function
c:\program files\microsoft
visual studio\vc98\mfc\include\afxwin.h(3363) : see declaration of
'PreCreateWindow'
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(160) : error C2352:
'CMDIFrameWnd::AssertValid' : illegal call of non-static member function
c:\program files\microsoft
visual studio\vc98\mfc\include\afxwin.h(3360) : see declaration of
'AssertValid'
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(165) : error C2352:
'CMDIFrameWnd::Dump' : illegal call of non-static member function
c:\program files\microsoft
visual studio\vc98\mfc\include\afxwin.h(3361) : see declaration of
'Dump'
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(175) : error C2065: 'CXTPCustomizeSheet' : undeclared identifier
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(175) : error C2146: syntax error : missing ';' before identifier 'cs'
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(175) : error C2065: 'cs' : undeclared identifier
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(177) : error C2065: 'CXTPCustomizeKeyboardPage' : undeclared identifier
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(177) : error C2146: syntax error : missing ';' before identifier 'pageKeyboard'
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(177) : error C2065: 'pageKeyboard' : undeclared identifier
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(178) : error C2228: left of '.AddPage' must have class/struct/union type
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(179) : error C2228: left of '.AddCategories' must have class/struct/union type
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(182) : error C2228: left of '.AddPage' must have class/struct/union type
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(184) : error C2065: 'CXTPCustomizeOptionsPage' : undeclared identifier
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(184) : error C2146: syntax error : missing ';' before identifier 'pageOptions'
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(184) : error C2065: 'pageOptions' : undeclared identifier
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(185) : error C2228: left of '.AddPage' must have class/struct/union type
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(189) : error C2065: 'CXTPCustomizeCommandsPage' : undeclared identifier
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(189) : error C2065: 'pCommands' : undeclared identifier
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(189) : error C2228:
left of '.GetCommandsPage' must have class/struct/union type
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(190) : error C2227:
left of '->AddCategories' must point to class/struct/union
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(192) : error C2227:
left of '->InsertAllCommandsCategory' must point to
class/struct/union
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(193) : error C2227:
left of '->InsertBuiltInMenus' must point to class/struct/union
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(194) : error C2227:
left of '->InsertNewMenuCategory' must point to class/struct/union
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(197) : error C2228: left of '.DoModal' must have class/struct/union type
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(202) : error C2065: 'SaveCommandBars' : undeclared identifier
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(203) : error C2065: 'XTPShortcutManager' : undeclared identifier
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(203) : error C2227:
left of '->SaveShortcuts' must point to class/struct/union
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(207) : error C2248:
'OnClose' : cannot access protected member declared in class 'CFrameWnd'
c:\program files\microsoft
visual studio\vc98\mfc\include\afxwin.h(3280) : see declaration of
'OnClose'
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(207) : error C2352:
'CFrameWnd::OnClose' : illegal call of non-static member function
c:\program files\microsoft
visual studio\vc98\mfc\include\afxwin.h(3280) : see declaration of
'OnClose'
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(212) : error C2352:
'CMDIFrameWnd::LoadFrame' : illegal call of non-static member function
c:\program files\microsoft
visual studio\vc98\mfc\include\afxwin.h(3364) : see declaration of
'LoadFrame'
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(215) : error C2227:
left of '->LoadShortcuts' must point to class/struct/union
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(220) : error C2065: 'LPCREATECONTROLSTRUCT' : undeclared identifier
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(220) : error C2146:
syntax error : missing ')' before identifier 'lpCreateControl'
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(220) : error C2350: 'CMainFrame::OnCreateControl' is not a static member
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(220) : error C2059: syntax error : ')'
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(221) : error C2143: syntax error : missing ';' before '{'
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(221) : error C2447: missing function header (old-style formal list?)
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(243) : error C2065: 'CXTPControl' : undeclared identifier
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(243) : error C2065: 'pControl' : undeclared identifier
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(243) : error C2065: 'NMXTPCONTROL' : undeclared identifier
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(243) : error C2059: syntax error : ')'
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(245) : error C2227: left of '->GetTag' must point to class/struct/union
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(264) : error C2248:
'OnGetMinMaxInfo' : cannot access protected member declared in class
'CWnd'
c:\program files\microsoft
visual studio\vc98\mfc\include\afxwin.h(2288) : see declaration of
'OnGetMinMaxInfo'
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(264) : error C2352:
'CWnd::OnGetMinMaxInfo' : illegal call of non-static member function
c:\program files\microsoft
visual studio\vc98\mfc\include\afxwin.h(2288) : see declaration of
'OnGetMinMaxInfo'
C:\incoming\2005-04-09_072749_sample\MainFrm.cpp(264) : fatal error C1003: error count exceeds 100; stopping compilation
Generating Code...
Error executing cl.exe.
CustomizeDlgd.exe - 152 error(s), 2 warning(s)
|
|
 |
Maye Johnson
Groupie
Joined: 16 October 2004
Status: Offline
Points: 40
|
Post Options
Thanks(0)
Quote Reply
Posted: 11 April 2005 at 11:16am |
I added the following to stdafx.h
#include <XTToolkitPro.h>
// MFC support for Internet Explorer 4 Common
Controls
|
and now it compiles. When I run it, I immediately get a dialog box that says "Cannot execute program".
|
 |
Maye Johnson
Groupie
Joined: 16 October 2004
Status: Offline
Points: 40
|
Post Options
Thanks(0)
Quote Reply
Posted: 11 April 2005 at 11:25am |
Solved "Cannot execute program" by checking Project Settings and where
binary was being output. Got program running, will check out the
code to make sure it works in my app. I appreciate the help, it
helps out tremendously when you respond so quickly time after time.
|
 |
Maye Johnson
Groupie
Joined: 16 October 2004
Status: Offline
Points: 40
|
Post Options
Thanks(0)
Quote Reply
Posted: 11 April 2005 at 11:40am |
Seems to be working. Thank you again, it seems trivial now that I look at the code.
|
 |