-
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.
-
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.
-
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.
-
Sounds like a pager control may suit your purposes.
-
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.