Can I ask why? If I know what you are trying to accomplish I may be able to help you a bit better...
Printable View
Can I ask why? If I know what you are trying to accomplish I may be able to help you a bit better...
I need it for tab kontrol. I know how to show dialog with:
CDialog* pDialog = new CDialog;
pDialog->Create( NULL,this);
pDialog->MoveWindow(CRect(10,10,100,100),TRUE);
pDialog->ShowWindow(TRUE);
pDialog->UpdateWindow();
But I have problems with scroll bars. How to activate that.
The problem is that I need to show tab control on one part of Dialog (dialog1 for example). For "tabs" I use other dialogs (dialog2, dialog3 etc.).
Well dialog2 is bigger than area where I need to show it, so I need to use scroll bars of dialog2.
Nobody?
Ok, anyone know some good forum for c++, like vbforums.com is for Visual Basic?
I think the tab control has native support for this, try CTabCtrl.
You might want to use the CPropertySheet class...
You can also activate scroll bars in the dialog properties...
I don't really get what you want to do.
How to activate scroll bars?Quote:
Originally posted by CornedBee
You can also activate scroll bars in the dialog properties...
I could create Dialog like a child of some control, and show scrolls, but scroll bars do nothing.
I need to separate dialog window "show" size and dialog window "real" size. (Like when you need to show large picture (larger then picture box), you have it "real" size, and have a "show" size (size of picture box).
I need exactly the same the same thing, not for picture, but for one dialog in another dialog ( anybody understand? :D ):) :p :rolleyes:
I think if I saw scroll bars to scroll a dialog I'd immediatly uninstall the app...
In the MSVC dialog editor go to the dialog properties and select both Horizontal Scroll and Vertical Scroll. Is this what you want? (You'd need to handle the scroll messages, but that isn't that much of a problem)
OK, maybe I dont need dialog,
I just need to show about 20 edit boxes in one area of the dialog. That area is small, so I need to use scroll bars. I thought that is simple to do. Anyone know how to do it, or have some example about it?:confused:
As I said, reconsider that approach. It wouldn't be a sign of good style.
You can place scroll bar controls on the dialog and handle the messages with MoveWindow calls to the edit boxes...