To WoF:
It seems with:Code:Const FUNC_CWP As String = "CallWindowProcA" Const FUNC_EBM As String = "EbMode" Const FUNC_SWL As String = "SetWindowLongA" Const MOD_USER As String = "user32" Const MOD_VBA5 As String = "vba5" Const MOD_VBA6 As String = "vba6"
and this is an address of CallWindowProc function when run the usercontrol:Code:Declare Function CallWindowProc Lib "user32" Alias "CallWindowProcA" (ByVal lpPrevWndFunc As Long, ByVal hWnd As Long, ByVal Msg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
It doesn't change anything of user32.dll or VB6.exe and i don't known what happen on your system?!.Code:sHex = "5589E583C4F85731C08945FC8945F8EB0EE80000000083F802742185C07424E830000000837DF800750AE838000000E84D00" & _ "00005F8B45FCC9C21000E826000000EBF168000000006AFCFF7508E800000000EBE031D24ABF00000000B900000000E82D00" & _ "0000C3FF7514FF7510FF750CFF75086800000000E8000000008945FCC331D2BF00000000B900000000E801000000C3E33209" & _ "C978078B450CF2AF75278D4514508D4510508D450C508D4508508D45FC508D45F85052B800000000508B00FF90A4070000C3"
I found this code from some usercontrols on planetsourecode and it maybe the seem with SSubTimer.dll at vbaccelerator is used to subclassing for the usercontrol.
To dglienna:
It 's an edit control with unicode supported. I uses it to replace the standard Textbox control in vb6 that not support unicode for my language (Vietnamese). It is written finally and had only one bug that i concerned above.It seemed to be a text editor that did something with unicode.
You are subclassing things.
Explain what you are trying to do. What does the program do?
How do you use it? What for?
I thinks the cause of bug is: the usercontrol preview all key when i return forcus to my control by tab key. But i can not fix it. Please help me!.




Reply With Quote