Just downloaded the latest WTL9 and found that my CSplitterWindow (created using DDX_CONTROL) is not showing any cursor on splitter bar. I found that now the cursor is set in WM_CREATE handler. But the control is not getting WM_CREATE if I subclass static. So it doesn't perform OnCreate.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Well, this is rather unusual use of the splitter window. Note that this is
not a regression, it was not supported before either. OnCreate() handler
does more than just load the cursor.
We might add support for this use in the future by overriding
SubclassWindow(). In the meantime, you should do exactly what OnCreate()
does: load the cursor and call GetSystemSettings(). In addition to that you
should also call SetSplitterRect().
Just downloaded the latest WTL9 and found that my CSplitterWindow (created
using DDX_CONTROL) is not showing any cursor on splitter bar. I found that
now the cursor is set in WM_CREATE handler. But the control is not getting
WM_CREATE if I subclass static. So it doesn't perform OnCreate.
Thank you for the answer! Subclassing is a very convenient way to create a splitter. In WTL8 cursor initialization is in CSplitterImpl constructor and this is why it worked before. I hope that subclassing will be supported for CSplitterWindow some day...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you for the answer! Subclassing is a very convenient way to create a
splitter. In WTL8 cursor initialization is in CSplitterImpl constructor and
this is why it worked before. I hope that subclassing will be supported for
CSplitterWindow some day...
Just downloaded the latest WTL9 and found that my CSplitterWindow (created using DDX_CONTROL) is not showing any cursor on splitter bar. I found that now the cursor is set in WM_CREATE handler. But the control is not getting WM_CREATE if I subclass static. So it doesn't perform OnCreate.
Well, this is rather unusual use of the splitter window. Note that this is
not a regression, it was not supported before either. OnCreate() handler
does more than just load the cursor.
We might add support for this use in the future by overriding
SubclassWindow(). In the meantime, you should do exactly what OnCreate()
does: load the cursor and call GetSystemSettings(). In addition to that you
should also call SetSplitterRect().
Cheers,
Nenad
On Wed, Apr 23, 2014 at 5:27 AM, thims thims@users.sf.net wrote:
Thank you for the answer! Subclassing is a very convenient way to create a splitter. In WTL8 cursor initialization is in CSplitterImpl constructor and this is why it worked before. I hope that subclassing will be supported for CSplitterWindow some day...
I'll try to add it in for WTL9. Your responsibility will be to test it, so
we can have a good release :-)
Cheers,
Nenad
On Thu, Apr 24, 2014 at 4:34 AM, thims thims@users.sf.net wrote:
Great! Just tested it, works flawless!