【发布时间】:2020-10-23 20:56:04
【问题描述】:
VCL TMessage 类提供Message、WParam 和LParam 成员,但窗口消息有更多成员:
typedef struct tagMSG {
HWND hwnd;
UINT message;
WPARAM wParam;
LPARAM lParam;
DWORD time;
POINT pt;
DWORD lPrivate;
} MSG, *PMSG, *NPMSG, *LPMSG;
hwnd、time、pt 和 lPrivate 成员在哪里?我特别需要time 参数。
有没有办法访问构造 TMessage 的原始消息(或任何其他获取 time 参数的方法)?
我正在处理我在TComponent::WndProc(Winapi::Messages::TMessage &Message) 中的消息。
【问题讨论】:
标签: winapi message vcl c++builder-10.4-sydney