flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
pete
Is the handle, returned by LoadAccelerators ok? Check eax for 0 (function failed) before saving the handle to memory.
|
|||
![]() |
|
frech
I tried, it seems to be ok. I enclose a zip file with the program until now.
|
|||||||||||
![]() |
|
pete
Why not use hwnd_frame handle instead of hwnd_client?
Code: invoke TranslateAccelerator,[hwnd_frame],[hAccel],msg Second, instead of comparing whole wparam with the ID, only compare the lowerword of wparam! Code: cmp word[wparam],IDM_NEW je .fm_new |
|||
![]() |
|
frech
Thx pete! Now it works perfectly! I've tried using [hwnd_frame], but without result. I supposed that just comparing wparam was enough, I didn't imagine that comparing the whole wparam was the origin of the problem... Now I added also the other accelerators I need for the moment. Thanks, really thanks!
|
|||
![]() |
|
pete
Make use of dbmon.exe and OutputDebugString Function; these help you when debugging your applications!
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.