pMainFrame为主框架窗口指针,我想更新它的所有子窗口
用pMainFrame-〉UpdateWindow(),可以达到效果;
但是用SendMessage(pMainFrame-〉m_hWnd, WM_PAINT, 0L, 0L)却不行,
这是为什么,
UpdateWindow()MSDN上说:
This method updates the client area by sending a WM_PAINT message, if the update region is not empty.
用pMainFrame-〉UpdateWindow(),可以达到效果;
但是用SendMessage(pMainFrame-〉m_hWnd, WM_PAINT, 0L, 0L)却不行,
这是为什么,
UpdateWindow()MSDN上说:
This method updates the client area by sending a WM_PAINT message, if the update region is not empty.
那么用SendMessage()可以实现子窗口重画么?
GetDlgItem(资源号IDC_**)->m_hWnd,
但还不如直接
GetDlgItem(资源号IDC_**)->UpdateWindow()//更新自己和更下一及的窗口.,