MFC/C++ 如何向桌面发送刷新消息??
展开全部
弄个按钮加入下面代码试试
keybd_event(VK_LWIN, 0, 0 ,0);
keybd_event('D', 0, 0 ,0);
keybd_event('D', 0, KEYEVENTF_KEYUP ,0);
keybd_event(VK_LWIN, 0, KEYEVENTF_KEYUP,0);
Sleep(100);
keybd_event(116, 0, 0 ,0);
keybd_event(116, 0, KEYEVENTF_KEYUP,0);
Sleep(10);
keybd_event(VK_LWIN, 0, 0 ,0);
keybd_event('D', 0, 0 ,0);
keybd_event('D', 0, KEYEVENTF_KEYUP ,0);
keybd_event(VK_LWIN, 0, KEYEVENTF_KEYUP,0);
keybd_event(VK_LWIN, 0, 0 ,0);
keybd_event('D', 0, 0 ,0);
keybd_event('D', 0, KEYEVENTF_KEYUP ,0);
keybd_event(VK_LWIN, 0, KEYEVENTF_KEYUP,0);
Sleep(100);
keybd_event(116, 0, 0 ,0);
keybd_event(116, 0, KEYEVENTF_KEYUP,0);
Sleep(10);
keybd_event(VK_LWIN, 0, 0 ,0);
keybd_event('D', 0, 0 ,0);
keybd_event('D', 0, KEYEVENTF_KEYUP ,0);
keybd_event(VK_LWIN, 0, KEYEVENTF_KEYUP,0);
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2014-01-02
展开全部
在想刷新的地方加
Invalidate();
Invalidate();
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询