在delphi的消息循环中,有如下代码
if not IsHintMsg(Msg) and not Handled and not IsMDIMsg(Msg) and
not IsKeyMsg(Msg) and not IsDlgMsg(Msg) then
// 思考:not Handled 为什么不放在最前?
begin
TranslateMessage(Msg); // 处理字符转换
DispatchMessage(Msg); // 调用 WndClass.lpfnWndProc
end;
上面代码中是如何处理这些消息的?(处理源码看起来太费劲)请高手用几句话指点一下即可.
if not IsHintMsg(Msg) and not Handled and not IsMDIMsg(Msg) and
not IsKeyMsg(Msg) and not IsDlgMsg(Msg) then
// 思考:not Handled 为什么不放在最前?
begin
TranslateMessage(Msg); // 处理字符转换
DispatchMessage(Msg); // 调用 WndClass.lpfnWndProc
end;
上面代码中是如何处理这些消息的?(处理源码看起来太费劲)请高手用几句话指点一下即可.
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货