Hi MrBCX:
Vic McClung's MSGHANDLER / CMDHANDLER procedures need an update to handle returns, if they occur, from 64 bit SendMessage functions.
Sendmessage function has this syntax
LRESULT SendMessage(
[in] HWND hWnd,
[in] UINT Msg,
[in] WPARAM wParam,
[in] LPARAM lParam
);
LRESULT is declared in WinDef.h as
typedef LONG_PTR LRESULT;
and LONG_PTR is declared in BaseTsd.h as
#if defined(_WIN64)
typedef __int64 LONG_PTR;
#else
typedef long LONG_PTR;
#endif
therefore Vic's BCX code
SUB ProcessMsgHandler
' MSGHANDLER procedure or CMDHANDLER procedure
FastLexer(Src$, ", ()", "")
Src$ = "FUNCTION " + Stk$[2] + " OPTIONAL (hWnd AS HWND, wParam AS WPARAM, lParam AS LPARAM, LReturn AS LONG=0) AS LONG"
Inject(Src$)
Src$ = ""
END SUB ' ProcessMsgHandler
should be altered to
SUB ProcessMsgHandler
' MSGHANDLER procedure or CMDHANDLER procedure
FastLexer(Src$, ", ()", "")
Src$ = "FUNCTION " + Stk$[2] + " OPTIONAL (hWnd AS HWND, wParam AS WPARAM, lParam AS LPARAM, LReturn AS LRESULT=0) AS LRESULT"
Inject(Src$)
Src$ = ""
END SUB ' ProcessMsgHandler