Archived

This topic is now archived and is closed to further replies.

_Z

Cpp releated question (COMPICATED)

Recommended Posts

First of all, if you want to help, get www.kivilinn.tartu.ee/z (theres a link to a zip file, 49 kb, get it) The problem is: there is a long bar (the longest, when you launch the app and the screen appears), click it. type some letters try pushing space, in the left lower corner appears a message : button1 clicked. This may not happen, why it does...explore the code...any help would be VERY appreciated...please

Share this post


Link to post
Share on other sites
I haven''t downloaded the code, but you say when they user presses space, that a button recieves a click message, well that must mean that the button has focus cos when you press space on a button and it has focus, it sends a click message to the parent window. The other keys are all going to the button but they dont do the click, only the spacebar does. You either have to take the focus off the button, remove the button or disable the button, or not allow the button to be pressed by pressing the spacebar when it has focus, but you shouldn''t really do that, as I said I haven''t downloaded the code so I''m not sure exactly what you want to do with this.

And why is this complicated ??

FatalXC

Share this post


Link to post
Share on other sites
Finally I solved my problem...I disabled all keypad keys (except for enter).
It took me a while to understand, that wParam in WM_KEYDOWN and wParam in WM_CHAR ain''t the same. When I got that, everything went smoothly, no more mysterious WM_(R/L)BUTTONDOWN messages appeared.
And of corse thanks to you, FatalXC for help...dmn it''s good, when things workh how you want em to...))

Share this post


Link to post
Share on other sites