The mouse_event function synthesizes mouse motion and button clicks. VOID mouse_event( DWORD dwFlags, // flags specifying various motion/click variants DWORD dx, // horizontal mouse position or position change DWORD dy, // vertical mouse position or position change DWORD dwData, // amount of wheel movement DWORD dwExtraInfo // 32 bits of application-defined information );这个 肯定可以 就是 鼠标会移动
只需要
public xxx ToolStrip
{
get
{
//封装你要使用的属性
}
}
声明一个Class的实例
通过实例就可以调用了
如果用一个线程去触发ToolStrip的话
必须要使用
delete DeleteMethod
ToolStrip.BeginInvoke(DeleteMethod); //多线程操控UI的控件 在DeleteMethod方法你操作你想做的事情
{
set
{
toolStrip.xxx = value;
}
}
用委托可以做到这样吗?
如果取不到,很可能按钮是画上去的,微软又没公开内部结构的话,是无法操作的.
前段时间专门研究了下菜单,很多如此
就没法取了
跟踪了一下Control.FormHandle(hwnd)的返回值为空!不知是否是运行的机制不同还是怎样的!请各位能人帮帮我!
postMessage(h, WM_MOUSEMOVE, 0, MakeLong(x, y));
postMessage(h, WM_LBUTTONDOWN, MK_LBUTTON, MakeLong(x, y));
Sleep(10);
postMessage(h, WM_LBUTTONUP, 0, MakeLong(x, y));
DWORD dx, // horizontal mouse position or position change
DWORD dy, // vertical mouse position or position change
DWORD dwData, // amount of wheel movement
DWORD dwExtraInfo // 32 bits of application-defined information
);这个 肯定可以 就是 鼠标会移动
可是我不想用鼠标点击指定位置来做!
把信息传过去另外的form
catch到该信息,再触发事件
是在IE中嵌入的Windows控件是别人做的
我没法去控制的
AccExplorer32.exe他可以做到也有一个例子
微软
AccExplorer32.exe 这个工具 对你很有用