# The MSG structure contains message information from a thread's message queue. # # [*Typedef*] struct { HWND hwnd; UINT message; WPARAM wParam; LPARAM lParam; DWORD time; POINT pt } # MSG; # # hwnd:: Handle to the window whose window procedure receives the message. hwnd is NULL when the message # is a thread message. # message:: Specifies the message identifier. Applications can only use the low word; the high word is # reserved by the system. # wParam:: Specifies additional information about the message. The exact meaning depends on the value of # the message member. # lParam:: Specifies additional information about the message. The exact meaning depends on the value of # the message member. # time:: Specifies the time at which the message was posted. # pt:: Specifies the cursor position, in screen coordinates, when the message was posted. # -------- class MSG < FFI::Struct layout :hwnd, :HWND, :message, :UINT, :w_param, :WPARAM, :l_param, :LPARAM, :time, :DWORD, :pt, :POINT end