开发者

Why arrow keys are not getnerating WM_KEYDOWN message VC++?

开发者 https://www.devze.com 2023-01-19 22:51 出处:网络
I am created a 开发者_开发知识库custom window and want to handle arrow keys ... But i don\'t know why they don\'t generate wm_keydown message ??I think for child windows wm_getdlgcode is necessary fo

I am created a 开发者_开发知识库custom window and want to handle arrow keys ...

But i don't know why they don't generate wm_keydown message ??


I think for child windows wm_getdlgcode is necessary for getting messages for arrow keys ,but in case of popup windows it not required.


Is your window derived from CWnd? Are you getting other Windows messages & keyboard messages? Is this a SDI/MDI or dialog based app? Can you post some small sample code? I've written many programs that get keyboard notifications

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号