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/SaveThumbnailsDialog.cpp
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/SaveThumbnailsDialog.cpp')
-rw-r--r--src/apps/mplayerc/SaveThumbnailsDialog.cpp68
1 files changed, 34 insertions, 34 deletions
diff --git a/src/apps/mplayerc/SaveThumbnailsDialog.cpp b/src/apps/mplayerc/SaveThumbnailsDialog.cpp
index 11e057483..ec084bab7 100644
--- a/src/apps/mplayerc/SaveThumbnailsDialog.cpp
+++ b/src/apps/mplayerc/SaveThumbnailsDialog.cpp
@@ -30,26 +30,26 @@
IMPLEMENT_DYNAMIC(CSaveThumbnailsDialog, CFileDialog)
CSaveThumbnailsDialog::CSaveThumbnailsDialog(
- int rows, int cols, int width,
- LPCTSTR lpszDefExt, LPCTSTR lpszFileName,
- LPCTSTR lpszFilter, CWnd* pParentWnd) :
- CFileDialog(FALSE, lpszDefExt, lpszFileName,
- OFN_EXPLORER|OFN_ENABLESIZING|OFN_HIDEREADONLY|OFN_OVERWRITEPROMPT|OFN_PATHMUSTEXIST,
- lpszFilter, pParentWnd, 0
+ int rows, int cols, int width,
+ LPCTSTR lpszDefExt, LPCTSTR lpszFileName,
+ LPCTSTR lpszFilter, CWnd* pParentWnd) :
+ CFileDialog(FALSE, lpszDefExt, lpszFileName,
+ OFN_EXPLORER|OFN_ENABLESIZING|OFN_HIDEREADONLY|OFN_OVERWRITEPROMPT|OFN_PATHMUSTEXIST,
+ lpszFilter, pParentWnd, 0
#if (_MSC_VER >= 1500) // <= Parameter added after Visual Studio 2008!
- , FALSE
+ , FALSE
#endif
- ),
- m_rows(rows), m_cols(cols), m_width(width)
+ ),
+ m_rows(rows), m_cols(cols), m_width(width)
{
- if(m_ofn.lStructSize == sizeof(OPENFILENAME))
- {
- SetTemplate(0, IDD_SAVETHUMBSDIALOGTEMPL);
- }
- else /*if(m_ofn.lStructSize == OPENFILENAME_SIZE_VERSION_400)*/
- {
- SetTemplate(0, IDD_SAVETHUMBSDIALOGTEMPL_400);
- }
+ if(m_ofn.lStructSize == sizeof(OPENFILENAME))
+ {
+ SetTemplate(0, IDD_SAVETHUMBSDIALOGTEMPL);
+ }
+ else /*if(m_ofn.lStructSize == OPENFILENAME_SIZE_VERSION_400)*/
+ {
+ SetTemplate(0, IDD_SAVETHUMBSDIALOGTEMPL_400);
+ }
}
CSaveThumbnailsDialog::~CSaveThumbnailsDialog()
@@ -58,25 +58,25 @@ CSaveThumbnailsDialog::~CSaveThumbnailsDialog()
void CSaveThumbnailsDialog::DoDataExchange(CDataExchange* pDX)
{
- DDX_Control(pDX, IDC_SPIN1, m_rowsctrl);
- DDX_Control(pDX, IDC_SPIN2, m_colsctrl);
- DDX_Control(pDX, IDC_SPIN3, m_widthctrl);
- __super::DoDataExchange(pDX);
+ DDX_Control(pDX, IDC_SPIN1, m_rowsctrl);
+ DDX_Control(pDX, IDC_SPIN2, m_colsctrl);
+ DDX_Control(pDX, IDC_SPIN3, m_widthctrl);
+ __super::DoDataExchange(pDX);
}
BOOL CSaveThumbnailsDialog::OnInitDialog()
{
- __super::OnInitDialog();
+ __super::OnInitDialog();
- m_rowsctrl.SetRange(1, 8);
- m_colsctrl.SetRange(1, 8);
- m_widthctrl.SetRange(256, 2048);
- m_rowsctrl.SetPos(m_rows);
- m_colsctrl.SetPos(m_cols);
- m_widthctrl.SetPos(m_width);
+ m_rowsctrl.SetRange(1, 8);
+ m_colsctrl.SetRange(1, 8);
+ m_widthctrl.SetRange(256, 2048);
+ m_rowsctrl.SetPos(m_rows);
+ m_colsctrl.SetPos(m_cols);
+ m_widthctrl.SetPos(m_width);
- return TRUE; // return TRUE unless you set the focus to a control
- // EXCEPTION: OCX Property Pages should return FALSE
+ return TRUE; // return TRUE unless you set the focus to a control
+ // EXCEPTION: OCX Property Pages should return FALSE
}
BEGIN_MESSAGE_MAP(CSaveThumbnailsDialog, CFileDialog)
@@ -86,9 +86,9 @@ END_MESSAGE_MAP()
BOOL CSaveThumbnailsDialog::OnFileNameOK()
{
- m_rows = m_rowsctrl.GetPos();
- m_cols = m_colsctrl.GetPos();
- m_width = m_widthctrl.GetPos();
+ m_rows = m_rowsctrl.GetPos();
+ m_cols = m_colsctrl.GetPos();
+ m_width = m_widthctrl.GetPos();
- return __super::OnFileNameOK();
+ return __super::OnFileNameOK();
}