Author: hbelusca
Date: Wed Oct 26 21:14:39 2016
New Revision: 73044
URL:
http://svn.reactos.org/svn/reactos?rev=73044&view=rev
Log:
[DESK.CPL]: Fix trailing whitespace, some indent + code formatting style.
Modified:
trunk/reactos/dll/cpl/desk/advappdlg.c
trunk/reactos/dll/cpl/desk/advmon.c
trunk/reactos/dll/cpl/desk/appearance.c
trunk/reactos/dll/cpl/desk/background.c
trunk/reactos/dll/cpl/desk/classinst.c
trunk/reactos/dll/cpl/desk/desk.h
trunk/reactos/dll/cpl/desk/draw.c
trunk/reactos/dll/cpl/desk/monslctl.c
trunk/reactos/dll/cpl/desk/muireg.c
trunk/reactos/dll/cpl/desk/preview.c
trunk/reactos/dll/cpl/desk/preview.h
trunk/reactos/dll/cpl/desk/screensaver.c
trunk/reactos/dll/cpl/desk/settings.c
trunk/reactos/dll/cpl/desk/theme.c
Modified: trunk/reactos/dll/cpl/desk/advappdlg.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/desk/advappdlg.c?r…
==============================================================================
--- trunk/reactos/dll/cpl/desk/advappdlg.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/desk/advappdlg.c [iso-8859-1] Wed Oct 26 21:14:39 2016
@@ -522,7 +522,7 @@
break;
case WM_COMMAND:
- if(g == NULL)
+ if (g == NULL)
return TRUE;
switch(LOWORD(wParam))
@@ -558,7 +558,7 @@
if (HIWORD(wParam) == EN_CHANGE)
{
iProperty = g_Assignment[g->CurrentElement].Size;
- if(iProperty == -1)
+ if (iProperty == -1)
return TRUE;
iSelection = LOWORD(SendDlgItemMessage(hwndDlg,
IDC_ADVAPPEARANCE_SIZE_UD, UDM_GETPOS,0,0L));
@@ -566,7 +566,7 @@
SendDlgItemMessage(hwndDlg, IDC_APPEARANCE_PREVIEW, PVM_SETSIZE,
iProperty, iSelection);
iProperty = g_Assignment[g->CurrentElement].Size2;
- if(iProperty != -1)
+ if (iProperty != -1)
SchemeSetMetric(&g->SchemeAdv, iProperty,
iSelection);
}
break;
@@ -575,7 +575,7 @@
if (HIWORD(wParam) == CBN_SELCHANGE)
{
iProperty = g_Assignment[g->CurrentElement].Font;
- if(iProperty == -1)
+ if (iProperty == -1)
return TRUE;
plfFont = SchemeGetFont(&g->SchemeAdv, iProperty);
@@ -590,7 +590,7 @@
HDC hdcDlg;
iProperty = g_Assignment[g->CurrentElement].Font;
- if(iProperty == -1)
+ if (iProperty == -1)
return TRUE;
hdcDlg = GetDC(hwndDlg);
@@ -608,7 +608,7 @@
if (HIWORD(wParam) == BN_CLICKED)
{
iProperty = g_Assignment[g->CurrentElement].Font;
- if(iProperty == -1)
+ if (iProperty == -1)
return TRUE;
plfFont = SchemeGetFont(&g->SchemeAdv, iProperty);
@@ -622,7 +622,7 @@
if (HIWORD(wParam) == BN_CLICKED)
{
iProperty = g_Assignment[g->CurrentElement].Font;
- if(iProperty == -1)
+ if (iProperty == -1)
return TRUE;
plfFont = SchemeGetFont(&g->SchemeAdv, iProperty);
Modified: trunk/reactos/dll/cpl/desk/advmon.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/desk/advmon.c?rev=…
==============================================================================
--- trunk/reactos/dll/cpl/desk/advmon.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/desk/advmon.c [iso-8859-1] Wed Oct 26 21:14:39 2016
@@ -111,7 +111,7 @@
#ifdef _MSC_VER
hShell32 = LoadLibrary(_T("shell32.dll"));
- if(hShell32 == NULL)
+ if (hShell32 == NULL)
return FALSE;
msvc_SHCreatePropSheetExtArrayEx = (CPSEAE)GetProcAddress(hShell32, (LPCSTR)194);
hpsxaDev = msvc_SHCreatePropSheetExtArrayEx(HKEY_LOCAL_MACHINE,
REGSTR_PATH_CONTROLSFOLDER TEXT("\\Device"), MAX_ADVANCED_PAGES - psh.nPages,
pdo);
Modified: trunk/reactos/dll/cpl/desk/appearance.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/desk/appearance.c?…
==============================================================================
--- trunk/reactos/dll/cpl/desk/appearance.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/desk/appearance.c [iso-8859-1] Wed Oct 26 21:14:39 2016
@@ -31,7 +31,7 @@
SendDlgItemMessage(hwndDlg, IDC_APPEARANCE_PREVIEW, PVM_SET_HDC_PREVIEW, 0, 0);
}
-static void
+static void
AppearancePage_LoadSelectedScheme(HWND hwndDlg, GLOBALS *g)
{
if (g->ActiveTheme.ThemeActive == FALSE )
@@ -39,7 +39,7 @@
LoadSchemeFromReg(&g->Scheme, &g->ActiveTheme);
}
else
- {
+ {
LoadSchemeFromTheme(&g->Scheme, &g->ActiveTheme);
}
@@ -71,9 +71,9 @@
static void
AppearancePage_ShowColorSchemes(HWND hwndDlg, GLOBALS *g)
{
- AppearancePage_ShowStyles(hwndDlg,
- IDC_APPEARANCE_COLORSCHEME,
- g->ActiveTheme.Theme->ColoursList,
+ AppearancePage_ShowStyles(hwndDlg,
+ IDC_APPEARANCE_COLORSCHEME,
+ g->ActiveTheme.Theme->ColoursList,
g->ActiveTheme.Color);
}
@@ -87,9 +87,9 @@
else
pSizes = g->ActiveTheme.Color->ChildStyle;
- AppearancePage_ShowStyles(hwndDlg,
- IDC_APPEARANCE_SIZE,
- pSizes,
+ AppearancePage_ShowStyles(hwndDlg,
+ IDC_APPEARANCE_SIZE,
+ pSizes,
g->ActiveTheme.Size);
}
@@ -120,7 +120,7 @@
if (!GetActiveTheme(g->pThemes, &g->ActiveTheme))
g->ActiveTheme.ThemeActive = FALSE;
- /*
+ /*
* Keep a copy of the selected classic theme in order to select this
* when user selects the classic theme (and not a horrible random theme )
*/
@@ -203,7 +203,7 @@
break;
case WM_COMMAND:
- if(g == NULL || g->bInitializing)
+ if (g == NULL || g->bInitializing)
return FALSE;
switch (LOWORD(wParam))
@@ -254,7 +254,7 @@
if (HIWORD(wParam) == CBN_SELCHANGE)
{
PTHEME pTheme = (PTHEME)GetSelectedData(hwndDlg,
IDC_APPEARANCE_VISUAL_STYLE);
-
+
if (g->ClassicTheme.Theme == pTheme)
g->ActiveTheme = g->ClassicTheme;
else
@@ -282,7 +282,7 @@
{
g->ActiveTheme.Size = (PTHEME_STYLE)GetSelectedData(hwndDlg,
IDC_APPEARANCE_SIZE);
g->bSchemeChanged = TRUE;
- if(g->ActiveTheme.ThemeActive)
+ if (g->ActiveTheme.ThemeActive)
g->bThemeChanged = TRUE;
PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
Modified: trunk/reactos/dll/cpl/desk/background.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/desk/background.c?…
==============================================================================
--- trunk/reactos/dll/cpl/desk/background.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/desk/background.c [iso-8859-1] Wed Oct 26 21:14:39 2016
@@ -258,7 +258,7 @@
pData->listViewItemCount++;
}
- if(!FindNextFile(hFind, &fd))
+ if (!FindNextFile(hFind, &fd))
break;
}
@@ -1111,9 +1111,9 @@
switch(lpnm->code)
{
case PSN_APPLY:
- if(pData->bWallpaperChanged)
+ if (pData->bWallpaperChanged)
SetWallpaper(pData);
- if(pData->bClrBackgroundChanged)
+ if (pData->bClrBackgroundChanged)
SetDesktopBackColor(hwndDlg, pData);
SendMessage(HWND_BROADCAST, WM_SETTINGCHANGE, 0,
(LPARAM)_T(""));
return TRUE;
Modified: trunk/reactos/dll/cpl/desk/classinst.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/desk/classinst.c?r…
==============================================================================
--- trunk/reactos/dll/cpl/desk/classinst.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/desk/classinst.c [iso-8859-1] Wed Oct 26 21:14:39 2016
@@ -38,7 +38,7 @@
return ERROR_DI_DO_DEFAULT;
/* Set DI_DONOTCALLCONFIGMG flag */
- InstallParams.cbSize = sizeof(SP_DEVINSTALL_PARAMS);
+ InstallParams.cbSize = sizeof(InstallParams);
result = SetupDiGetDeviceInstallParams(DeviceInfoSet, DeviceInfoData,
&InstallParams);
if (!result)
{
@@ -67,7 +67,7 @@
}
/* Get .inf file name and section name */
- DriverInfoData.cbSize = sizeof(SP_DRVINFO_DATA);
+ DriverInfoData.cbSize = sizeof(DriverInfoData);
result = SetupDiGetSelectedDriver(DeviceInfoSet, DeviceInfoData,
&DriverInfoData);
if (!result)
{
@@ -76,11 +76,10 @@
goto cleanup;
}
- DriverInfoDetailData.cbSize = sizeof(SP_DRVINFO_DETAIL_DATA);
- result = SetupDiGetDriverInfoDetail(
- DeviceInfoSet, DeviceInfoData,
- &DriverInfoData, &DriverInfoDetailData,
- sizeof(SP_DRVINFO_DETAIL_DATA), NULL);
+ DriverInfoDetailData.cbSize = sizeof(DriverInfoDetailData);
+ result = SetupDiGetDriverInfoDetail(DeviceInfoSet, DeviceInfoData,
+ &DriverInfoData, &DriverInfoDetailData,
+ sizeof(DriverInfoDetailData), NULL);
if (!result && GetLastError() != ERROR_INSUFFICIENT_BUFFER)
{
rc = GetLastError();
Modified: trunk/reactos/dll/cpl/desk/desk.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/desk/desk.h?rev=73…
==============================================================================
--- trunk/reactos/dll/cpl/desk/desk.h [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/desk/desk.h [iso-8859-1] Wed Oct 26 21:14:39 2016
@@ -120,7 +120,7 @@
INT_PTR CALLBACK
AdvGeneralPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
-LONG
+LONG
RegLoadMUIStringW(IN HKEY hKey,
IN LPCWSTR pszValue OPTIONAL,
OUT LPWSTR pszOutBuf,
Modified: trunk/reactos/dll/cpl/desk/draw.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/desk/draw.c?rev=73…
==============================================================================
--- trunk/reactos/dll/cpl/desk/draw.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/desk/draw.c [iso-8859-1] Wed Oct 26 21:14:39 2016
@@ -81,16 +81,16 @@
RBInnerI = RBInnerNormal[uType & (BDR_INNER|BDR_OUTER)];
RBOuterI = RBOuterNormal[uType & (BDR_INNER|BDR_OUTER)];
- if((uFlags & BF_BOTTOMLEFT) == BF_BOTTOMLEFT)
+ if ((uFlags & BF_BOTTOMLEFT) == BF_BOTTOMLEFT)
LBpenplus = 1;
- if((uFlags & BF_TOPRIGHT) == BF_TOPRIGHT)
+ if ((uFlags & BF_TOPRIGHT) == BF_TOPRIGHT)
RTpenplus = 1;
- if((uFlags & BF_BOTTOMRIGHT) == BF_BOTTOMRIGHT)
+ if ((uFlags & BF_BOTTOMRIGHT) == BF_BOTTOMRIGHT)
RBpenplus = 1;
- if((uFlags & BF_TOPLEFT) == BF_TOPLEFT)
+ if ((uFlags & BF_TOPLEFT) == BF_TOPLEFT)
LTpenplus = 1;
- if((uFlags & MY_BF_ACTIVEBORDER))
+ if ((uFlags & MY_BF_ACTIVEBORDER))
hbr = CreateSolidBrush(scheme->crColor[COLOR_ACTIVEBORDER]);
else
hbr = CreateSolidBrush(scheme->crColor[COLOR_BTNFACE]);
@@ -101,34 +101,34 @@
MoveToEx(hdc, 0, 0, &SavePoint);
/* Draw the outer edge */
- if(LTOuterI != -1)
+ if (LTOuterI != -1)
{
LTOuterPen = GetStockObject(DC_PEN);
SelectObject(hdc, LTOuterPen);
SetDCPenColor(hdc, scheme->crColor[LTOuterI]);
- if(uFlags & BF_TOP)
+ if (uFlags & BF_TOP)
{
MoveToEx(hdc, InnerRect.left, InnerRect.top, NULL);
LineTo(hdc, InnerRect.right, InnerRect.top);
}
- if(uFlags & BF_LEFT)
+ if (uFlags & BF_LEFT)
{
MoveToEx(hdc, InnerRect.left, InnerRect.top, NULL);
LineTo(hdc, InnerRect.left, InnerRect.bottom);
}
}
- if(RBOuterI != -1)
+ if (RBOuterI != -1)
{
RBOuterPen = GetStockObject(DC_PEN);
SelectObject(hdc, RBOuterPen);
SetDCPenColor(hdc, scheme->crColor[RBOuterI]);
- if(uFlags & BF_BOTTOM)
+ if (uFlags & BF_BOTTOM)
{
MoveToEx(hdc, InnerRect.left, InnerRect.bottom-1, NULL);
LineTo(hdc, InnerRect.right, InnerRect.bottom-1);
}
- if(uFlags & BF_RIGHT)
+ if (uFlags & BF_RIGHT)
{
MoveToEx(hdc, InnerRect.right-1, InnerRect.top, NULL);
LineTo(hdc, InnerRect.right-1, InnerRect.bottom);
@@ -136,34 +136,34 @@
}
/* Draw the inner edge */
- if(LTInnerI != -1)
+ if (LTInnerI != -1)
{
LTInnerPen = GetStockObject(DC_PEN);
SelectObject(hdc, LTInnerPen);
SetDCPenColor(hdc, scheme->crColor[LTInnerI]);
- if(uFlags & BF_TOP)
+ if (uFlags & BF_TOP)
{
MoveToEx(hdc, InnerRect.left+LTpenplus, InnerRect.top+1, NULL);
LineTo(hdc, InnerRect.right-RTpenplus, InnerRect.top+1);
}
- if(uFlags & BF_LEFT)
+ if (uFlags & BF_LEFT)
{
MoveToEx(hdc, InnerRect.left+1, InnerRect.top+LTpenplus, NULL);
LineTo(hdc, InnerRect.left+1, InnerRect.bottom-LBpenplus);
}
}
- if(RBInnerI != -1)
+ if (RBInnerI != -1)
{
RBInnerPen = GetStockObject(DC_PEN);
SelectObject(hdc, RBInnerPen);
SetDCPenColor(hdc, scheme->crColor[RBInnerI]);
- if(uFlags & BF_BOTTOM)
+ if (uFlags & BF_BOTTOM)
{
MoveToEx(hdc, InnerRect.left+LBpenplus, InnerRect.bottom-2, NULL);
LineTo(hdc, InnerRect.right-RBpenplus, InnerRect.bottom-2);
}
- if(uFlags & BF_RIGHT)
+ if (uFlags & BF_RIGHT)
{
MoveToEx(hdc, InnerRect.right-2, InnerRect.top+RTpenplus, NULL);
LineTo(hdc, InnerRect.right-2, InnerRect.bottom-RBpenplus);
@@ -175,16 +175,16 @@
int add = (LTRBInnerMono[uType & (BDR_INNER|BDR_OUTER)] != -1 ? 1 : 0)
+ (LTRBOuterMono[uType & (BDR_INNER|BDR_OUTER)] != -1 ? 1 :
0);
- if(uFlags & BF_LEFT)
+ if (uFlags & BF_LEFT)
InnerRect.left += add;
- if(uFlags & BF_RIGHT)
+ if (uFlags & BF_RIGHT)
InnerRect.right -= add;
- if(uFlags & BF_TOP)
+ if (uFlags & BF_TOP)
InnerRect.top += add;
- if(uFlags & BF_BOTTOM)
+ if (uFlags & BF_BOTTOM)
InnerRect.bottom -= add;
- if(uFlags & BF_ADJUST)
+ if (uFlags & BF_ADJUST)
*rc = InnerRect;
}
@@ -198,7 +198,7 @@
MyDrawFrameButton(HDC hdc, LPRECT rc, UINT uState, COLOR_SCHEME *scheme)
{
UINT edge;
- if(uState & (DFCS_PUSHED | DFCS_CHECKED | DFCS_FLAT))
+ if (uState & (DFCS_PUSHED | DFCS_CHECKED | DFCS_FLAT))
edge = EDGE_SUNKEN;
else
edge = EDGE_RAISED;
@@ -220,7 +220,7 @@
dst->top += (Height-Width)/2;
dst->bottom = dst->top + SmallDiam;
}
- else if(Width > Height) /* SmallDiam == Height */
+ else if (Width > Height) /* SmallDiam == Height */
{
dst->left += (Width-Height)/2;
dst->right = dst->left + SmallDiam;
@@ -259,13 +259,13 @@
return FALSE;
}
MyIntDrawRectEdge(dc, r, (uFlags & DFCS_PUSHED) ? EDGE_SUNKEN : EDGE_RAISED,
BF_RECT | BF_MIDDLE | BF_SOFT, scheme);
- ZeroMemory(&lf, sizeof(LOGFONT));
+ ZeroMemory(&lf, sizeof(lf));
MyMakeSquareRect(r, &myr);
myr.left += 1;
myr.top += 1;
myr.right -= 1;
myr.bottom -= 1;
- if(uFlags & DFCS_PUSHED)
+ if (uFlags & DFCS_PUSHED)
OffsetRect(&myr,1,1);
lf.lfHeight = myr.bottom - myr.top;
lf.lfWidth = 0;
@@ -279,7 +279,7 @@
bkmode = GetBkMode(dc);
/* Set color and drawing mode */
SetBkMode(dc, TRANSPARENT);
- if(uFlags & DFCS_INACTIVE)
+ if (uFlags & DFCS_INACTIVE)
{
/* Draw shadow */
SetTextColor(dc, scheme->crColor[COLOR_BTNHIGHLIGHT]);
@@ -330,13 +330,13 @@
return FALSE;
}
MyIntDrawRectEdge(dc, r, (uFlags & DFCS_PUSHED) ? EDGE_SUNKEN : EDGE_RAISED,
(uFlags&DFCS_FLAT) | BF_MIDDLE | BF_RECT, scheme);
- ZeroMemory(&lf, sizeof(LOGFONT));
+ ZeroMemory(&lf, sizeof(lf));
MyMakeSquareRect(r, &myr);
myr.left += 1;
myr.top += 1;
myr.right -= 1;
myr.bottom -= 1;
- if(uFlags & DFCS_PUSHED)
+ if (uFlags & DFCS_PUSHED)
OffsetRect(&myr,1,1);
lf.lfHeight = myr.bottom - myr.top;
lf.lfWidth = 0;
@@ -350,7 +350,7 @@
bkmode = GetBkMode(dc);
/* Set color and drawing mode */
SetBkMode(dc, TRANSPARENT);
- if(uFlags & DFCS_INACTIVE)
+ if (uFlags & DFCS_INACTIVE)
{
/* Draw shadow */
SetTextColor(dc, scheme->crColor[COLOR_BTNHIGHLIGHT]);
@@ -554,7 +554,7 @@
bkgnd = (flat_menu ? COLOR_MENUBAR : COLOR_MENU);
x = Rect->left;
hFontOld = SelectObject(DC, Font);
- for(i = 0; i < 3; i++)
+ for (i = 0; i < 3; i++)
{
GetMenuStringW(Menu, i, Text, 128, MF_BYPOSITION);
Modified: trunk/reactos/dll/cpl/desk/monslctl.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/desk/monslctl.c?re…
==============================================================================
--- trunk/reactos/dll/cpl/desk/monslctl.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/desk/monslctl.c [iso-8859-1] Wed Oct 26 21:14:39 2016
@@ -698,7 +698,7 @@
hFont = infoPtr->Monitors[Index].hFont;
if (hFont == NULL &&
GetObject(infoPtr->hFont,
- sizeof(LOGFONT),
+ sizeof(lf),
&lf) != 0)
{
rcsize.cx = infoPtr->Monitors[Index].rc.right -
infoPtr->Monitors[Index].rc.left -
@@ -1580,9 +1580,9 @@
case WM_CREATE:
{
- infoPtr = (PMONITORSELWND) HeapAlloc(GetProcessHeap(),
- 0,
- sizeof(MONITORSELWND));
+ infoPtr = (PMONITORSELWND)HeapAlloc(GetProcessHeap(),
+ 0,
+ sizeof(MONITORSELWND));
if (infoPtr == NULL)
{
Ret = (LRESULT)-1;
Modified: trunk/reactos/dll/cpl/desk/muireg.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/desk/muireg.c?rev=…
==============================================================================
--- trunk/reactos/dll/cpl/desk/muireg.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/desk/muireg.c [iso-8859-1] Wed Oct 26 21:14:39 2016
@@ -49,7 +49,7 @@
*
* @implemented
*/
-LONG
+LONG
RegLoadMUIStringW(IN HKEY hKey,
IN LPCWSTR pszValue OPTIONAL,
OUT LPWSTR pszOutBuf,
@@ -65,7 +65,7 @@
/* Parameter sanity checks. */
if (!hKey || !pszOutBuf)
return ERROR_INVALID_PARAMETER;
-
+
if (pszDirectory && *pszDirectory)
{
//FIXME("BaseDir parameter not yet supported!\n");
Modified: trunk/reactos/dll/cpl/desk/preview.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/desk/preview.c?rev…
==============================================================================
--- trunk/reactos/dll/cpl/desk/preview.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/desk/preview.c [iso-8859-1] Wed Oct 26 21:14:39 2016
@@ -260,7 +260,7 @@
hdc = BeginPaint(hwnd, &ps);
- if(pPreviewData->hdcPreview)
+ if (pPreviewData->hdcPreview)
{
BitBlt(hdc,0,0, pPreviewData->rcDesktop.right,
pPreviewData->rcDesktop.bottom, pPreviewData->hdcPreview, 0,0, SRCCOPY);
EndPaint(hwnd, &ps);
@@ -470,7 +470,7 @@
CalculateItemSize(pPreviewData);
InvalidateRect(hwnd, NULL, FALSE);
break;
-
+
case PVM_SETFONT:
{
PLOGFONTW plfFont;
@@ -498,15 +498,15 @@
pPreviewData->Scheme.crColor[wParam] = lParam;
switch(wParam)
{
- case COLOR_SCROLLBAR:
+ case COLOR_SCROLLBAR:
DeleteObject(pPreviewData->hbrScrollbar);
pPreviewData->hbrScrollbar =
CreateSolidBrush(pPreviewData->Scheme.crColor[wParam]);
break;
- case COLOR_DESKTOP:
+ case COLOR_DESKTOP:
DeleteObject(pPreviewData->hbrDesktop);
pPreviewData->hbrDesktop =
CreateSolidBrush(pPreviewData->Scheme.crColor[wParam]);
break;
- case COLOR_WINDOW:
+ case COLOR_WINDOW:
DeleteObject(pPreviewData->hbrWindow);
pPreviewData->hbrWindow =
CreateSolidBrush(pPreviewData->Scheme.crColor[wParam]);
break;
@@ -540,7 +540,7 @@
{
WNDCLASSEX wc = {0};
- wc.cbSize = sizeof(WNDCLASSEX);
+ wc.cbSize = sizeof(wc);
wc.lpfnWndProc = PreviewWndProc;
wc.hInstance = hInstance;
wc.hCursor = LoadCursor(NULL, IDC_ARROW);
Modified: trunk/reactos/dll/cpl/desk/preview.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/desk/preview.h?rev…
==============================================================================
--- trunk/reactos/dll/cpl/desk/preview.h [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/desk/preview.h [iso-8859-1] Wed Oct 26 21:14:39 2016
@@ -23,7 +23,7 @@
#define IDX_APPSPACE 16
#define IDX_QUICKINFO 20
-#define PVM_SETSIZE (WM_USER+1)
+#define PVM_SETSIZE (WM_USER+1)
#define PVM_GETSIZE (WM_USER+2)
#define PVM_SETFONT (WM_USER+3)
#define PVM_GETFONT (WM_USER+4)
Modified: trunk/reactos/dll/cpl/desk/screensaver.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/desk/screensaver.c…
==============================================================================
--- trunk/reactos/dll/cpl/desk/screensaver.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/desk/screensaver.c [iso-8859-1] Wed Oct 26 21:14:39 2016
@@ -214,7 +214,7 @@
ZeroMemory(&si, sizeof(si));
si.cb = sizeof(si);
ZeroMemory(&pi, sizeof(pi));
- if(CreateProcess(NULL,
+ if (CreateProcess(NULL,
szCmdline,
NULL,
NULL,
@@ -270,7 +270,7 @@
ZeroMemory(&si, sizeof(si));
si.cb = sizeof(si);
ZeroMemory(&pi, sizeof(pi));
- if(CreateProcess(NULL,
+ if (CreateProcess(NULL,
szCmdline,
NULL,
NULL,
@@ -760,7 +760,7 @@
case IDC_SCREENS_TESTSC: // Screensaver Preview
{
- if(command == BN_CLICKED)
+ if (command == BN_CLICKED)
{
ScreensaverPreview(hwndDlg, pData);
SetScreenSaverPreviewBox(hwndDlg, pData);
Modified: trunk/reactos/dll/cpl/desk/settings.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/desk/settings.c?re…
==============================================================================
--- trunk/reactos/dll/cpl/desk/settings.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/desk/settings.c [iso-8859-1] Wed Oct 26 21:14:39 2016
@@ -101,7 +101,7 @@
DeleteDC(hDC);
/* List all settings */
- devmode.dmSize = (WORD)sizeof(DEVMODE);
+ devmode.dmSize = (WORD)sizeof(devmode);
devmode.dmDriverExtra = 0;
if (!EnumDisplaySettingsEx(DeviceName, ENUM_CURRENT_SETTINGS, &devmode,
dwFlags))
@@ -319,7 +319,7 @@
/* Get video cards list */
pData->DisplayDeviceList = NULL;
- displayDevice.cb = (DWORD)sizeof(DISPLAY_DEVICE);
+ displayDevice.cb = sizeof(displayDevice);
while (EnumDisplayDevices(NULL, iDevNum, &displayDevice, 0x1))
{
if ((displayDevice.StateFlags & DISPLAY_DEVICE_ATTACHED_TO_DESKTOP) != 0)
@@ -393,7 +393,7 @@
}
/* Initialize the color spectrum bitmaps */
- for(i = 0; i < NUM_SPECTRUM_BITMAPS; i++)
+ for (i = 0; i < NUM_SPECTRUM_BITMAPS; i++)
{
pData->hSpectrumBitmaps[i] = LoadImageW(hApplet,
MAKEINTRESOURCEW(IDB_SPECTRUM_4 + i), IMAGE_BITMAP, 0, 0, LR_DEFAULTCOLOR);
@@ -724,8 +724,8 @@
/* Apply new settings */
LONG rc;
DEVMODE devmode;
- RtlZeroMemory(&devmode, sizeof(DEVMODE));
- devmode.dmSize = (WORD)sizeof(DEVMODE);
+ RtlZeroMemory(&devmode, sizeof(devmode));
+ devmode.dmSize = (WORD)sizeof(devmode);
devmode.dmPelsWidth =
pData->CurrentDisplayDevice->CurrentSettings->dmPelsWidth;
devmode.dmPelsHeight =
pData->CurrentDisplayDevice->CurrentSettings->dmPelsHeight;
devmode.dmBitsPerPel =
pData->CurrentDisplayDevice->CurrentSettings->dmBitsPerPel;
Modified: trunk/reactos/dll/cpl/desk/theme.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/desk/theme.c?rev=7…
==============================================================================
--- trunk/reactos/dll/cpl/desk/theme.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/desk/theme.c [iso-8859-1] Wed Oct 26 21:14:39 2016
@@ -2,7 +2,7 @@
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS Display Control Panel
* FILE: dll/cpl/desk/theme.c
- * PURPOSE: Handling themes
+ * PURPOSE: Handling themes and visual effects
*
* PROGRAMMERS: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
*/
@@ -58,7 +58,7 @@
/******************************************************************************/
-VOID
+VOID
SchemeSetMetric(IN COLOR_SCHEME *scheme, int id, int value)
{
switch(id)
@@ -78,7 +78,7 @@
}
}
-int
+int
SchemeGetMetric(IN COLOR_SCHEME *scheme, int id)
{
switch (id)
@@ -86,12 +86,12 @@
case SIZE_BORDER_WIDTH: return scheme->ncMetrics.iBorderWidth;
case SIZE_SCROLL_WIDTH: return scheme->ncMetrics.iScrollWidth;
case SIZE_SCROLL_HEIGHT: return scheme->ncMetrics.iScrollHeight;
- case SIZE_CAPTION_WIDTH: return scheme->ncMetrics.iCaptionWidth;
- case SIZE_CAPTION_HEIGHT: return scheme->ncMetrics.iCaptionHeight;
- case SIZE_SM_CAPTION_WIDTH: return scheme->ncMetrics.iSmCaptionWidth;
- case SIZE_SM_CAPTION_HEIGHT: return scheme->ncMetrics.iSmCaptionHeight;
- case SIZE_MENU_WIDTH: return scheme->ncMetrics.iMenuWidth;
- case SIZE_MENU_HEIGHT: return scheme->ncMetrics.iMenuHeight;
+ case SIZE_CAPTION_WIDTH: return scheme->ncMetrics.iCaptionWidth;
+ case SIZE_CAPTION_HEIGHT: return scheme->ncMetrics.iCaptionHeight;
+ case SIZE_SM_CAPTION_WIDTH: return scheme->ncMetrics.iSmCaptionWidth;
+ case SIZE_SM_CAPTION_HEIGHT: return scheme->ncMetrics.iSmCaptionHeight;
+ case SIZE_MENU_WIDTH: return scheme->ncMetrics.iMenuWidth;
+ case SIZE_MENU_HEIGHT: return scheme->ncMetrics.iMenuHeight;
case SIZE_ICON: return scheme->iIconSize;
case SIZE_ICON_SPACE_X: return scheme->icMetrics.iHorzSpacing;
case SIZE_ICON_SPACE_Y: return scheme->icMetrics.iVertSpacing;
@@ -132,38 +132,38 @@
/* Load non client metrics */
scheme->ncMetrics.cbSize = sizeof(NONCLIENTMETRICSW);
- ret = SystemParametersInfoW(SPI_GETNONCLIENTMETRICS,
- sizeof(NONCLIENTMETRICSW),
- &scheme->ncMetrics,
+ ret = SystemParametersInfoW(SPI_GETNONCLIENTMETRICS,
+ sizeof(NONCLIENTMETRICSW),
+ &scheme->ncMetrics,
0);
if (!ret) return FALSE;
/* Load icon metrics */
scheme->icMetrics.cbSize = sizeof(ICONMETRICSW);
- ret = SystemParametersInfoW(SPI_GETICONMETRICS,
- sizeof(ICONMETRICSW),
- &scheme->icMetrics,
+ ret = SystemParametersInfoW(SPI_GETICONMETRICS,
+ sizeof(ICONMETRICSW),
+ &scheme->icMetrics,
0);
if (!ret) return FALSE;
/* Load flat menu style */
- ret = SystemParametersInfoW(SPI_GETFLATMENU,
- 0,
- &scheme->bFlatMenus,
+ ret = SystemParametersInfoW(SPI_GETFLATMENU,
+ 0,
+ &scheme->bFlatMenus,
0);
if (!ret) return FALSE;
/* Effects */
- /* "Use the following transition effect for menus and tooltips" */
- ret = SystemParametersInfoW(SPI_GETMENUANIMATION,
- 0,
- &scheme->Effects.bMenuAnimation,
+ /* Use the following transition effect for menus and tooltips */
+ ret = SystemParametersInfoW(SPI_GETMENUANIMATION,
+ 0,
+ &scheme->Effects.bMenuAnimation,
0);
if (!ret) return FALSE;
- ret = SystemParametersInfoW(SPI_GETMENUFADE,
- 0,
- &scheme->Effects.bMenuFade,
+ ret = SystemParametersInfoW(SPI_GETMENUFADE,
+ 0,
+ &scheme->Effects.bMenuFade,
0);
if (!ret) return FALSE;
@@ -174,16 +174,16 @@
scheme->Effects.bTooltipFade = scheme->Effects.bMenuFade;
/* Show content of windows during dragging */
- ret = SystemParametersInfoW(SPI_GETDRAGFULLWINDOWS,
- 0,
- &scheme->Effects.bDragFullWindows,
+ ret = SystemParametersInfoW(SPI_GETDRAGFULLWINDOWS,
+ 0,
+ &scheme->Effects.bDragFullWindows,
0);
if (!ret) return FALSE;
- /* "Hide underlined letters for keyboard navigation until I press the Alt
key" */
- ret = SystemParametersInfoW(SPI_GETKEYBOARDCUES,
- 0,
- &scheme->Effects.bKeyboardCues,
+ /* Hide underlined letters for keyboard navigation until I press the Alt key */
+ ret = SystemParametersInfoW(SPI_GETKEYBOARDCUES,
+ 0,
+ &scheme->Effects.bKeyboardCues,
0);
if (!ret) return FALSE;
@@ -199,7 +199,7 @@
}
/*
- * LoadSchemeFromReg: Populates the passed scheme with values retireved from registry
+ * LoadSchemeFromReg: Populates the passed scheme with values retireved from registry
*/
BOOL
LoadSchemeFromReg(OUT COLOR_SCHEME *scheme, IN PTHEME_SELECTION pSelectedTheme)
@@ -212,9 +212,9 @@
BOOL Ret = TRUE;
LONG result;
- wsprintf(strSchemeKey, L"%s\\%s\\Sizes\\%s",
- g_CPANewSchemes,
- pSelectedTheme->Color->StyleName,
+ wsprintf(strSchemeKey, L"%s\\%s\\Sizes\\%s",
+ g_CPANewSchemes,
+ pSelectedTheme->Color->StyleName,
pSelectedTheme->Size->StyleName);
result = RegOpenKeyW(HKEY_CURRENT_USER, strSchemeKey, &hkScheme);
@@ -226,11 +226,11 @@
{
wsprintf(strValueName, L"Color #%d", i);
dwLength = sizeof(COLORREF);
- result = RegQueryValueExW(hkScheme,
- strValueName,
- NULL,
- &dwType,
- (LPBYTE)&scheme->crColor[i],
+ result = RegQueryValueExW(hkScheme,
+ strValueName,
+ NULL,
+ &dwType,
+ (LPBYTE)&scheme->crColor[i],
&dwLength);
if (result != ERROR_SUCCESS || dwType != REG_DWORD)
{
@@ -245,13 +245,13 @@
wsprintf(strValueName, L"Font #%d", i);
dwLength = sizeof(LOGFONT);
- result = RegQueryValueExW(hkScheme,
- strValueName,
- NULL,
- &dwType,
- (LPBYTE)lpfFont,
+ result = RegQueryValueExW(hkScheme,
+ strValueName,
+ NULL,
+ &dwType,
+ (LPBYTE)lpfFont,
&dwLength);
- if (result != ERROR_SUCCESS || dwType != REG_BINARY ||
+ if (result != ERROR_SUCCESS || dwType != REG_BINARY ||
dwLength != sizeof(LOGFONT))
{
/* Failed to read registry value */
@@ -263,13 +263,13 @@
{
wsprintf(strValueName, L"Size #%d", i);
dwLength = sizeof(UINT64);
- result = RegQueryValueExW(hkScheme,
- strValueName,
- NULL,
- &dwType,
- (LPBYTE)&iSize,
+ result = RegQueryValueExW(hkScheme,
+ strValueName,
+ NULL,
+ &dwType,
+ (LPBYTE)&iSize,
&dwLength);
- if (result != ERROR_SUCCESS || dwType != REG_QWORD ||
+ if (result != ERROR_SUCCESS || dwType != REG_QWORD ||
dwLength != sizeof(UINT64))
{
/* Failed to read registry value, initialize with current setting for now */
@@ -281,12 +281,12 @@
}
RegCloseKey(hkScheme);
-
+
return Ret;
}
/*
- ApplyScheme: Applies the selected scheme and stores its id in the registry if needed
+ * ApplyScheme: Applies the selected scheme and stores its id in the registry if needed
*/
VOID
ApplyScheme(IN COLOR_SCHEME *scheme, IN PTHEME_SELECTION pSelectedTheme)
@@ -307,32 +307,32 @@
{
for (i = 0; i < NUM_COLORS; i++)
{
- wsprintf(clText,
- L"%d %d %d",
- GetRValue(scheme->crColor[i]),
- GetGValue(scheme->crColor[i]),
+ wsprintf(clText,
+ L"%d %d %d",
+ GetRValue(scheme->crColor[i]),
+ GetGValue(scheme->crColor[i]),
GetBValue(scheme->crColor[i]));
-
- RegSetValueExW(hKey,
- g_RegColorNames[i],
- 0,
- REG_SZ,
- (BYTE *)clText,
+
+ RegSetValueExW(hKey,
+ g_RegColorNames[i],
+ 0,
+ REG_SZ,
+ (BYTE *)clText,
(lstrlen(clText) + 1) * sizeof(WCHAR));
}
RegCloseKey(hKey);
}
/* Apply non client metrics */
- SystemParametersInfoW(SPI_SETNONCLIENTMETRICS,
- sizeof(NONCLIENTMETRICS),
- &scheme->ncMetrics,
+ SystemParametersInfoW(SPI_SETNONCLIENTMETRICS,
+ sizeof(NONCLIENTMETRICS),
+ &scheme->ncMetrics,
SPIF_UPDATEINIFILE | SPIF_SENDCHANGE);
/* Apply icon metrics */
- SystemParametersInfoW(SPI_SETICONMETRICS,
- sizeof(ICONMETRICS),
- &scheme->icMetrics,
+ SystemParametersInfoW(SPI_SETICONMETRICS,
+ sizeof(ICONMETRICS),
+ &scheme->icMetrics,
SPIF_UPDATEINIFILE | SPIF_SENDCHANGE);
/* Effects, save only when needed: */
@@ -361,11 +361,11 @@
if (pSelectedTheme->Theme != NULL && pSelectedTheme->ThemeActive ==
FALSE)
{
StyleName = pSelectedTheme->Color->StyleName;
- SHSetValueW(HKEY_CURRENT_USER,
+ SHSetValueW(HKEY_CURRENT_USER,
g_CPANewSchemes,
- g_SelectedStyle,
- REG_SZ,
- StyleName,
+ g_SelectedStyle,
+ REG_SZ,
+ StyleName,
(lstrlenW(StyleName) + 1) * sizeof(WCHAR));
}
}
@@ -377,7 +377,7 @@
pTheme = (PTHEME) malloc(sizeof(THEME));
if (pTheme == NULL) return NULL;
-
+
pTheme->DisplayName = _wcsdup(pszDisplayName);
if (pTheme->DisplayName == NULL)
{
@@ -402,7 +402,7 @@
free(pTheme);
return NULL;
}
-
+
return pTheme;
}
@@ -446,7 +446,7 @@
if (pStyle->ChildStyle) CleanupStyles(pStyle->ChildStyle);
if (pStyle->DisplayName) free(pStyle->DisplayName);
if (pStyle->StyleName) free(pStyle->StyleName);
-
+
pStyleOld = pStyle;
pStyle = pStyle->NextStyle;
free(pStyleOld);
@@ -472,7 +472,7 @@
}
}
-static PTHEME_STYLE
+static PTHEME_STYLE
FindStyle(IN PTHEME_STYLE pStylesList, IN PCWSTR StyleName)
{
PTHEME_STYLE pStyle;
@@ -492,7 +492,7 @@
/*
* LoadSchemeSizes: Returns a list of sizes from the registry key of a scheme
*/
-static PTHEME_STYLE
+static PTHEME_STYLE
LoadSchemeSizes(IN HKEY hkScheme)
{
HKEY hkSizes, hkSize;
@@ -511,25 +511,25 @@
Result = RegOpenKeyW(hkSizes, wstrSizeName, &hkSize);
if (Result != ERROR_SUCCESS) continue;
-
- Result = RegLoadMUIStringW(hkSize,
- L"DisplayName",
- wstrDisplayName,
- sizeof(wstrDisplayName),
- NULL,
- 0,
+
+ Result = RegLoadMUIStringW(hkSize,
+ L"DisplayName",
+ wstrDisplayName,
+ sizeof(wstrDisplayName),
+ NULL,
+ 0,
NULL);
if (Result != ERROR_SUCCESS)
{
- Result = RegLoadMUIStringW(hkSize,
- L"LegacyName",
- wstrDisplayName,
- sizeof(wstrDisplayName),
- NULL,
- 0,
+ Result = RegLoadMUIStringW(hkSize,
+ L"LegacyName",
+ wstrDisplayName,
+ sizeof(wstrDisplayName),
+ NULL,
+ 0,
NULL);
}
-
+
if (Result == ERROR_SUCCESS)
pCurrentStyle = CreateStyle(wstrSizeName, wstrDisplayName);
else
@@ -549,9 +549,9 @@
}
/*
- LoadClassicColorSchemes: Returns a list of classic theme colours from the registry
key of a scheme
-*/
-static THEME_STYLE*
+ * LoadClassicColorSchemes: Returns a list of classic theme colours from the registry key
of a scheme
+ */
+static THEME_STYLE*
LoadClassicColorSchemes(VOID)
{
INT Result;
@@ -570,22 +570,22 @@
Result = RegOpenKeyW(hkNewSchemes, wstrStyleName, &hkScheme);
if (Result != ERROR_SUCCESS) continue;
-
- Result = RegLoadMUIStringW(hkScheme,
+
+ Result = RegLoadMUIStringW(hkScheme,
L"DisplayName",
- wstrDisplayName,
- sizeof(wstrDisplayName),
- NULL,
- 0,
+ wstrDisplayName,
+ sizeof(wstrDisplayName),
+ NULL,
+ 0,
NULL);
if (Result != ERROR_SUCCESS)
{
- Result = RegLoadMUIStringW(hkScheme,
- L"LegacyName",
- wstrDisplayName,
- sizeof(wstrDisplayName),
- NULL,
- 0,
+ Result = RegLoadMUIStringW(hkScheme,
+ L"LegacyName",
+ wstrDisplayName,
+ sizeof(wstrDisplayName),
+ NULL,
+ 0,
NULL);
}
@@ -613,7 +613,7 @@
typedef HRESULT (WINAPI *ENUMTHEMESTYLE) (LPCWSTR, LPWSTR, DWORD, PTHEMENAMES);
-static THEME_STYLE*
+static THEME_STYLE*
EnumThemeStyles(IN LPCWSTR pszThemeFileName, IN ENUMTHEMESTYLE pfnEnumTheme)
{
DWORD index = 0;
@@ -634,11 +634,11 @@
return List;
}
-BOOL CALLBACK
-EnumThemeProc(IN LPVOID lpReserved,
+BOOL CALLBACK
+EnumThemeProc(IN LPVOID lpReserved,
IN LPCWSTR pszThemeFileName,
- IN LPCWSTR pszThemeName,
- IN LPCWSTR pszToolTip,
+ IN LPCWSTR pszThemeName,
+ IN LPCWSTR pszToolTip,
IN LPVOID lpReserved2,
IN OUT LPVOID lpData)
{
@@ -663,10 +663,10 @@
return TRUE;
}
-/*
- LoadThemes: Returns a list that contains tha classic theme and
- the visual styles of the system
-*/
+/*
+ * LoadThemes: Returns a list that contains tha classic theme and
+ * the visual styles of the system
+ */
PTHEME
LoadThemes()
{
@@ -705,9 +705,9 @@
return pClassicTheme;
}
-/*
- * GetActiveTheme: Gets the active theme and populates pSelectedTheme
- * with entries from the list of loaded themes
+/*
+ * GetActiveTheme: Gets the active theme and populates pSelectedTheme
+ * with entries from the list of loaded themes
*/
BOOL
GetActiveTheme(IN PTHEME pThemeList, OUT PTHEME_SELECTION pSelectedTheme)
@@ -717,21 +717,21 @@
WCHAR szSizeBuff[MAX_PATH];
PTHEME pTheme;
HRESULT hret;
-
+
ZeroMemory(pSelectedTheme, sizeof(THEME_SELECTION));
/* Retrieve the name of the current theme */
- hret = GetCurrentThemeName(szThemeFileName,
- MAX_PATH,
- szColorBuff,
- MAX_PATH,
- szSizeBuff,
+ hret = GetCurrentThemeName(szThemeFileName,
+ MAX_PATH,
+ szColorBuff,
+ MAX_PATH,
+ szSizeBuff,
MAX_PATH);
if (FAILED(hret)) return FALSE;
for (pTheme = pThemeList; pTheme; pTheme = pTheme->NextTheme)
{
- if(pTheme->ThemeFileName &&
+ if (pTheme->ThemeFileName &&
_wcsicmp(pTheme->ThemeFileName, szThemeFileName) == 0)
{
break;
@@ -748,10 +748,10 @@
return TRUE;
}
-/*
- GetActiveTheme: Gets the active classic theme and populates pSelectedTheme
- with entries from the list of loaded themes
-*/
+/*
+ * GetActiveTheme: Gets the active classic theme and populates pSelectedTheme
+ * with entries from the list of loaded themes
+ */
BOOL
GetActiveClassicTheme(IN PTHEME pThemeList, OUT PTHEME_SELECTION pSelectedTheme)
{
@@ -762,7 +762,7 @@
PTHEME_STYLE pCurrentStyle, pCurrentSize;
ZeroMemory(pSelectedTheme, sizeof(THEME_SELECTION));
-
+
/* Assume failure */
szSelectedClassicScheme[0] = 0;
szSelectedClassicSize[0] = 0;
@@ -772,7 +772,7 @@
dwType = REG_SZ;
dwDisplayNameLength = sizeof(szSelectedClassicScheme);
- Result = RegQueryValueEx(hkNewSchemes, L"SelectedStyle", NULL, &dwType,
+ Result = RegQueryValueEx(hkNewSchemes, L"SelectedStyle", NULL,
&dwType,
(LPBYTE)&szSelectedClassicScheme,
&dwDisplayNameLength);
if (Result == ERROR_SUCCESS)
{
@@ -802,10 +802,10 @@
if (pSelectedTheme->ThemeActive)
{
- hret = OpenThemeFile(pSelectedTheme->Theme->ThemeFileName,
- pSelectedTheme->Color->StyleName,
- pSelectedTheme->Size->StyleName,
- &hThemeFile,
+ hret = OpenThemeFile(pSelectedTheme->Theme->ThemeFileName,
+ pSelectedTheme->Color->StyleName,
+ pSelectedTheme->Size->StyleName,
+ &hThemeFile,
0);
if (!SUCCEEDED(hret)) return FALSE;
@@ -829,14 +829,14 @@
HTHEME hTheme;
int i;
- hret = OpenThemeFile(pSelectedTheme->Theme->ThemeFileName,
- pSelectedTheme->Color->StyleName,
- pSelectedTheme->Size->StyleName,
- &hThemeFile,
+ hret = OpenThemeFile(pSelectedTheme->Theme->ThemeFileName,
+ pSelectedTheme->Color->StyleName,
+ pSelectedTheme->Size->StyleName,
+ &hThemeFile,
0);
if (!SUCCEEDED(hret)) return FALSE;
-
+
hTheme = OpenThemeDataFromFile(hThemeFile, hCPLWindow, L"WINDOW", 0);
if (hTheme == NULL) return FALSE;
@@ -865,7 +865,7 @@
GetThemeSysFont(hTheme, TMT_STATUSFONT, &scheme->ncMetrics.lfStatusFont);
GetThemeSysFont(hTheme, TMT_MSGBOXFONT, &scheme->ncMetrics.lfMessageFont);
GetThemeSysFont(hTheme, TMT_ICONTITLEFONT, &scheme->icMetrics.lfFont);
-
+
CloseThemeData(hTheme);
return TRUE;
@@ -884,13 +884,13 @@
InflateRect(prcWindow, -10, -10);
- hres = DrawNCPreview(hdcMem,
+ hres = DrawNCPreview(hdcMem,
DNCP_DRAW_ALL,
prcWindow,
- pSelectedTheme->Theme->ThemeFileName,
- pSelectedTheme->Color->StyleName,
- pSelectedTheme->Size->StyleName,
- &scheme->ncMetrics,
+ pSelectedTheme->Theme->ThemeFileName,
+ pSelectedTheme->Color->StyleName,
+ pSelectedTheme->Size->StyleName,
+ &scheme->ncMetrics,
scheme->crColor);
return SUCCEEDED(hres);