Posts: 160
Threads: 43
Joined: Sep 2007
Would Function contain value of T here.
Test :int hwnd=val(_command);int- T=(GetToolbarOwner(hwnd));mac "Function" * $QM$\file.ico
or would need to be
Test :int hwnd=val(_command);int- T=(GetToolbarOwner(hwnd));Function * $QM$\file.ico
or not posible?
Posts: 12,073
Threads: 140
Joined: Dec 2002
In example 1, Function cannot use T, because mac creates new thread.
In example 2, Function can use T, but need to declare it there: int- T.
In both cases, it is better to pass the value as an argument, not as a thread variable. In example 2 you can even place val(_command) etc in Function, because it can use _command, because it is a thread variable.
Posts: 160
Threads: 43
Joined: Sep 2007
so
Toolbar
Test :int hwnd=val(_command);int T=(GetToolbarOwner(hwnd));Function(T) * $QM$\file.ico
Function
function# T
is this how you mean
Posts: 12,073
Threads: 140
Joined: Dec 2002
Yes.
Or:
Toolbar
Test :Function * $QM$\file.ico
Function
int hwnd=val(_command);int T=(GetToolbarOwner(hwnd));
Or:
Toolbar
Test :int hwnd=val(_command);int T=(GetToolbarOwner(hwnd));mac "Function" "" T * $QM$\file.ico
Function
function# T
Or:
Toolbar
Test :mac "Function" _command * $QM$\file.ico
Function
int hwnd=val(_command);int T=(GetToolbarOwner(hwnd));
Posts: 160
Threads: 43
Joined: Sep 2007
cheers gint first one works fine