Вниз
Скачать: 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 вся ветка

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



Память: 0.45 MB
Время: 0.015 c
14-7676
alpine
2003-06-15 13:07
2003.07.03
Помогите с выбором !


3-7367
grifon_nn
2003-06-09 17:43
2003.07.03
Резервная копия


4-7755
mtihonov1954
2003-04-30 05:59
2003.07.03
hook


1-7494
DOR
2003-06-21 10:05
2003.07.03
Есть Memo1.Edit1,Timer1


1-7455
TsvIlya
2003-06-23 16:20
2003.07.03
Глюки с именем формы




   Наверх