From 690f5e6d29d1c85c4be72638eb22843964c2f512 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Fri, 24 Apr 2015 08:21:28 +0000 Subject: All non-working stuff moved from trunk git-svn-id: http://svn.miranda-ng.org/main/trunk@13071 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/!Deprecated/W7UI/src/dwmwindow.h | 59 -------------------------------- 1 file changed, 59 deletions(-) delete mode 100644 plugins/!Deprecated/W7UI/src/dwmwindow.h (limited to 'plugins/!Deprecated/W7UI/src/dwmwindow.h') diff --git a/plugins/!Deprecated/W7UI/src/dwmwindow.h b/plugins/!Deprecated/W7UI/src/dwmwindow.h deleted file mode 100644 index e795823247..0000000000 --- a/plugins/!Deprecated/W7UI/src/dwmwindow.h +++ /dev/null @@ -1,59 +0,0 @@ -#ifndef dwmwindow_h__ -#define dwmwindow_h__ - -class CDwmWindow -{ -public: - CDwmWindow(); - virtual ~CDwmWindow() {} - - HWND hwnd() { return m_hwnd; } - - template - static TWindow *GetWindow(HWND hwnd) - { - return (TWindow *)GetWindowLongPtr(hwnd, GWLP_USERDATA); - } - -protected: - // events - virtual void OnActivate(HWND hwndFrom) {} - virtual void OnClose() {} - virtual void OnRenderThumbnail(int mzxWidth, int maxHeight) {} - virtual void OnRenderPreview() {} - virtual void OnTimer(int id) {} - virtual void OnToolbar(int id, INT_PTR data) {} - - // timer stuff - void SetTimer(int id, int timeout); - void KillTimer(int id); - - // manage thumbnail and aero peek - void InvalidateThumbnail(); - void SetPreview(HBITMAP hbmp, int x, int y); - void SetThumbnail(HBITMAP hbmp); - - // manage toolbar - bool AddButton(HICON hIcon, TCHAR *text, INT_PTR data, DWORD flags = THBF_ENABLED); - void UpdateButtons(ITaskbarList3 *p); - - //utilities - static HBITMAP CreateDwmBitmap(int width, int height); - static void MakeBitmapOpaque(HBITMAP hBmp); - static void DrawGradient(HDC hdc, int x, int y, int width, int height, RGBQUAD *rgb0, RGBQUAD *rgb1); - -private: - HWND m_hwnd; - - bool m_btnInitialized; - int m_btnCount; - THUMBBUTTON m_btnInfo[7]; - INT_PTR m_btnData[7]; - - LRESULT CALLBACK WndProc(UINT msg, WPARAM wParam, LPARAM lParam); - - static void GlobalInitWndClass(); - static LRESULT CALLBACK GlobalWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); -}; - -#endif // dwmwindow_h__ \ No newline at end of file -- cgit v1.2.3