1.对于window控件,选中这类型控件的时候直接选中对应句柄即可:
WM_InvalidateWindow(hWin);
WM_SelectWindow(hWin);
WM_CreateTimer(hWin); //待验证
WM_SendMessage(hWin, &msg); //待验证
2.对于Framewin 控件,选中这类型控件的时候不能直接选中对应句柄,需要用 WM_GetClientWindow 做个转换即可:
WM_InvalidateWindow(WM_GetClientWindow(hWin));
WM_SelectWindow(WM_GetClientWindow(hWin));
WM_CreateTimer(WM_GetClientWindow(hWin));
WM_SendMessage(WM_GetClientWindow(hWin), &msg);
时间: 2024-10-05 14:59:53