flat assembler
Message board for the users of flat assembler.
Index
> Windows > [solved] How do I enable the Help button in file dialogs? |
Author |
|
bitRAKE 22 Jun 2021, 04:29
Maybe it's an explorer style and the hook proc is getting CDN_HELP notifications?
These things have changed so much through windows versions. If I created an example it's going to be the new notification mechanism. _________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
22 Jun 2021, 04:29 |
|
fasm14 22 Jun 2021, 08:44
The hook flag wasn't set before, but when I added it and a pointer to a procedure, it started receiving WM_NOTIFY messages; according to this, lparam has a pointer to an OFNOTIFY structure, with the notification message being the third dword in it, but when I do this
Code: mov ebx, [lparam] mov eax, [ebx] |
|||
22 Jun 2021, 08:44 |
|
bitRAKE 22 Jun 2021, 18:40
lParam is a pointer - NOT has a pointer.
(Do you use a debugger? Just throwing an INT3 in there and running would allow you to see what is happening.) The wording is rather brief in the English version - wonder if the Russian is any better? https://docs.microsoft.com/ru-ru/windows/win32/dlgbox/cdn-help Funny, enough google translation of the Russian is more exact than the English, lol! _________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
22 Jun 2021, 18:40 |
|
sinsi 22 Jun 2021, 20:53
HELPMSGSTRING is defined in the C++ headers as
Code: #define HELPMSGSTRING TEXT("commdlg_help") Shouldn't your code use this? Code: themessage du "commdlg_help",0 |
|||
22 Jun 2021, 20:53 |
|
fasm14 23 Jun 2021, 13:31
bitRAKE wrote: lParam is a pointer - NOT has a pointer. Thanks, I managed to get the -605 (CDN_HELP) code from lparam in the hook procedure with Code: mov ebx, [lparam] mov ebx, [ebx+8] Replacing "HELPMSGSTRING" with sinsi wrote:
|
|||
23 Jun 2021, 13:31 |
|
fasm14 24 Jun 2021, 08:43
I now realized that this
Code: mov ebx, [lparam] mov eax, [ebx] Code: mov ebx, [lparam] mov ebx, [ebx+8] Code: cmp [msg], WM_NOTIFY je continue1 ret continue1: |
|||
24 Jun 2021, 08:43 |
|
bitRAKE 25 Jun 2021, 01:07
My comment was in error. Too much time in 64-bit.
_________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
25 Jun 2021, 01:07 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.