<br> TForm1 = class(TForm)<br> ...<br> protected<br> procedure WMSetFocus(var Msg: TWMSetFocus); message WM_SETFOCUS;<br> ...<br> end;<br><br>implememtation<br>...<br>procedure TForm1.WMSetFocus(var Msg: TWMSetFocus);<br>begin<br> ...<br> //你的处理<br> inherited;<br>end;<br>