Вниз
Скачать: CL | DM;

Не обновляется Msg.hwnd   Найти похожие ветки 

← →
morik ©   (2005-12-23 23:44) [0]

procedure TForm1.FormCreate(Sender: TObject);
begin
 Application.OnMessage := AppMessage;
end;
---------------------
private
   procedure AppMessage(var Msg: TMsg; var Handled: Boolean);
-------------
procedure TForm1.AppMessage(var Msg: TMsg; var Handled: Boolean);
var
 i: integer;
begin
 If msg.message = WM_LBUTTONDOWN then
 for i:= 0 to Form1.ControlCount - 1 do begin
   if Form1.Components[i] is TWinControl then
     if TWinControl(Form1.Components[i]).Handle = msg.hwnd then
       ShowMessage(TWinControl(Form1.Components[i]).Name);
 end;
end;

На ShowMessage(TWinControl(Form1.Components[i]).Name);показует всегда имья контрола на котором первым кликнул.
Почему не обновляется msg.hwnd?


← →
GanibalLector ©   (2005-12-24 01:09) [1]


if TWinControl(Form1.Components[i]).Handle = msg.hwnd then
     begin
       Handled:=True;
      ShowMessage(TWinControl(Form1.Components[i]).Name);
    end;



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.025 c
15-1140954049
постигаю
2006-02-26 14:40
2006.03.19
меняющаяся ячейка


15-1140873168
SergP.
2006-02-25 16:12
2006.03.19
PHP.сообщ. при отсутствии данных для $HTTP_POST_VARS. Как убрать?


2-1141641849
xroot
2006-03-06 13:44
2006.03.19
Hecooтвeтcтвиe типoв дaнныx в выpaжeнии ycлoвия oтбopa


2-1141197162
Wel
2006-03-01 10:12
2006.03.19
Массив jpg из файла


2-1141125491
ronyn
2006-02-28 14:18
2006.03.19
Разделить файл




   Наверх