Help solving WS_EX_NOACTIVATE flag causing filtering of keyboard messages.

RL Chen 250 信誉分
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 编程语言的扩展而创建,除了用于低级别内存操作的功能外,还具有面向对象、泛型和功能性等特点。
155 个问题
{count} 票

1 个答案

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

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

    0 个注释 无注释

你的答案

问题作者可以将答案标记为“接受的答案”,这有助于用户了解已解决作者问题的答案。