开发者

Are Wndproc and hook in the main thread?

开发者 https://www.devze.com 2023-03-19 06:11 出处:网络
Sorry for开发者_StackOverflow中文版 my dumb question, but are wndproc and hooks in the main thread (when called)?

Sorry for开发者_StackOverflow中文版 my dumb question, but are wndproc and hooks in the main thread (when called)?

If they are does it mean I can not use them for build buffer for keyboard input?


Your window procedure (and any subclassed window procedures, hooks, etc) run in the thread which called CreateWindow (it's a requirement for that same thread to later process the message queue, window procedures actually run when your main message dispatch loop calls DispatchMessage).

Not sure what you mean by "build buffer for keyboard input".

0

精彩评论

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