I like to use SetWindowLong(hWnd, %GWL_USERDATA , VARPTR(udt)) when creating dialogs to avoid global variables. This can not be done in DDT because DDT uses %GWL_USERDATA.
Instead i have tried the following method: Define
%DDT_USERDATA = %DWL_MSGRESULT
and then use SetWindowLong(hWnd, %DDT_USERDATA , VARPTR(udt)).
It seems to work OK. But is it OK?
%DWL_MSGRESULT is explained as: "Sets the return value of a message processed in the dialog box procedure".
Regards
Peter
Instead i have tried the following method: Define
%DDT_USERDATA = %DWL_MSGRESULT
and then use SetWindowLong(hWnd, %DDT_USERDATA , VARPTR(udt)).
It seems to work OK. But is it OK?
%DWL_MSGRESULT is explained as: "Sets the return value of a message processed in the dialog box procedure".
Regards
Peter
Comment