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

B

bbscom

Unregistered / Unconfirmed
GUEST, post messages is not allowed!
主程序EXE是MDI窗体与调用DLL子程序窗体,当Tab、Enter、光标键等键盘操作时,焦点怎么会跑到主程序里呀?1、怎么解决键盘操作是在DLL窗体里?2、如何得知子窗体被激活?
 
H

hhjjhhjj

Unregistered / Unconfirmed
GUEST, post messages is not allowed!
ShowModalFreeAndNil
 
Y

ysai

Unregistered / Unconfirmed
GUEST, post messages is not allowed!
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,则代表释放成功了
 
B

bbscom

Unregistered / Unconfirmed
GUEST, post messages is not allowed!
ysai,也有分。请大家帮助解决问题,谢谢!!!
 
D

duxing

Unregistered / Unconfirmed
GUEST, post messages is not allowed!
是否可以用 showing来判断窗体是否 被激活?
 
D

dorry

Unregistered / Unconfirmed
GUEST, post messages is not allowed!
可以这样,其实子窗体激活时触发 onActivate 事件,你可以捕捉此事件,并且发送消息给主窗体。即可!
 
B

Buddy.Sun

Unregistered / Unconfirmed
GUEST, post messages is not allowed!
frmMain.ActiveMDIChild
 
K

kkyy

Unregistered / Unconfirmed
GUEST, post messages is not allowed!
WM_MDIACTIVATE
 
G

greenwon

Unregistered / Unconfirmed
GUEST, post messages is not allowed!
frmMain.ActiveMDIChild
 
B

bbscom

Unregistered / Unconfirmed
GUEST, post messages is not allowed!
以上几位高手都有分,请大家帮助谢谢!!!现在请大家解决Tab、Enter、光标键等键盘操作异常问题。谢谢!!!
 
K

kkyy

Unregistered / Unconfirmed
GUEST, post messages is not allowed!
最好的方法就是带包
 
H

hdsh2134721

Unregistered / Unconfirmed
GUEST, post messages is not allowed!
只能带包 ,这个问题我也试了很多办法。都不行。
 
Top Bottom