C
cjdbd
Unregistered / Unconfirmed
GUEST, unregistred user!
aatom:=globaladdatom('hot key');<br>RegisterHotKey(handle,aatom,MOD_ALT,vk_f12);<br>aatom1:=globaladdatom('hot key');<br>RegisterHotKey(handle,aatom1,MOD_ALT,vk_f11);<br>1.<br>程序运行之后,只有alt+f11这可以被响应,<br>第现一个alt+f12却不能用??<br>2.<br>if (msg.LParamLo=MOD_ALT) and (msg.LParamHi=VK_F12) then<br> begin<br> if messagebox(application.Handle,'dddd','yyyy',MB_OKCANCEL)=IDOK then<br> timer1.Enabled:=false;<br> end;<br><br> if (msg.LParamLo=MOD_ALT) and (msg.LParamHi=VK_F11) then<br> begin<br> if messagebox(application.Handle,'kkkk','uuuuuu',MB_OKCANCEL)=IDOK then<br> timer1.Enabled:=true;<br> end;<br>用messagebox弹出的对话框总在后面???<br>如何让它在最前面