List View problem

This is a discussion on List View problem within the Windows Programming forums, part of the Platform Specific Boards category; I have a dialog based app, and on it I have a tab control. I have a couple of different ...

  1. #1
    Registered User
    Join Date
    Mar 2002
    Posts
    112

    List View problem

    I have a dialog based app, and on it I have a tab control. I have a couple of different tabs, and on each tab i have a List View control and a few other controls. When i open the program, and I click on one of the List-views(thereby giving it focus) and then minimize the program and restore the program, the whole list view goes grey. All of the other controls show up fine except the List Views. Also if i click on a different control(giving it focus), like a button, then minimize and restore the program, the list views show up fine. Can someone tell me how to make the list views show up correctly when you minimize and restore the program?

    Also another small question. How can you delete characters from a file using "fstream.h"?

    like if I have a file like this:
    hello good sir
    what a fine day it is
    yes indeed

    and while im reading from the file and the cursor is at "what" on the second line, how would i delete everything after this point, but nothing on the third line?

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    One solution is to override OnSize() and move the objects accordingly.

    Kuphryn

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 6
    Last Post: 03-02-2005, 02:45 AM
  2. problem with structures and linked list
    By Gkitty in forum C Programming
    Replies: 6
    Last Post: 12-12-2002, 06:40 PM
  3. List class
    By SilasP in forum C++ Programming
    Replies: 0
    Last Post: 02-10-2002, 05:20 PM
  4. Linked list with two class types within template.
    By SilasP in forum C++ Programming
    Replies: 3
    Last Post: 02-09-2002, 06:13 AM
  5. singly linked list
    By clarinetster in forum C Programming
    Replies: 2
    Last Post: 08-26-2001, 11:21 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21