CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: How make visible ListCtrl ?

  1. #1
    Join Date
    Mar 2010
    Posts
    74

    How make visible ListCtrl ?

    I have one ListCtrl ( really, class derived from ListCtrl) f.e name it " One".
    this One isa copy of other class derived from ListCtrl ( f.e. Two)

    One = ( Class _One_Definition *) Two.
    just now I have a great problem, how show control One!
    it is populated with valid data from Two, I checked it, but i dont know, how make Two visible!

    So, I filled ONE without InsertItems, only copy data from ONE

    not redrawitems, not redrawwindow nothing does not help..

    Please, consult me on this great problem! is any solution?

    thanks alot.

  2. #2
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,607

    Re: How make visible ListCtrl ?

    Afraid you either don't understand the real situation (what looks more probable to me) or fail to explain it correctly. According to your One = ( Class _One_Definition *) Two I would say One is not a copy of Two, but both are pointers referencing the same single object.
    Best regards,
    Igor

  3. #3
    Join Date
    Mar 2010
    Posts
    74

    Re: How make visible ListCtrl ?

    Quote Originally Posted by Igor Vartanov View Post
    Afraid you either don't understand the real situation (what looks more probable to me) or fail to explain it correctly. According to your One = ( Class _One_Definition *) Two I would say One is not a copy of Two, but both are pointers referencing the same single object.
    From formal point of view you are right. There is no copy operation between both objects.
    But this remark doesnot key to solution, how fire oblect to user.

  4. #4
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,607

    Re: How make visible ListCtrl ?

    Before talking about solution you need to identify your problem. Now the problem I can see is your description is a total mess. If you need to show window you use ShowWindow. But in the latter case what was the whole essay about One and Two for?
    Best regards,
    Igor

  5. #5
    Join Date
    Mar 2010
    Posts
    74

    Re: How make visible ListCtrl ?

    Igor, thanks for your efforts,
    problem solved already.

  6. #6
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,607

    Re: How make visible ListCtrl ?

    Problem? What problem?
    Best regards,
    Igor

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)