【问题标题】:how to make DBLookupComboBox mouse wheel work如何使 DBLookupComboBox 鼠标滚轮工作
【发布时间】:2015-03-31 15:14:31
【问题描述】:

如何使用鼠标滚轮在DBLookupComboBox 中列出的项目之间移动?就像它在ComboBox 中所做的那样。

我正在使用 c++builder xe6

【问题讨论】:

    标签: combobox c++builder mousewheel c++builder-xe6


    【解决方案1】:

    我找到了 每个人都受苦,答案很简单

    在 FormMouseWheelDown 事件中写下来

    if (DBLookupComboBox1->Focused() == true) DBLookupComboBox1->执行(WM_KEYDOWN, VK_DOWN, 0);

    并在 FormMouseWheelUp 中写入

    if (DBLookupComboBox1->Focused() == true) DBLookupComboBox1->执行(WM_KEYDOWN, VK_UP, 0);

    就是这样..享受

    【讨论】:

      猜你喜欢
      • 2023-03-08
      • 1970-01-01
      • 2018-05-13
      • 2011-09-18
      • 2010-12-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多