Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2003.07.03;
Скачать: CL | DM;

Вниз

Как нажать на кнопку в другом окне   Найти похожие ветки 

 
oduvan   (2003-05-02 12:41) [0]

как нажать на кнопку в другом окне другой программы,
ПРИМЕР:нажать на кнопку ок в окне настройки часов для винды, известен Хэндл данной кнопки, как нажать?

пробывал
hwnd:=кнопка;
sendmessage(hwnd,WM_KEYDOWN,VK_RETURN,0);
не канало.

Подскажите плиз.


 
Proton ©   (2003-05-02 13:41) [1]

покапайте в сторону wm_command

The BN_CLICKED notification message is sent when the user clicks a button. The parent window of the button receives this notification message through the WM_COMMAND message. Unlike the other button notification messages, this message is intended for applications written for any version of Windows.

BN_CLICKED
idButton = (int) LOWORD(wParam); // identifier of button
hwndButton = (HWND) lParam; // handle of button


Remarks

A disabled button does not send a BN_CLICKED notification message to its parent window.


 
Song ©   (2003-05-03 11:26) [2]

BM_CLICK



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

Текущий архив: 2003.07.03;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.012 c
7-7731
XAOC
2003-04-21 06:33
2003.07.03
Реестр: чтение REG_MULTI_SZ


1-7462
Переяслов Григорий
2003-06-19 19:46
2003.07.03
Работа с памятью


1-7434
delphimun
2003-06-20 13:10
2003.07.03
Выполнение программы при открытии в данный момент модального окна


1-7493
Иванов Сергей
2003-06-21 10:32
2003.07.03
путаница с формами


1-7502
Alexey
2003-06-21 12:32
2003.07.03
Отчеты из Quickreport в Word