Striker
Computer
- May 23, 2001
- 143
First let me explain what I am needing to do. I am attempting to modify a toolbar (enable, disable, widen the button) that is part of a VBA enabled application, however the problem lies in the fact that there is no API function that I can use to directly modify the button (that I am aware of). I have attempted to enable and/or disable the buttons by enumerating the child windows of the parent application ...
EnumChildWindows Application.HWND, AddressOf(EnumChildCallbackProc)
I can grab the correct toolbar, but I am not able to find the structure or mechanism by which I can send the message to the button.
For example where tbhWnd is the toolbar &H401 is TB_ENABLEBUTTON (but how do I get the button ID for ?????) and where False is to disable the button....
SendMessage tbhWnd, &H401, ?????, False
Any help will be greatly appreciated....
Incedently the VBA toolbar access from the application controls do not allow the enabling/disabling of buttons, which is my primary need.
EnumChildWindows Application.HWND, AddressOf(EnumChildCallbackProc)
I can grab the correct toolbar, but I am not able to find the structure or mechanism by which I can send the message to the button.
For example where tbhWnd is the toolbar &H401 is TB_ENABLEBUTTON (but how do I get the button ID for ?????) and where False is to disable the button....
SendMessage tbhWnd, &H401, ?????, False
Any help will be greatly appreciated....
Incedently the VBA toolbar access from the application controls do not allow the enabling/disabling of buttons, which is my primary need.