| ||
!Load(m_uResID<span style="color:#cc0000;">))// 载入XML文件 </span> { return NULL; } } CRect rcWnd(0, 0, 0, 0); LPCTSTR lpszCaption = m_richView.GetWindowCaption(); if (_T('\0') == lpszCaption[0]) <span style="color:#ff0000;">// 加载标题 </span> lpszCaption = NULL; if (rect) rcWnd = rect; HWND hWnd = __super::Create(hWndParent, rcWnd, lpszCaption, m_richView.GetDlgStyle(), m_richView.GetDlgExStyle()); if (!hWnd) return NULL; BkWinThemeFunc::SetWindowTheme(hWnd, L"", L""); if (rect) { rcWnd.MoveToXY(0, 0); m_richView.Create(m_hWnd, rcWnd, 0, 0, IDC_RICHVIEW_WIN); } else m_richView.Create(m_hWnd, NULL, 0, 0, IDC_RICHVIEW_WIN); m_bShowWindow = TRUE; SendMessage(WM_INITDIALOG, (WPARAM)hWnd); m_richView.ShowAllRealWindows(TRUE); if (m_hWnd == hWnd) { SIZE sizeDefault = m_richView.GetDefaultSize(); if (sizeDefault.cx && sizeDefault.cy) { ResizeClient(sizeDefault, FALSE); } } else hWnd = m_hWnd; return hWnd; } UINT_PTR DoModal(HWND hWndParent = NULL, LPRECT rect = NULL) { BOOL bEnableParent = FALSE; if (NULL == hWndParent) { hWndParent = BkWinManager::GetActive(); if (NULL == hWndParent) hWndParent = ::GetActiveWindow(); } if (hWndParent && hWndParent != ::GetDesktopWindow() && ::IsWindowEnabled(hWndParent)) { ::EnableWindow(hWndParent, FALSE); bEnableParent = TRUE; } m_bExitModalLoop = FALSE; <span style="color:#ff0000;">HWND hWnd = Create(hWndParent, rect); </span> if (!hWnd) { ::EnableWindow(hWndParent, TRUE); return 0; } HWND hWndLastActive = BkWinManager::SetActive(hWnd); if (!rect) CenterWindow(); if (m_bShowWindow) { ::SetWindowPos(hWnd, HWND_TOP, 0, 0, 0, 0, SWP_NOSIZE 软件下载: (网视站,专业提供浏览器下载) | ||
相关文章相关软件2345安全卫士最新官方版2345安全卫士官方版 | 45.34MB 360杀毒软件官方正式版360杀毒软件官方正式版 | 35.10MB 360安全卫士最新版下载360安全卫士最新版下载 | 50.3MB QQ电脑管家官方正式版QQ电脑管家官方正式版 | 24.2MB 金山毒霸2022最新版下载金山毒霸2022下载 | 37MB 猎豹清理大师官方版下载猎豹清理大师下载 | 47.4MB |