Sdi? Mdi? Frames?

This is a discussion on Sdi? Mdi? Frames? within the Windows Programming forums, part of the Platform Specific Boards category; I am trying to make a list of buttons. However, i want this list of buttons in a certain area, ...

  1. #1
    Registered User
    Join Date
    Apr 2006
    Posts
    137

    Sdi? Mdi? Frames?

    I am trying to make a list of buttons. However, i want this list of buttons in a certain area, sort of like a frame of a website.

    The problem is, having this frame be scrollable. So it may be longer than the actual window size. So I want to be able to auto generate some buttons, and then the user be able to scroll thru it. Sort of like a EDIT control, but with Controls rather than text. Something i can maybe do WS_VSCROLL with.

    I wasn't able to find any good links or tutorials on google, and i tried the winprog.org tutorial on MDI, and it just doesn't work.

    I don't think i want MDI, i think i need some sort of frame, but i dont know what it's called.

  2. #2
    Registered User
    Join Date
    Jan 2005
    Posts
    847
    Maybe something like this would work:
    Create a window that is large enough to contain all your buttons and place the buttons on it. Then make this window a child of a smaller window and then adjust it's co-ordinates as you scroll your parent window.

  3. #3
    Registered User
    Join Date
    Apr 2006
    Posts
    137
    I think i'm just gonna do a simpler method... seems complicated.

    Unless someone has done something like this before and can gimme links or advise or code :P.

  4. #4
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    Sounds like a pager control may suit your purposes.

  5. #5
    Registered User
    Join Date
    Apr 2006
    Posts
    137
    I think so. However, i think i would have to define the size myself, or maybe use another window and then TB_GETMAXSIZE... Because sounds like this is a good control for Toolbars mostly. Which is not what i want.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Editor design: Traditional MDI versus Tabbed MDI
    By psychopath in forum Game Programming
    Replies: 7
    Last Post: 01-22-2007, 07:48 AM
  2. Inserting text into MDI program
    By Rutabega in forum Windows Programming
    Replies: 0
    Last Post: 12-23-2005, 11:25 AM
  3. MDI Problem
    By Rare177 in forum Windows Programming
    Replies: 3
    Last Post: 04-12-2005, 02:29 PM
  4. mdi workspace
    By Elyubarov in forum Windows Programming
    Replies: 10
    Last Post: 04-03-2005, 04:40 PM
  5. changing from multiple-doc to single-doc
    By swordfish in forum C++ Programming
    Replies: 2
    Last Post: 08-31-2001, 08:52 PM

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