获得子窗口句柄,并传递消息

HWND hwndChild;

//获得子窗口句柄
hwndChild = FindWindow(NULL,”Point Cloud”);

//向子窗口发送消息
PostMessage(hwndChild, WM_COMMAND, MAKEWPARAM(IDC_PD_GEN, 0), 0);

Leave a comment

您的电子邮箱地址不会被公开。 必填项已用 * 标注