I have no idea. please~ help me.. |
Post Reply |
Author | |
copycdx2
Groupie Joined: 17 September 2008 Status: Offline Points: 20 |
Post Options
Thanks(0)
Posted: 02 October 2008 at 1:26am |
please, I will inquire my question. i had created my code Cg3OutlookBarContainer* pNewObj = new Cg3OutlookBarContainer(); pNewObj->Create( wnd ); file attach uploads/20081002_011741_g3ByClick.zip first question. ON_MESSAGE(XTPWM_TASKPANEL_NOTIFY, OnTaskPanelNotify) message is not received. second question. code line 688 pImage->SetIcons((IDR_TOOLBAR1)); that line insert and memory exception error when class destroy function. third question. I hope chage backgroundcolor of panel . thank you!! |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
1. TaskPanel send XTPWM_TASKPANEL_NOTIFY to its parent - so you have catch it in its parent.
Or override virtuaL LRESULT CXTPTaskPanel::NotifyOwner(WPARAM wParam, LPARAM lParam); 2. Need to trace your code to understand what "class destroy function" means.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
copycdx2
Groupie Joined: 17 September 2008 Status: Offline Points: 20 |
Post Options
Thanks(0)
|
thank you. I succeeded first question that you tell me. virtuaL LRESULT MyClassl::NotifyOwner(WPARAM wParam, LPARAM lParam); why not receive overrided function. BOOL Myclass::OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult) ------------------------------------------------------------------------- but my second question is... my.h class myClass: public CTaskPanelBase { public: CXTPPopupBar* m_pPopupBar; } my.cpp myClass :: TestFuc() { m_pPopupBar = (CXTPPopupBar*)CXTPPopupToolBar::CreateObject(); pCtrl = m_pPopupBar->GetControls()->Add( xtpControlButton, ID_FILE_TEST01 ); pCtrl->SetCaption(_T("Test button")); pCtrl->GetImageManager()->SetIcons(IDR_TOOLBAR1); } good run. Icon show. but, Access violatio error when myclass destroy.. exception red line code and good run. but not show icon. MyClass::~MyClass() { if( m_pPopupBar ) { AFX_MANAGE_STATE(AfxGetStaticModuleState()); m_pPopupBar->InternalRelease(); m_pPopupBar = NULL; } } --------out put-------------------------------- Afxwin1.inl _AFXWIN_INLINE BOOL AFXAPI AfxGetAmbientActCtx() { return afxAmbientActCtx; } void CXTPImageManagerIconSet::RemoveAll() |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
if you have some ActiveX or dll project, try manaully remove all icons: call XTPImageManager()->RemoveAll();
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |