hi
i've a dockable pane in my program with three child windows, a tab ctrl and two toolbox-like windows. since my program's window may be resized by user, the dockable pane should have vertical and horizontal scrollbars which have to get visible when required, so that the tools may be exposed if have got hidden. sorry if i couldn't describe better. in brief, a dockable pane or the two toolbox child windows inside it should have scrollbars. the two windows are not shown at the same time. they're toggled with the tab ctrl.
first, let me know which one is better? putting scrollbars for the toolbox windows or for the whole pane? i think it's better to put scrollbars for the toolbox windows, since if i put them for the whole pane, tab ctrl is also scrolled.
then, the problem is that when i click on the scrollbars it seems that the mouse messages are not received by the scrollbars and they're received by the pane itself instead. the pane responses to the mouse messages by getting undocked!
what i want as ideal is that:
- when a tool ctrl is clicked the tool ctrl window receives the click (now this happens)
- when a scrollbar is clicked the scrollbar receives the click (it's not the case now)
- when i click on the area of the toolbox which is outside of all tool ctrls the pane is undocked (it's the case)
i think i've to create scrollbar ctrls instead of enabling WS_VSCROLL and WS_HSCROLL styles of the pane or the toolbox ctrls.
please help me find how to go on.
thx