10-17-2006, 08:22 AM
Toolbar owner window probably will be active when you click toolbar button. To identify active window, use win. For example, to resize it, can be used siz 100 100 win. Also, with many commands, if window is omitted, is used active window. For example, this also will work: siz 100 100. If the window is deactivated while the function runs, at the beginning store its handle into a variable and later use that variable:
int handle=win
...
siz 100 100 handle
Alternatively, you can get toolbar owner window handle using GetWindow and TriggerWindow. Example:
Function Button5
Toolbar
int handle=win
...
siz 100 100 handle
Alternatively, you can get toolbar owner window handle using GetWindow and TriggerWindow. Example:
Function Button5
Toolbar
