Browse Source

on set focus set as topmost to ensure we stay the top most

git-svn-id: svn://svn.code.sf.net/p/ditto-cp/code/trunk@236 595ec19a-5cb4-439b-94a8-42fb3063c22c
sabrogden 20 years ago
parent
commit
300141b3c2
1 changed files with 2 additions and 0 deletions
  1. 2 0
      QPasteWnd.cpp

+ 2 - 0
QPasteWnd.cpp

@@ -315,6 +315,8 @@ void CQPasteWnd::MoveControls()
 void CQPasteWnd::OnSetFocus(CWnd* pOldWnd)
 {
 	CWndEx::OnSetFocus(pOldWnd);
+
+	::SetWindowPos(m_hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE|SWP_NOMOVE|SWP_SHOWWINDOW );
 	
 	// Set the focus to the list control
 	if(::IsWindow(m_lstHeader.m_hWnd))