做进程间通讯,但是有一个对话框采用的是无标题栏风格。FindWindow(NULL,"");不行,加空格也不行。
怎么解决啊各位?
尽量不要说采用内存映射文件或者命名通道的话,就是想解决这个问题,而且只需要传一个整形参数过去就好,用消息最合适。
怎么解决啊各位?
尽量不要说采用内存映射文件或者命名通道的话,就是想解决这个问题,而且只需要传一个整形参数过去就好,用消息最合适。
SetWindowText("你试试行不行?");....FindWindow(NULL,"你试试行不行?");
hWnd=CWnd::FindWindow(CAdEditDlg,"000");
PostMessage(WM_MYMESSAGE,50,0);
用的类名,可报错:
E:\adeditsrc\AdEdit\AdEditDlg.cpp(695) : error C2275: 'CAdEditDlg' : illegal use of this type as an expression
CTharkDlg::OnInitDialog()
{
SetWindowText("硬盘录像系统");
}...客户端CWnd* pWnd=CWnd::FindWindow(NULL,"硬盘录像系统");//HWND hWnd=::FindWindow(_TEXT("#32770"),"硬盘录像系统");
都成功
解决
那儿为何是"#32770",我是从《Windows核心编程》第8页上抄的。
顺便问一句,DentistryDoctor(牙科医生) 难道做监控?也?
HWND_BROADCAST
The message is posted to all top-level windows in the system, including disabled or invisible unowned windows, overlapped windows, and pop-up windows. The message is not posted to child windows.