看样子还是要自己动手丰衣足食了,下面的构件虽然解决了问题
不过不够方便(没写过构件,这是我写的第一个构件,呵呵...),
哪位老兄把它写成一个Property,我还是送200分。
unit MouseWheelComboBox;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls;
type
TMouseWheelComboBox = class(TComboBox)
private
Procedure MouseWheel(var Message : TMessage);Message WM_MOUSEWHEEL;
end;
procedure Register;
implementation
procedure TMouseWheelComboBox.MouseWheel(var Message : TMessage);
begin
end;
procedure Register;
begin
RegisterComponents('My', [TMouseWheelComboBox]);
end;
end.