// it by providing a replacement to the buggy code
BOOL COccManager::IsDialogMessage(CWnd* pWndDlg, LPMSG lpMsg)
{
- CWnd* pWndFocus = CWnd::GetFocus();
- HWND hWndFocus = pWndFocus->GetSafeHwnd();
UINT uMsg = lpMsg->message;
if (((uMsg >= WM_KEYFIRST) && (uMsg <= WM_KEYLAST)) ||
((uMsg >= WM_MOUSEFIRST) && (uMsg <= WM_MOUSELAST)))
{
- CWnd* pWndCtrl = pWndFocus;
+ CWnd* pWndCtrl = CWnd::GetFocus();
// Walk up the parent chain, until we find an OLE control.
while ((pWndCtrl != nullptr) && (pWndCtrl->m_pCtrlSite == nullptr) &&
FileWriteString(_T("\r\n\r\nCommand Line: "));
FileWriteString(szCmdLine);
- String sEXEPathOnly = paths::GetPathOnly(sEXEFullFileName);
-
FileWriteString(_T("\r\n\r\nModule Names: '~' prefix indicates module is loaded into the WinMerge process.\r\n"));
FileWriteString(_T(" Windows:\r\n"));
WriteVersionOf1(2, _T("kernel32.dll"));
*/
void CDirView::RedisplayChildren(DIFFITEM *diffpos, int level, UINT &index, int &alldiffs)
{
- CDirDoc *pDoc = GetDocument();
const CDiffContext &ctxt = GetDiffContext();
while (diffpos != nullptr)
{