Fixed issue #2507: Support keyboard shortcuts in yes/no prompts
[TortoiseGit.git] / src / Utils / MiscUI / BufferDC.h
blobb172effacb8612f8479f02f93a0dc85366d3aa22
1 #pragma once
2 #include "afxwin.h"
4 class CBufferDC :
5 public CPaintDC
7 DECLARE_DYNAMIC(CBufferDC)
9 private:
10 HDC m_hOutputDC;
11 HDC m_hAttributeDC;
12 HDC m_hMemoryDC;
14 HBITMAP m_hPaintBitmap;
15 HBITMAP m_hOldBitmap;
17 RECT m_ClientRect;
19 BOOL m_bBoundsUpdated;
21 public:
22 CBufferDC(CWnd* pWnd);
23 ~CBufferDC(void);
25 private:
26 void Flush();
28 public:
29 UINT SetBoundsRect(LPCRECT lpRectBounds, UINT flags);
30 virtual BOOL RestoreDC(int nSavedDC);