03-03-2009, 04:07 AM
I verified that val(_command) and TriggerWindow return the toolbar handle not the owner handle. Not sure why. As an alternative, check the "Activate Owner" option (right click on toolbar) so that the Notepad window will be activated when the toolbar is used. Then, use "int+ c=win" to get the active window (Notepad).
