MDI主程序与DLL子程序的Tab、Enter、光标键及激活问题?(100)

B

bbscom

Unregistered / Unconfirmed
GUEST, unregistred user!
主程序EXE是MDI窗体与调用DLL子程序窗体,当Tab、Enter、光标键等键盘操作时,焦点怎么会跑到主程序里呀?1、怎么解决键盘操作是在DLL窗体里?2、如何得知子窗体被激活?
 
ShowModalFreeAndNil
 
BOOL FreeLibrary( HMODULE hLibModule // handle to loaded library module ); ParametershLibModuleIdentifies the loaded library module. The LoadLibrary or GetModuleHandle function returns this handle. Return ValuesIf the function succeeds, the return value is nonzero.If the function fails, the return value is zero. To get extended error information, call GetLastError. FreeLibrary并不会修改参数hLibModule的值,只要返回值不会0,则代表释放成功了
 
ysai,也有分。请大家帮助解决问题,谢谢!!!
 
是否可以用 showing来判断窗体是否 被激活?
 
可以这样,其实子窗体激活时触发 onActivate 事件,你可以捕捉此事件,并且发送消息给主窗体。即可!
 
frmMain.ActiveMDIChild
 
WM_MDIACTIVATE
 
frmMain.ActiveMDIChild
 
以上几位高手都有分,请大家帮助谢谢!!!现在请大家解决Tab、Enter、光标键等键盘操作异常问题。谢谢!!!
 
最好的方法就是带包
 
只能带包 ,这个问题我也试了很多办法。都不行。
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
顶部