![]() |
CXTEditListBox and CXTBrowseEdit |
Post Reply
|
| Author | |
jimmy
Senior Member
Joined: 11 November 2003 Location: Austria Status: Offline Points: 516 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTEditListBox and CXTBrowseEditPosted: 22 March 2005 at 4:09am |
|
Hello,
we have our own directory cooser dialog. With CXTBrowseEdit we can use virtual void ChooseDirectory(); to inplace our dialog. But how can i do this with CXTEditListBox at new item ? Jimmy |
|
![]() |
|
unicef
Newbie
Joined: 17 February 2005 Status: Offline Points: 13 |
Post Options
Thanks(0)
Quote Reply
Posted: 28 March 2005 at 1:53pm |
|
Hi Jimmy,
I've noticed that. It's toolkit design problem. void CXTEditListBox::EditListItem(BOOL bNewItem) should be virtual function. Otherwise you cannot create derived class from CXTPItemEdit. The following is a workaround. It's ugly, but it works. class CMyEditListBox : public CXTEditListBox {}; class CMyItemEdit: CXTItemEdit { virtual void ChooseDirectory(); ... }; CMyEditListBox::OnLButtonDblClk(UINT nFlags, CPoint point) { CWnd::OnLButtonDblClk(nFlags, point); MyEditListItem(FALSE); } void CMyEditListBox::MyEditListItem(BOOL bNewItem) { ... m_pItemEdit = new CMyItemEdit( this, rcItem, m_strItemText, m_dwLStyle, true ); ... } |
|
![]() |
|
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 |