Hi,
I have just recently figured out how to display the Find&Replace dialogs. Can anyone show me how to capture when the user has clicked on the Find Next button? I have an idea but I am NOT sure if I am doing this correctly. I tried to register FINDMSGSTRING message string.

FINDMSGSTRING db "commdlg_FindReplace",0
uFindReplaceMsg DWORD ?

invoke RegisterWindowMessage,addr FINDMSGSTRING
mov uFindReplaceMsg,eax

I tried to capture when the user has clicked on the Find Next button in the WndProc procedure.

.ELSEIF uMsg==uFindReplaceMsg
;user clicked on the FindText dialog

When I try to assemble I get this error message.
A2070:invalid instruction operands

If I omit,
.ELSEIF uMsg==uFindReplaceMsg
;user clicked on the FindText dialog
I can assemble.

Thank You!
Posted on 2003-02-02 15:59:24 by bgong68
You can't compare 'memory' to 'memory'.

Try:
mov eax,uFindReplaceMsg
.ELSEIF uMsg==eax

Note:
This will assemble, but I don't know that it will
fix your problem.
Posted on 2003-02-02 20:03:25 by anon
Hi Anon,
I am now able to capture when the dialog has been clicked on. It will take me some time to figure out how to capture when it is actually the Find Next button or the Replace button.
Thanks,
Barry
Posted on 2003-02-02 22:22:22 by bgong68