Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
is there a way to lable 2 windows
#4
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
Code:
Copy      Help
int handle=GetWindow(TriggerWindow GW_OWNER)
but id(129 handle)

Toolbar
Code:
Copy      Help
5 :Button5


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)