Quote Originally Posted by Seniorchef View Post
I have some issues with the RTF control (btw I suspect similar issues with other controls from the VBCCR.ocx).
It took me a while to find out, but here I am:
Some properties e.g. setting the Scrollbars property make the control to recreate itself (by calling some ReCreateRichTextBox()).
This makes the scrollbars not respond anymore to mouse dragging (at least, in my app it is) or mouse clicks. Also the mousewheel stops scrolling the scrollbar but scrolling the contents still works.
I suspect this is because the handle of the control window changes. I also see that my codejock skin control is getting out of sync.
As far as I understand this is by design and cannot be altered(?) If so, everybody using the controls, be careful when altering properties in controls that may not be altered (mostly properties that Microsofts MsComCtl ff restricts from altering during runtime), e.g. Scrollbars, Multiline, RightToLeft and more.
If I'm wrong then It would be great to correct the bug because this restriction was one of the reasons to switch to VBCCR-Controls.
You mean how to prevent the window handle change? Difficult, as it's done for a reason.

When you know it will be changed you can prepare. Save the new window handle, change the subclasses. Means cancel the subclasses before and create new ones afterwards.

Or did I missunderstand?