Quellcode durchsuchen

added parameter to showquickpastewindow to refill list or not

git-svn-id: svn://svn.code.sf.net/p/ditto-cp/code/trunk@348 595ec19a-5cb4-439b-94a8-42fb3063c22c
sabrogden vor 19 Jahren
Ursprung
Commit
9e95ba6924
2 geänderte Dateien mit 4 neuen und 4 gelöschten Zeilen
  1. 3 3
      QuickPaste.cpp
  2. 1 1
      QuickPaste.h

+ 3 - 3
QuickPaste.cpp

@@ -74,7 +74,7 @@ BOOL CQuickPaste::CloseQPasteWnd()
 	return TRUE;
 }
 
-void CQuickPaste::ShowQPasteWnd(CWnd *pParent, bool bAtPrevPos, bool bFromKeyboard)
+void CQuickPaste::ShowQPasteWnd(CWnd *pParent, bool bAtPrevPos, bool bFromKeyboard, BOOL bReFillList)
 {		
 	if(bFromKeyboard == false && GetKeyState(VK_SHIFT) & 0x8000 && GetKeyState(VK_CONTROL) & 0x8000)
 	{
@@ -92,7 +92,7 @@ void CQuickPaste::ShowQPasteWnd(CWnd *pParent, bool bAtPrevPos, bool bFromKeyboa
 		return;
 	}
 
-	if((theApp.m_bShowingQuickPaste) || (theApp.m_bShowingOptions))
+	if(theApp.m_bShowingQuickPaste)
 	{
 		if(g_Opt.m_bShowPersistent)
 		{
@@ -172,7 +172,7 @@ void CQuickPaste::ShowQPasteWnd(CWnd *pParent, bool bAtPrevPos, bool bFromKeyboa
 	}
 	
 	// Show the window
-	m_pwndPaste->ShowQPasteWindow(FALSE);
+	m_pwndPaste->ShowQPasteWindow(bReFillList);
 	m_pwndPaste->SetForegroundWindow();
 }
 

+ 1 - 1
QuickPaste.h

@@ -18,7 +18,7 @@ public:
 	virtual ~CQuickPaste();
 
 	void Create(CWnd *pParent);
-	void ShowQPasteWnd(CWnd *pParent, bool bAtPrevPos, bool bFromKeyboard);
+	void ShowQPasteWnd(CWnd *pParent, bool bAtPrevPos, bool bFromKeyboard, BOOL bReFillList);
 	void HideQPasteWnd();
 	BOOL CloseQPasteWnd();
 	BOOL IsWindowVisibleEx();