CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2012
    Posts
    2

    CChildFrame Buffer

    I'm working on a project and can't figure out what seems to be a simple task. The project is created with Visual Studio 2010 as a MDI with tabs. I the view is derived from CListCtrl. I've programmed it to add items to the list. The problems I am having is that I would like to have a little bit of blank space in the child frame at the bottom of the list. Seems simple enough but I cannot figure out how. I've tried MoveWindow and SetWindowPos in the CChildFrame OnCreate Function to no avail. Please help.

  2. #2
    VictorN's Avatar
    VictorN is online now Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: CChildFrame Buffer

    How are going to use such a "lank space in the child frame at the bottom of the list"?
    Perhaps, you need something like splitter window?
    Victor Nijegorodov

  3. #3
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,635

    Re: CChildFrame Buffer

    How do you derive a view from CListCtrl? Perhaps you should derive it from CFormView and add a list control to it.

  4. #4
    VictorN's Avatar
    VictorN is online now Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: CChildFrame Buffer

    Quote Originally Posted by GCDEF View Post
    How do you derive a view from CListCtrl? Perhaps you should derive it from CFormView and add a list control to it.
    I guess OP meant CListView, not CListCtrl...
    However, the idea to use CFormView derived class with a CListCtrl seems to be pretty good!
    Victor Nijegorodov

  5. #5
    Join Date
    Sep 2012
    Posts
    2

    Re: CChildFrame Buffer

    Yes Victor, CListView. It seems like it would be an easy thing to do but I guess not.

  6. #6
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,635

    Re: CChildFrame Buffer

    Quote Originally Posted by JimiRaveon View Post
    Yes Victor, CListView. It seems like it would be an easy thing to do but I guess not.
    It's very easy with a CFormView

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured