diff options
author | George Hazan <george.hazan@gmail.com> | 2014-12-30 14:53:06 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-12-30 14:53:06 +0000 |
commit | f8c24169ee95e5a0a7290e5a1935855c099ce847 (patch) | |
tree | 0db74eedd7aed702b32c3c601944cebfd7759739 /plugins/TabSRMM/src/mim.h | |
parent | 29d1f717da04b24780569ca58d0eb3315606036a (diff) |
another crutch
git-svn-id: http://svn.miranda-ng.org/main/trunk@11682 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/mim.h')
-rw-r--r-- | plugins/TabSRMM/src/mim.h | 50 |
1 files changed, 16 insertions, 34 deletions
diff --git a/plugins/TabSRMM/src/mim.h b/plugins/TabSRMM/src/mim.h index de661242da..4900e1d95b 100644 --- a/plugins/TabSRMM/src/mim.h +++ b/plugins/TabSRMM/src/mim.h @@ -145,40 +145,22 @@ public: __forceinline double getFreq() const { return m_dFreq; }
__forceinline double getMsec() const { return 1000 * ((double)(m_tStop - m_tStart) * m_dFreq); }
- /*
- * os dependant stuff (aero, visual styles etc.)
- */
+ //////////////////////////////////////////////////////////////////////////////////////
+ // os dependent stuff (aero, visual styles etc.)
- /**
- * return status of Vista Aero
- *
- * @return bool: true if aero active, false otherwise
- */
- const bool isAero() const { return(m_isAero); }
- const bool isDwmActive() const { return(m_DwmActive); }
-
- /**
- * Refresh Aero status.
- * Called on:
- * * plugin init
- * * WM_DWMCOMPOSITIONCHANGED message received
- *
- * @return
- */
+ // returns status of Windows Aero
+ const bool isAero() const { return m_isAero; }
+
+ const bool isDwmActive() const { return m_DwmActive; }
+ const DWORD getWinVer() const { return m_winVer; }
+
+ // refresh Aero status.
bool getAeroState();
- /**
- * return status of visual styles theming engine (Windows XP+)
- *
- * @return bool: themes are enabled
- */
- bool isVSThemed()
- {
- return m_isVsThemed;
- }
- /*
- * window lists
- */
+ // returns status of visual styles theming engine (Windows XP+)
+ __forceinline bool isVSThemed() { return m_isVsThemed; }
+
+ // window lists
void BroadcastMessage(UINT msg, WPARAM wParam, LPARAM lParam);
void BroadcastMessageAsync(UINT msg, WPARAM wParam, LPARAM lParam);
INT_PTR AddWindow(HWND hWnd, MCONTACT h);
@@ -194,9 +176,8 @@ public: public:
HANDLE m_hMessageWindowList;
- /*
- various function pointers
- */
+
+ // various function pointers
static PDTTE m_pfnDrawThemeTextEx;
static DEFICA m_pfnDwmExtendFrameIntoClientArea;
static DICE m_pfnDwmIsCompositionEnabled;
@@ -225,6 +206,7 @@ private: double m_dFreq;
char m_timerMsg[256];
bool m_hasFolders;
+ DWORD m_winVer;
HANDLE m_hChatLogLock;
void InitAPI();
|