Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果 Control 键按下,我想处理 Winforms 文本框上的滚轮事件。虽然我当然可以,但它仍然滚动底层文本框,我可以以某种方式禁用它吗?
我认为您必须在 Control 关闭时覆盖文本框的 WndProc 并忽略 EN_VSCROLL 消息。