Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPControlComboBox in toolbar in pane
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPControlComboBox in toolbar in pane

 Post Reply Post Reply
Author
Message
Slotter View Drop Down
Newbie
Newbie


Joined: 23 July 2004
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote Slotter Quote  Post ReplyReply Direct Link To This Post Topic: CXTPControlComboBox in toolbar in pane
    Posted: 24 August 2004 at 4:54am
I have an app that has multiple panes, and each one has its own toolbar. In my OnCreateClient routine for the pane, I create the combobox as such:


else if (pToolBar->GetBarID() == IDR_SIMZOOMBAR)
{
     if (lpCreateControl->nID == IDC_SIM_EDIT_MODE)
     {
           CXTPControlComboBox* pCombo = (CXTPControlComboBox*) CXTPControlComboBox::CreateObject();
           pCombo->SetDropDownListStyle(FALSE);
           pCombo->SetCaption(_T("Edit Mode"));
           pCombo->SetStyle(xtpComboLabel);
           pCombo->AddString(_T("test1"));
           pCombo->AddString(_T("test2"));
           pCombo->SetWidth(110);
           pCombo->SetCurSel(0);
           lpCreateControl->pControl = pCombo;
           return TRUE;
     }


When I start my app, drop the list down, then exit the program, I get an Unhandled Exception 0xC0000005: Access Violation. It takes me to XTPCommandBar.cpp and says the error is on the first line of GetCommandBars. this is equal to 0xfeeefeee. Ideas on how to fix it?


CXTPCommandBars* CXTPCommandBar::GetCommandBars() const
{
     if (m_pCommandBars) return m_pCommandBars;
     if (GetParentCommandBar()) return GetParentCommandBar()->GetCommandBars();
     return 0;
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 24 August 2004 at 6:54am

Seems you mean our old bug...

Do you have 9.0 or 9.10?

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Slotter View Drop Down
Newbie
Newbie


Joined: 23 July 2004
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote Slotter Quote  Post ReplyReply Direct Link To This Post Posted: 24 August 2004 at 6:58pm
I have v8.51. My subscription is expired, but do I need to pay for this bug fix?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 25 August 2004 at 1:28am

There are to much changes from 8.51. You need to update your version.

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.094 seconds.