Re: Scrollbar range in win32
- Posted by David Cuny <dcuny at LANSET.COM> Jan 23, 2000
- 499 views
Judith Evans wrote: > Scrollbar range in win32... A number of people have reported problems with the scrollbar - the range is apparently now starting at zero instead of 1, and other issues. I suspect the two are related. I'm not sure why it broke, since none of the changes directly effected the scrollbar. I haven't had a chance to look at the code yet. I'm beginning to wonder if I botched something on a global level, since I can't think of why command_exec() would break, either. BTW, I suspect the reason the button in the ToolBar is triggering twice is because it's sending messages to all it's parents: button -> toolbar -> parent window If this is the case, it may be causing problems if there is a group control: button -> group control -> parent window or any place that a control is embedded in another, since I added code so that the tab control could trap messages. I suspect that *all* controls that rely on WM_COMMAND messages may end up triggering twice. Adding a test to make sure the reciever of the WM_COMMAND message is really the parent should prevent retriggering. Thanks! -- David Cuny