How do I display data in the Right Window in MFC.

This is a discussion on How do I display data in the Right Window in MFC. within the Windows Programming forums, part of the Platform Specific Boards category; I am using a Windows Explorer Style Split window in Visual C++ MFC. I want to know how to display ...

  1. #1
    Registered User
    Join Date
    Aug 2002
    Posts
    6

    How do I display data in the Right Window in MFC.

    I am using a Windows Explorer Style Split window in Visual C++ MFC. I want to know how to display data in the right window. I already have a tree view in the left window. For example, I have the Tree item, "Voltage", in my left window. When I click on "Voltage", how can I get something to display in the right window.

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    223

    get a pointer to the right window

    You must access the right view window through a pointer then do as you like
    zMan

  3. #3
    Registered User The Dog's Avatar
    Join Date
    May 2002
    Location
    Cape Town
    Posts
    788
    This code worked for me

    All i did was cast the return from AfxGetMainWnd() to the appropriate CListView pointer.
    Code:
    ( (CListView*)AfxGetMainWnd() )->Method();
    CListView would be the class that is used in your program for the listview, and Method() is the method you wish to call.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 6 measly errors
    By beene in forum Game Programming
    Replies: 11
    Last Post: 11-14-2006, 10:06 AM
  2. Linking OpenGL in Dev-C++
    By linkofazeroth in forum Game Programming
    Replies: 4
    Last Post: 09-13-2005, 10:17 AM
  3. My Window Class
    By Epo in forum Game Programming
    Replies: 2
    Last Post: 07-10-2005, 02:33 PM
  4. Warnings, warnings, warnings?
    By spentdome in forum C Programming
    Replies: 25
    Last Post: 05-27-2002, 06:49 PM
  5. Winamp Vis if anyone can help
    By Unregistered in forum Windows Programming
    Replies: 6
    Last Post: 01-26-2002, 11:43 PM

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