// JP opened flex table

Click to See Complete Forum and Search --> : Scrollable Dialog ?


Ali Imran
February 22nd, 2007, 06:58 PM
I am looking for an easiest way to create a dialog which has an automatically scrollbar appearing when controls are more than the displayed client area, both horizontal and vertical. And when scrollbar is scrolled accordingly the invisible clientarea comes in view.

I actually need little child dialogs while being within SDI model.

Looking for easiest way, a source example is highly appreciated.


Any reply is highly appreciated.

regards

ovidiucucu
February 25th, 2007, 07:35 PM
In MFC this is no sweat, a piece of cake, a trifle... having all done, prepared, and ready to use in CFormView. :)

If not using MFC, it's "a little bit" more difficult because you have to handle WM_HSCROLL and WM_VSCROLL and move the dialog in its parent's client area, accordingly.

UnfitElf
February 25th, 2007, 08:21 PM
check out the following in the msdn:
ScrollWindowEx (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/scrollbars/scrollbarreference/scrollbarfunctions/scrollwindowex.asp)
SCROLLINFO (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/scrollbars/scrollbarreference/scrollbarstructures/scrollinfo.asp)

//JP added flex table