diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2011-01-10 03:05:13 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2011-01-10 03:05:13 +0300 |
commit | 0eb98dcebf3ff5c8fbdc1235474c0d5640f9a04c (patch) | |
tree | 65e403462fdb55541e4a98358c824aa8a15b8027 /src/filters/InternalPropertyPage.h | |
parent | 93411f0c1eef8de213410b0544b246dd7086be74 (diff) |
legacy branch: merge r2785-r2825,r2827 from trunk
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/branches/legacy@2830 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/InternalPropertyPage.h')
-rw-r--r-- | src/filters/InternalPropertyPage.h | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/src/filters/InternalPropertyPage.h b/src/filters/InternalPropertyPage.h index 013db1f97..6b293be6b 100644 --- a/src/filters/InternalPropertyPage.h +++ b/src/filters/InternalPropertyPage.h @@ -27,8 +27,7 @@ interface __declspec(uuid("03481710-D73E-4674-839F-03EDE2D60ED8"))
ISpecifyPropertyPages2 :
-public ISpecifyPropertyPages
-{
+public ISpecifyPropertyPages {
STDMETHOD (CreatePage) (const GUID& guid, IPropertyPage** ppPage) = 0;
};
@@ -48,7 +47,9 @@ public: void SetDirty(bool fDirty = true) {
m_fDirty = fDirty;
- if(fDirty && m_pPageSite) m_pPageSite->OnStatusChange(PROPPAGESTATUS_DIRTY);
+ if(fDirty && m_pPageSite) {
+ m_pPageSite->OnStatusChange(PROPPAGESTATUS_DIRTY);
+ }
}
bool GetDirty() {
return m_fDirty;
@@ -110,24 +111,20 @@ public: template<class WndClass>
class CInternalPropertyPageTempl : public CInternalPropertyPage
{
- virtual CInternalPropertyPageWnd* GetWindow()
- {
+ virtual CInternalPropertyPageWnd* GetWindow() {
return DNew WndClass();
}
- virtual LPCTSTR GetWindowTitle()
- {
+ virtual LPCTSTR GetWindowTitle() {
return WndClass::GetWindowTitle();
}
- virtual CSize GetWindowSize()
- {
+ virtual CSize GetWindowSize() {
return WndClass::GetWindowSize();
}
public:
CInternalPropertyPageTempl(LPUNKNOWN lpunk, HRESULT* phr)
- : CInternalPropertyPage(lpunk, phr)
- {
+ : CInternalPropertyPage(lpunk, phr) {
}
};
|