Help solving WS_EX_NOACTIVATE flag causing filtering of keyboard messages.

RL Chen 265 信誉分
2024-02-23T14:37:35.3966667+00:00

I have added the WS_EX_NOACTIVATE flag to my window, which causes keyboard messages to occur to the window behind it, but mouse messages do not, but I don't want the window keyboard messages to occur to the window behind it, and my program wants to handle the window keyboard messages, and at the same time I need the window not to be activated, is there any way to do this?

开发人员技术 | C++
开发人员技术 | C++
一种通用的高级编程语言,作为 C 编程语言的扩展而创建,除了用于低级别内存操作的功能外,还具有面向对象、泛型和功能性等特点。
{count} 票

1 个答案

排序依据: 非常有帮助
  1. RL Chen 265 信誉分
    2024-02-26T07:54:02.3+00:00

    Sorry, I've solved this problem using the keyboard hook function, thanks for your patience!

    0 个注释 无注释

你的答案

提问者可以将答案标记为“已接受”,版主可以将答案标记为“已推荐”,这有助于用户了解答案是否解决了提问者的问题。