Click to See Complete Forum and Search --> : ControlBar Docking Window


April 2nd, 1999, 05:10 PM
When adding tabs dynamically to my tabctrl object contained within a controlbar docking window, the contents of the tabctrl which is a listctrl are not being displayed. Only when I reposition the docking window are they drawn. I have tried the invalidate and update window functions but to no avail. Any suggestions would be greatly appreciated!!!
Thanks,
Caroline

Walter I An
April 2nd, 1999, 10:38 PM
I had a similar problem before.
I am not sure where your code is invalidating
and updating your listctrl. But instead of invalidate and
update function, I used "SetWindowPos()" function
with "&wndTop" as first parameter and
in OnWindowPosChanged() routine. Try it and let me know.

Good luck. :)

Walter I An

Alek
April 3rd, 1999, 05:02 PM
Make sure the parent window of listctrl and tabctrl is not the same. In this case is possible
your tabctrl to be drawn over the listctrl.