It's a handle, so make it a WXHANDLE rather than WXLPARAM and avoid casting the handle when calling it (there is still a cast when calling ::SendMessage() inside this function, but this is unavoidable and this cast was already there anyhow). No real changes.