Показать сообщение отдельно
  #2  
Старый 25.02.2011, 18:46
Аватар для movnet
movnet movnet вне форума
Начинающий
 
Регистрация: 24.07.2008
Сообщения: 127
Версия Delphi: Delphi 7
Репутация: 23
По умолчанию

Код:
  private
    { Private declarations }
    procedure MouseWheelHandler(var Message: TMessage);override;
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.MouseWheelHandler(var Message: TMessage);
var
  p:TPoint;
begin
 GetCursorPos(p);
 If WindowFromPoint(p)=DBLookupComboBox1.Handle then
 begin
  If Message.WParam<0 then
  DBLookupComboBox1.Perform(WM_VSCROLL, SB_LINEDOWN, 0)
  else
  DBLookupComboBox1.Perform(WM_VSCROLL, SB_LINEUP, 0);
 end;
end;
Ответить с цитированием