1、得到此菜单的句柄?
我用spy++可以找到此菜单,但是::FindWindow(_T("#32768 (PopupMenu)"), NULL);怎么也找不到2、菜单中每一项的操作
选中,进入子菜单,不选中,单击
我用spy++可以找到此菜单,但是::FindWindow(_T("#32768 (PopupMenu)"), NULL);怎么也找不到2、菜单中每一项的操作
选中,进入子菜单,不选中,单击
解决方案 »
- VC对话框边框 拖拉大小 多个问题,请高手指点!
- 在栈上过多的创建对象,会不会产生大量的内存碎片??
- 请教:ActiveX控件为什么不能更新?
- COM基本问题。请老鸟赐教。
- error LNK2001: unresolved external symbol "int __cdecl addm(int,int)" ??
- 初学者问关于VARIANT问题
- 高手帮帮忙~急
- 请问如何在不重绘背景图的情况下更新背景图上的文字?
- ????????????请教怎样获得服务器的时间????????????
- 进程间通信方式各有什么优劣?哪种方式比较好?
- Creatprocess输出重定向的问题
- CAsyncSocket通信
This method retrieves the top-level CWnd whose window class is specified by lpszClassName and whose window name, or title, is specified by lpszWindowName. This method does not search child windows.static CWnd* PASCAL FindWindow(
LPCTSTR lpszClassName,
LPCTSTR lpszWindowName );
Parameters
lpszClassName
Points to a null-terminated string that specifies the window class name, a WNDCLASS structure. If the lpClassName parameter is NULL, then all class names result as a successful match.
lpszWindowName
Points to a null-terminated string that specifies the window name, the window title. If the lpWindowName parameter is NULL, then all window names result as a successful match. 第一个参数
是ClassName
我说过了,要进入到目标进程,你想对它干什么就干什么。
如你所需,hook目标窗口的TrackPopupMenu或改变它的WindowProc处理它的消息。
我的程序在向taskbar发一个消息后,桌面会出现这个popmenu,现在想得到这个popmenu的句柄,并对菜单里的项目进行一些动作,比如选定某项(打钩)、进入“工具栏”的子菜单等等操作。请问怎么实现?主要是模拟鼠标的一些操作。