Author Topic: Looking for that winProc MSG tracker of Daves  (Read 626 times)

K_F

  • Member
  • *****
  • Posts: 1519
  • Anybody out there?
Looking for that winProc MSG tracker of Daves
« on: August 01, 2019, 06:02:44 AM »
Reveals messages sent to a windows procedure.

Tried searching for it here, and my disks.
Anyone know where it is
Thanks.
'Sire, Sire!... the peasants are Revolting !!!'
'Yes, they are.. aren't they....'

HSE

  • Member
  • *****
  • Posts: 1148
  • <AMD>< 7-32>
Re: Looking for that winProc MSG tracker of Daves
« Reply #1 on: August 01, 2019, 07:26:08 AM »
Dave use Spy++ from M$.

K_F

  • Member
  • *****
  • Posts: 1519
  • Anybody out there?
Re: Looking for that winProc MSG tracker of Daves
« Reply #2 on: August 02, 2019, 03:48:16 AM »
DednDave made a nice little utility of his own... not  the MS one.
'Sire, Sire!... the peasants are Revolting !!!'
'Yes, they are.. aren't they....'

jj2007

  • Member
  • *****
  • Posts: 9802
  • Assembler is fun ;-)
    • MasmBasic
Re: Looking for that winProc MSG tracker of Daves
« Reply #3 on: August 02, 2019, 04:01:25 AM »
GuiMenu equ @File, &Open, &Save, -, E&xit, @Edit, Undo, Copy, Paste
include \masm32\MasmBasic\Res\MbGui.asm
Event Message
  inc msgCount
  deb 4, "msg", chg:msgCount    ; see deb
GuiEnd



HSE

  • Member
  • *****
  • Posts: 1148
  • <AMD>< 7-32>
Re: Looking for that winProc MSG tracker of Daves
« Reply #4 on: August 02, 2019, 04:41:43 AM »
DednDave made a nice little utility of his own... not  the MS one.

He sugest Spy:
        http://masm32.com/board/index.php?topic=4453.msg47713#msg47713

Original (also free) application was Kirchmar Kobik (1999).

K_F

  • Member
  • *****
  • Posts: 1519
  • Anybody out there?
Re: Looking for that winProc MSG tracker of Daves
« Reply #5 on: August 02, 2019, 05:41:49 AM »
Thanks.. I'll try both.
;)
'Sire, Sire!... the peasants are Revolting !!!'
'Yes, they are.. aren't they....'

AW

  • Member
  • *****
  • Posts: 2442
  • Let's Make ASM Great Again!
Re: Looking for that winProc MSG tracker of Daves
« Reply #6 on: August 02, 2019, 06:46:13 AM »
spyxx.exe and spyxx_amd64.exe are distributed with VS 2019 and earlier.

Very old SDKs had the source code for spy.exe, which is sort of the same (32-bit).

K_F

  • Member
  • *****
  • Posts: 1519
  • Anybody out there?
Re: Looking for that winProc MSG tracker of Daves
« Reply #7 on: August 03, 2019, 06:27:13 AM »
I've had this weird problem, in that my MDI child proc was not recognising the WM_CREATE message, although Spyxx showed the message passing through this window proc ???.
I traced it down to the WM_CREATE section, setting MsgBox windows as an indication that the execution had arrived at that point.
This whole dam week, I've been trying different angles around this proc with Zip, Nudder, no result.

I cannot tell what I've done exactly after all this 'dancing around'.. but now it's working after going through the same set of code combinations many times.
Has anybody had this problem, or is it peculiar to the latest Masm64 'compiler'.

It has driven me nutz this week  :hmmm: :dazzled:
Oh.. I created the MDI Child window with the CreateWindowEx Function.


Code: [Select]
mTYPE_proc proc hWin:DWORD, uMsg:DWORD, wParam:DWORD, lParam:DWORD

; mov eax, uMsg
; RegVal eax
    .if uMsg == WM_CREATE
mov eax, 10810
RegVal eax
Invoke mTYPE_InitMem, Memory_Heap.h_MainHeap, c_MEMALLOC_8MB
RegVal eax
Invoke mTYPE_CreateControls,hWin
RegVal eax
.elseif uMsg == WM_MDICREATE
; mov eax, 10820
; RegVal eax
.endif

    invoke DefMDIChildProc,hWin,uMsg,wParam,lParam
    ret
mTYPE_proc endp
'Sire, Sire!... the peasants are Revolting !!!'
'Yes, they are.. aren't they....'

HSE

  • Member
  • *****
  • Posts: 1148
  • <AMD>< 7-32>
Re: Looking for that winProc MSG tracker of Daves
« Reply #8 on: August 03, 2019, 07:44:30 AM »
Oh.. I created the MDI Child window with the CreateWindowEx Function.

Why you don't try CreateMDIWindow?

K_F

  • Member
  • *****
  • Posts: 1519
  • Anybody out there?
Re: Looking for that winProc MSG tracker of Daves
« Reply #9 on: August 03, 2019, 08:40:30 AM »
Suppose I could.

Want to play more.. Subclassing..etc ;)
'Sire, Sire!... the peasants are Revolting !!!'
'Yes, they are.. aren't they....'