F
Faccey
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm1.WMActivate(var Msg: TWMACTIVATE);<br>begin<br> if Msg.Active=WA_INACTIVE then<br> begin<br> Form1.Label1.Caption:='Inactive';<br> Form1.Label2.Caption:='None';<br> end;<br> if Msg.Active=WA_CLICKACTIVE then<br> begin<br> Form1.Label2.Caption:='Active';<br> Form1.Label1.Caption:='None';<br> end;<br> showmessage('The Form is being activating.');<br>end;<br> 以上代码发生异常,为什么呢??