Guest_imported
New member
- Jan 1, 1970
- 0
Lucky
Yes I am trying to get the messages between that range these are
nLoadMsg = RegisterWindowMessage("CCSLoad"
nQueryMsg = RegisterWindowMessage("CCSQuery"
nLoadRspMsg = RegisterWindowMessage("CNCLoadResponse"
nStartedMsg = RegisterWindowMessage("CNCStarted"
nInterruptedMsg = RegisterWindowMessage("CNCInterrupted"
nResumedMsg = RegisterWindowMessage("CNCResumed"
nFinishedMsg = RegisterWindowMessage("CNCFinished"
nStatusMsg = RegisterWindowMessage("CNCStatus"
So i think I need to give some parameters to windowproc, am i right?
Public Sub Subclass(hWnd As Long)
m_hWnd = hWnd
lpPrevProc = SetWindowLong(m_hWnd, GWL_WNDPROC, AddressOf WindowProc '(->Here)' )
End Sub
I also changed the select sentence to
Public Function WindowProc(ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Select Case wParam
.
.
.
When I run my application it just disapears when it runs the function Subclass
Thanks
Yes I am trying to get the messages between that range these are
nLoadMsg = RegisterWindowMessage("CCSLoad"
nQueryMsg = RegisterWindowMessage("CCSQuery"
nLoadRspMsg = RegisterWindowMessage("CNCLoadResponse"
nStartedMsg = RegisterWindowMessage("CNCStarted"
nInterruptedMsg = RegisterWindowMessage("CNCInterrupted"
nResumedMsg = RegisterWindowMessage("CNCResumed"
nFinishedMsg = RegisterWindowMessage("CNCFinished"
nStatusMsg = RegisterWindowMessage("CNCStatus"
So i think I need to give some parameters to windowproc, am i right?
Public Sub Subclass(hWnd As Long)
m_hWnd = hWnd
lpPrevProc = SetWindowLong(m_hWnd, GWL_WNDPROC, AddressOf WindowProc '(->Here)' )
End Sub
I also changed the select sentence to
Public Function WindowProc(ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Select Case wParam
.
.
.
When I run my application it just disapears when it runs the function Subclass
Thanks