Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortetsuo55 <tetsuo55@users.sourceforge.net>2010-04-19 00:29:12 +0400
committertetsuo55 <tetsuo55@users.sourceforge.net>2010-04-19 00:29:12 +0400
commitb072e90c262fef233872e34f93bf298ce0d1fa03 (patch)
treeee8fd84e6d0e594d6e884e8be7e31d2c24be47fe /src/apps/mplayerc/Monitors.h
parent5215e9e5c05dcfc26b4314a2b52966cbcea5306f (diff)
Style patch part1. based on newly released astyle 1.24.
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1790 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc/Monitors.h')
-rw-r--r--src/apps/mplayerc/Monitors.h94
1 files changed, 50 insertions, 44 deletions
diff --git a/src/apps/mplayerc/Monitors.h b/src/apps/mplayerc/Monitors.h
index c86d217d7..eecf22a5b 100644
--- a/src/apps/mplayerc/Monitors.h
+++ b/src/apps/mplayerc/Monitors.h
@@ -31,65 +31,71 @@
class CMonitors : public CObject
{
public:
- CMonitors();
- virtual ~CMonitors();
+ CMonitors();
+ virtual ~CMonitors();
- CMonitor GetMonitor( const int index ) const;
+ CMonitor GetMonitor( const int index ) const;
#if _MFC_VER >= 0x0700
- int GetCount() const { return (int)m_MonitorArray.GetCount(); }
+ int GetCount() const
+ {
+ return (int)m_MonitorArray.GetCount();
+ }
#else
- int GetCount() const { return (int)m_MonitorArray.GetSize(); }
+ int GetCount() const
+ {
+ return (int)m_MonitorArray.GetSize();
+ }
#endif
//static members
- static CMonitor GetNearestMonitor( const LPRECT lprc );
- static CMonitor GetNearestMonitor( const POINT pt );
- static CMonitor GetNearestMonitor( const CWnd* pWnd );
+ static CMonitor GetNearestMonitor( const LPRECT lprc );
+ static CMonitor GetNearestMonitor( const POINT pt );
+ static CMonitor GetNearestMonitor( const CWnd* pWnd );
- static BOOL IsOnScreen( const POINT pt );
- static BOOL IsOnScreen( const CWnd* pWnd );
- static BOOL IsOnScreen( const LPRECT lprc );
+ static BOOL IsOnScreen( const POINT pt );
+ static BOOL IsOnScreen( const CWnd* pWnd );
+ static BOOL IsOnScreen( const LPRECT lprc );
- static void GetVirtualDesktopRect( LPRECT lprc );
+ static void GetVirtualDesktopRect( LPRECT lprc );
- static BOOL IsMonitor( const HMONITOR hMonitor );
+ static BOOL IsMonitor( const HMONITOR hMonitor );
- static CMonitor GetPrimaryMonitor();
- static BOOL AllMonitorsShareDisplayFormat();
+ static CMonitor GetPrimaryMonitor();
+ static BOOL AllMonitorsShareDisplayFormat();
- static int GetMonitorCount();
+ static int GetMonitorCount();
private:
- CObArray m_MonitorArray;
-
- typedef struct tagMATCHMONITOR
- {
- HMONITOR target;
- BOOL foundMatch;
- } MATCHMONITOR, *LPMATCHMONITOR;
-
- static BOOL CALLBACK FindMatchingMonitorHandle(
- HMONITOR hMonitor, // handle to display monitor
- HDC hdcMonitor, // handle to monitor DC
- LPRECT lprcMonitor, // monitor intersection rectangle
- LPARAM dwData // data
- );
-
-
- typedef struct tagADDMONITOR
- {
- CObArray* pMonitors;
- int currentIndex;
- } ADDMONITOR, *LPADDMONITOR;
-
- static BOOL CALLBACK AddMonitorsCallBack(
- HMONITOR hMonitor, // handle to display monitor
- HDC hdcMonitor, // handle to monitor DC
- LPRECT lprcMonitor, // monitor intersection rectangle
- LPARAM dwData // data
- );
+ CObArray m_MonitorArray;
+
+ typedef struct tagMATCHMONITOR
+ {
+ HMONITOR target;
+ BOOL foundMatch;
+ } MATCHMONITOR, *LPMATCHMONITOR;
+
+ static BOOL CALLBACK FindMatchingMonitorHandle(
+ HMONITOR hMonitor, // handle to display monitor
+ HDC hdcMonitor, // handle to monitor DC
+ LPRECT lprcMonitor, // monitor intersection rectangle
+ LPARAM dwData // data
+ );
+
+
+ typedef struct tagADDMONITOR
+ {
+ CObArray* pMonitors;
+ int currentIndex;
+ } ADDMONITOR, *LPADDMONITOR;
+
+ static BOOL CALLBACK AddMonitorsCallBack(
+ HMONITOR hMonitor, // handle to display monitor
+ HDC hdcMonitor, // handle to monitor DC
+ LPRECT lprcMonitor, // monitor intersection rectangle
+ LPARAM dwData // data
+ );
};