Print Page | Close Window

CXTPControlComboBox in toolbar in pane

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=1100
Printed Date: 31 May 2025 at 9:47am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPControlComboBox in toolbar in pane
Posted By: Slotter
Subject: CXTPControlComboBox in toolbar in pane
Date 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;



Replies:
Posted By: Oleg
Date 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


Posted By: Slotter
Date 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?


Posted By: Oleg
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net