Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » To use CExtListCtrl Collapse All
Subject Author Date
Halfdom LCap Sep 25, 2009 - 11:04 AM

I’m using 2.85 version.


 


I refer from the example of "MDI_DynamicInnerOuterBars ".


 


I ’m trying to use CExtListCtrl in place of CSimpleDynamicEdit in the sy


The source of  CSimpleDynamicEdit is






in MainFrm.cpp




                pLogEdit = new CSimpleDynamicEdit;




                VERIFY(pLogEdit->Create(




                                              m_parrControlBars[i]->m_hWnd,




                                              NULL) );




                pCpriEdit->SetWindowText("Log Monitor");


How to use CExtListCtrl in place of CSimpleDynamicEdit?

Technical Support Oct 3, 2009 - 6:33 AM

We received your project. The code at line 400 in Mainfrm.cpp is absolutely OK:

. . . . .
#if 1
      CSimpleDynamicListViewCtrl * pList = new CSimpleDynamicListViewCtrl;
      CWnd * pWnd = CWnd::FromHandle(m_parrControlBars[i]->m_hWnd);
      VERIFY(
          pList->Create(
            WS_CHILD|WS_VISIBLE,
            CRect(0,0,1,1),
            pWnd,
            UINT(555)
            )
          );

#else
. . . . .

It simply creates фт un-initialized list view control without items and columns.


Technical Support Sep 26, 2009 - 9:46 AM

You should just copy it into your project’s source code and use it instead of the editor.
If you have any difficulties, you can send us your startup project so we can modify it for you.

Halfdom LCap Sep 30, 2009 - 3:15 PM


I sent my project code to you(support@prof-uis.com ).

Please,check up the project source.

Thanks.

Technical Support Sep 25, 2009 - 12:20 PM

Here is the class you should use:
class CSimpleDynamicListViewCtrl : public CExtNCSB < CExtListCtrl >
{
public:
CSimpleDynamicListViewCtrl() : CExtNCSB < CExtListCtrl > ( true , true ) { }
virtual void PostNcDestroy() { delete this; }
};

Halfdom LCap Sep 25, 2009 - 4:50 PM

How can I get the "CSimpleDynamicListViewCtrl " class?