How to make scroll bar for MFC?

This is a discussion on How to make scroll bar for MFC? within the Windows Programming forums, part of the Platform Specific Boards category; Hello. I have created a MFC project that creates a bitmap picture from a binary data file. The problem is ...

  1. #1
    Registered User
    Join Date
    Jan 2003
    Posts
    12

    How to make scroll bar for MFC?

    Hello.

    I have created a MFC project that creates a bitmap picture from a binary data file.

    The problem is that the picture that is being created is to big for the screen, so I want to put in scroll bars, so that I can view the whole picture.

    I see al lot of tutorials for MFC using document view architecture, but I'm not using that. Just plain Mainframe and Childview. The scrollbars are going to be created in the childview.

    Can anybody give me some tips on how to proceed?

    hoping for help

    Kristian

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    One solution is CSrollView.

    Kuphryn

  3. #3
    Registered User
    Join Date
    Jan 2003
    Posts
    12
    But can you use this when you are not using document/view? But a simple project with only childview and mainframe classes.

    and so, how??

    Kristian

  4. #4
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    Derive a class from whatever parents you want.

    Kuphryn

  5. #5
    Registered User
    Join Date
    Jan 2003
    Posts
    12
    I tryed doing that.

    But do you have to manually link it to the childview in some way?

    Kristian

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help with edit box and vert scroll
    By AndewWood in forum Windows Programming
    Replies: 11
    Last Post: 01-08-2008, 01:00 AM
  2. Scroll bar help
    By rEtard in forum Windows Programming
    Replies: 8
    Last Post: 05-17-2005, 02:50 PM
  3. Wm-hscroll
    By bigdan43 in forum C++ Programming
    Replies: 1
    Last Post: 04-20-2005, 09:59 AM
  4. make Child Dialog not Popup?
    By Zeusbwr in forum Windows Programming
    Replies: 5
    Last Post: 04-08-2005, 02:42 PM
  5. Someone guide me here..
    By xeddiex in forum Windows Programming
    Replies: 3
    Last Post: 04-04-2005, 12:12 AM

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