G
Godfear
Unregistered / Unconfirmed
GUEST, unregistred user!
if h1<>0 then
begin
h2:= FindwindowEx(h1,0,nil,'是');
If h2>0 then
begin
// PostMessage(h2, WM_LBUTTONDOWN, MK_LBUTTON, 0);
// PostMessage(h2, WM_LBUTTONUP, MK_LBUTTON, 0);
end;
end;
h1是窗口句柄,h2是窗口中'是'按钮的句柄,怎么让是按钮执行呢?
h1窗口中默认聚焦的按钮是'否'!
测试了很多方法都不行,高手帮下忙
begin
h2:= FindwindowEx(h1,0,nil,'是');
If h2>0 then
begin
// PostMessage(h2, WM_LBUTTONDOWN, MK_LBUTTON, 0);
// PostMessage(h2, WM_LBUTTONUP, MK_LBUTTON, 0);
end;
end;
h1是窗口句柄,h2是窗口中'是'按钮的句柄,怎么让是按钮执行呢?
h1窗口中默认聚焦的按钮是'否'!
测试了很多方法都不行,高手帮下忙