Re: ToolBar & Timer problem?
It looks like you used a double equal in your if statement. That would be the obvious answer. You should include more code, though. It's hard to tell from one line.
Re: ToolBar & Timer problem?
I have solved the problem.
Now I have another!
My app creates toolbars like Netobjects fusion.
When I hold the left mouse button on a toolbar button it checks immediatley(standard mfc only gray's it) in the leftbutton down message handler,
I set a timer when the interval comes a popup toolbar appears below the button, it disapears when the left button is let up, if you move the mouise with the leftbutton down over a button in the popup toolbar, it selects it into the original toolbar.
still with me.
When I hold the left button down on a checked button the popup appears but does not recieve focus. but If I hold down on an unchecked button the popup toolbar apears and recieves mouse messages.
This is standard with all toolbars try with an app on your machine, if you press on an unchecked
button you can move the mouse onto another button
and select it by letting the mouse button up.
but not with a checked button.
any suggestions