Simulating ToolBar Press
-
How can I simulate a toolbar press, not just the PressButton function since this does not call the function, but the actuall calling of the function related to the toolbar button. Cheers Asim Asim Hussain e: asim@jawache.net w: www.jawache.net
-
How can I simulate a toolbar press, not just the PressButton function since this does not call the function, but the actuall calling of the function related to the toolbar button. Cheers Asim Asim Hussain e: asim@jawache.net w: www.jawache.net
Can you not just send yourself the correct WM_COMMAND message? AfxGetApp()->SendMessage(WM_COMMAND, ID_TOOLBAR_BUTTON, 0); Roger Allen Sonork 100.10016 WHats brown and sticky? A stick or some smelly stuff!
-
Can you not just send yourself the correct WM_COMMAND message? AfxGetApp()->SendMessage(WM_COMMAND, ID_TOOLBAR_BUTTON, 0); Roger Allen Sonork 100.10016 WHats brown and sticky? A stick or some smelly stuff!
Thanks... Just figured that one out for myself.. i was using AfxGetApp()->SendMessage(ID_TOOLBAR_BUTTON, 0, 0); and wondering why it wasn't working?!?!?!? Thanks again... Asim. Asim Hussain e: asim@jawache.net w: www.jawache.net