Posts: 1,058
Threads: 367
Joined: Oct 2007
I wonder weather it is possible to trigger action on a running dialog using an event initiated in another thread. Is it likely that WM_NOTIFY feels, somehow, when an event is set by a thread?
Any advice is mostly welcome.
Posts: 12,140
Threads: 142
Joined: Dec 2002
Send or post a message in range WM_APP...0xBFFF.
another thread:
SendMessage(dialogHandle WM_APP+1 0 0)
dialog procedure:
,case WM_APP+1
,out "action"
Posts: 1,058
Threads: 367
Joined: Oct 2007
Posts: 1,058
Threads: 367
Joined: Oct 2007
Dear Gintaras,
I used the following code to pass parameters from the thread to the dialog :
Macro
temp01
type RCt ~tzuni #tam
RCt x
x.tzuni="Some string value"
x.tam=123
int dialogHandle=win("TamTiriri" "#32770")
SendMessage(dialogHandle WM_APP+1 0 &x)
to the dialog :
Function
DialogExtCall
,case WM_APP+1
,out "action"
,RCt* x=+lParam
,RCDlg=x.tzuni
,_i=x.tam
,out F"{RCDlg} {_i}"
It works. However, I would appreciate it, if you could confirm its correctness.
Posts: 12,140
Threads: 142
Joined: Dec 2002