![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
Как нажать на кнопку в другом окне [D6, WinXP]
oduvan © (2003-05-02 12:41:00)как нажать на кнопку в другом окне другой программы,
ПРИМЕР:нажать на кнопку ок в окне настройки часов для винды, известен Хэндл данной кнопки, как нажать?
пробывал
hwnd:=кнопка;
sendmessage(hwnd,WM_KEYDOWN,VK_RETURN,0);
не канало.
Подскажите плиз.
Song (2003-05-03 11:26:00) [1]BM_CLICK
Proton (2003-05-02 13:41:00) [2]покапайте в сторону 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.