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.
如何使用鼠标滚轮在列表中的项目之间移动DBLookupComboBox?就像它在ComboBox.
DBLookupComboBox
ComboBox
我正在使用 c++builder xe6
我发现每个人都遭受过答案很简单
在 FormMouseWheelDown 事件中写下来
if (DBLookupComboBox1->Focused() == true) DBLookupComboBox1->Perform(WM_KEYDOWN, VK_DOWN, 0);
并在 FormMouseWheelUp 中写
if (DBLookupComboBox1->Focused() == true) DBLookupComboBox1->Perform(WM_KEYDOWN, VK_UP, 0);
就是这样..享受