diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2010-07-05 16:58:42 +0400 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2010-07-05 16:58:42 +0400 |
commit | f6883a2c09507d0acb9ccbf0156e5948211dc480 (patch) | |
tree | 7789b4fecd6b2e846f070e2e0bdb1e16ea7555e9 /src/apps/mplayerc/PPageBase.cpp | |
parent | e9b446380bc3bc122e3e3a1d0622163a5f1920a3 (diff) |
astyle formatting
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@2103 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc/PPageBase.cpp')
-rw-r--r-- | src/apps/mplayerc/PPageBase.cpp | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/src/apps/mplayerc/PPageBase.cpp b/src/apps/mplayerc/PPageBase.cpp index bb4ba3c92..0765f465a 100644 --- a/src/apps/mplayerc/PPageBase.cpp +++ b/src/apps/mplayerc/PPageBase.cpp @@ -30,7 +30,7 @@ IMPLEMENT_DYNAMIC(CPPageBase, CCmdUIPropertyPage)
CPPageBase::CPPageBase(UINT nIDTemplate, UINT nIDCaption)
- : CCmdUIPropertyPage(nIDTemplate, nIDCaption)
+ : CCmdUIPropertyPage(nIDTemplate, nIDCaption)
{
}
@@ -40,48 +40,48 @@ CPPageBase::~CPPageBase() void CPPageBase::DoDataExchange(CDataExchange* pDX)
{
- __super::DoDataExchange(pDX);
+ __super::DoDataExchange(pDX);
}
void CPPageBase::CreateToolTip()
{
- m_wndToolTip.Create(this);
- m_wndToolTip.Activate(TRUE);
- m_wndToolTip.SetMaxTipWidth(300);
- m_wndToolTip.SetDelayTime(TTDT_AUTOPOP, 10000);
- for(CWnd* pChild = GetWindow(GW_CHILD); pChild; pChild = pChild->GetWindow(GW_HWNDNEXT))
- {
- CString strToolTip;
- if(strToolTip.LoadString(pChild->GetDlgCtrlID()))
- m_wndToolTip.AddTool(pChild, strToolTip);
- }
+ m_wndToolTip.Create(this);
+ m_wndToolTip.Activate(TRUE);
+ m_wndToolTip.SetMaxTipWidth(300);
+ m_wndToolTip.SetDelayTime(TTDT_AUTOPOP, 10000);
+ for(CWnd* pChild = GetWindow(GW_CHILD); pChild; pChild = pChild->GetWindow(GW_HWNDNEXT))
+ {
+ CString strToolTip;
+ if(strToolTip.LoadString(pChild->GetDlgCtrlID()))
+ m_wndToolTip.AddTool(pChild, strToolTip);
+ }
}
BOOL CPPageBase::PreTranslateMessage(MSG* pMsg)
{
- if(IsWindow(m_wndToolTip))
- if(pMsg->message >= WM_MOUSEFIRST && pMsg->message <= WM_MOUSELAST)
- {
- MSG msg;
- memcpy(&msg, pMsg, sizeof(MSG));
- for(HWND hWndParent = ::GetParent(msg.hwnd);
- hWndParent && hWndParent != m_hWnd;
- hWndParent = ::GetParent(hWndParent))
- {
- msg.hwnd = hWndParent;
- }
-
- if(msg.hwnd)
- {
- m_wndToolTip.RelayEvent(&msg);
- }
- }
-
- return __super::PreTranslateMessage(pMsg);
+ if(IsWindow(m_wndToolTip))
+ if(pMsg->message >= WM_MOUSEFIRST && pMsg->message <= WM_MOUSELAST)
+ {
+ MSG msg;
+ memcpy(&msg, pMsg, sizeof(MSG));
+ for(HWND hWndParent = ::GetParent(msg.hwnd);
+ hWndParent && hWndParent != m_hWnd;
+ hWndParent = ::GetParent(hWndParent))
+ {
+ msg.hwnd = hWndParent;
+ }
+
+ if(msg.hwnd)
+ {
+ m_wndToolTip.RelayEvent(&msg);
+ }
+ }
+
+ return __super::PreTranslateMessage(pMsg);
}
BEGIN_MESSAGE_MAP(CPPageBase, CCmdUIPropertyPage)
- ON_WM_DESTROY()
+ ON_WM_DESTROY()
END_MESSAGE_MAP()
@@ -89,14 +89,14 @@ END_MESSAGE_MAP() BOOL CPPageBase::OnSetActive()
{
- AfxGetApp()->WriteProfileInt(IDS_R_SETTINGS, _T("LastUsedPage"), (UINT)m_pPSP->pszTemplate);
+ AfxGetApp()->WriteProfileInt(IDS_R_SETTINGS, _T("LastUsedPage"), (UINT)m_pPSP->pszTemplate);
- return __super::OnSetActive();
+ return __super::OnSetActive();
}
void CPPageBase::OnDestroy()
{
- __super::OnDestroy();
+ __super::OnDestroy();
- m_wndToolTip.DestroyWindow();
+ m_wndToolTip.DestroyWindow();
}
|