Change "Ok/Cancel" to "Yes/No". Lee Schroeder (=spaceseel=AT=gmail=DOT=com=), bug #6606.
[CPL][WIN32K]
Fix indentation, comments, debug messages.
Lioncash (=mathew1800=AT=gmail=DOT=com=), bug #6562, bug #6621.
svn path=/trunk/; revision=54535
{
int ret;
- ret = MessageBox(hwnd, MsgQuit, szAppName, MB_OKCANCEL|MB_ICONQUESTION);
- if (ret == IDOK)
+ ret = MessageBox(hwnd, MsgQuit, szAppName, MB_YESNO|MB_ICONQUESTION);
+ if (ret == IDYES)
{
WinHelp(hwnd, szHelpPath, HELP_QUIT, 0);
DestroyWindow(hwnd);
#include "lang/ro-RO.rc"
#include "lang/ru-RU.rc"
#include "lang/sk-SK.rc"
+#include "lang/sv-SE.rc"
#include "lang/uk-UA.rc"
#include "lang/zh-CN.rc"
#include "lang/zh-TW.rc"
pGlobalData->uCaretBlinkTime = GetCaretBlinkTime();
- /* get sound settings */
+ /* Get sound settings */
pGlobalData->ssSoundSentry.cbSize = sizeof(SOUNDSENTRY);
SystemParametersInfo(SPI_GETSOUNDSENTRY,
sizeof(SOUNDSENTRY),
typedef struct _GLOBAL_DATA
{
- /* keyboard page */
+ /* Keyboard page */
STICKYKEYS stickyKeys;
STICKYKEYS oldStickyKeys;
FILTERKEYS filterKeys;
TOGGLEKEYS oldToggleKeys;
BOOL bKeyboardPref;
- /* sound page */
+ /* Sound page */
SOUNDSENTRY ssSoundSentry;
BOOL bShowSounds;
- /* display page */
+ /* Display page */
HIGHCONTRAST highContrast;
UINT uCaretBlinkTime;
UINT uCaretWidth;
RECT rcCaret;
RECT rcOldCaret;
- /* mouse page */
+ /* Mouse page */
MOUSEKEYS mouseKeys;
- /* general page */
+ /* General page */
ACCESSTIMEOUT accessTimeout;
SERIALKEYS serialKeys;
TCHAR szActivePort[MAX_PATH];
-//vertaald door Lionel Lowie
-//major update jansssens
+// Vertaald door Lionel Lowie
+// Major update jansssens
LANGUAGE LANG_DUTCH, SUBLANG_NEUTRAL
-//2011.11.05 - Fulea Ștefan: minor changes
+// 2011.11.05 - Fulea Ștefan: minor changes
LANGUAGE LANG_ROMANIAN, SUBLANG_DEFAULT
IDD_PROPPAGEKEYBOARD DIALOGEX 0, 0, PROPSHEETWIDTH, PROPSHEETHEIGHT
* LICENSE: GPL - See COPYING in the top level directory
* FILE: dll/cpl/access/lang/uk-UA.rc
* PURPOSE: Ukraianian Language File for Accessibility Control Panel Applet
- * TRANSLATORS: Rostislav Zabolotny, Igor Paliychuk
+ * TRANSLATORS: Rostislav Zabolotny, Igor Paliychuk
*/
LANGUAGE LANG_UKRAINIAN, SUBLANG_DEFAULT
* TRANSLATOR: Radek Liska aka Black_Fox (radekliska at gmail dot com)
* UPDATED: 2010-03-14
*/
-
+
LANGUAGE LANG_CZECH, SUBLANG_DEFAULT
IDD_FIRSTPAGE DIALOGEX 0, 0, PROPSHEETWIDTH, PROPSHEETHEIGHT
#pragma once
-/* metrics */
+/* Metrics */
#define PROPSHEETWIDTH 380
#define PROPSHEETHEIGHT 228
#define PROPSHEETPADDING 6
-/* icons */
+/* Icons */
#define IDI_CPLSYSTEM 1500
#define IDI_APPICO 1501
#define IDI_INSTICO 1502
#define IDI_DOWNLOADICO 1504
#define IDI_APPINETICO 1505
-/* dialogs */
+/* Dialogs */
#define IDD_SHORTCUT_LOCATION 203
#define IDD_SHORTCUT_FINISH 204
-/* bitmaps */
+/* Bitmaps */
#define IDB_WATERMARK 5001
-/* strings */
+/* Strings */
#define IDS_CPLSYSTEMNAME 1001
#define IDS_CPLSYSTEMDESCRIPTION 2001
#define IDS_CREATE_SHORTCUT 2021
#define IDS_ERROR_NOT_FOUND 2022
-/* controls */
+/* Controls */
#define IDC_SHORTCUT_LOCATION 107
#define IDC_SHORTCUT_BROWSE 108
#define IDC_SHORTCUT_NAME 109
}
else
{
- /* options have already been applied */
+ /* Options have already been applied */
SetWindowLongPtr(hwndDlg, DWL_MSGRESULT, PSNRET_NOERROR);
return TRUE;
}
red = SendMessage(GetDlgItem(hwndDlg, IDC_UPDOWN_COLOR_RED), UDM_GETPOS, 0, 0);
if (HIWORD(red))
{
- //TODO: handle error
+ // TODO: Handle error
break;
}
red = LOBYTE(red);
green = SendMessage(GetDlgItem(hwndDlg, IDC_UPDOWN_COLOR_GREEN), UDM_GETPOS, 0, 0);
if (HIWORD(green))
{
- //TODO: handle error
+ // TODO: Handle error
break;
}
green = LOBYTE(green);
blue = SendMessage(GetDlgItem(hwndDlg, IDC_UPDOWN_COLOR_BLUE), UDM_GETPOS, 0, 0);
if (HIWORD(blue))
{
- //TODO: handle error
+ // TODO: Handle error
break;
}
blue = LOBYTE(blue);
if (index == pConInfo->ActiveStaticControl)
{
- /* same static control was re-clicked */
+ /* Same static control was re-clicked */
break;
}
SetDlgItemInt(hwndDlg, IDC_EDIT_COLOR_GREEN, GetGValue(pConInfo->Colors[index]), FALSE);
SetDlgItemInt(hwndDlg, IDC_EDIT_COLOR_BLUE, GetBValue(pConInfo->Colors[index]), FALSE);
- /* update global struct */
+ /* Update global struct */
if (IsDlgButtonChecked(hwndDlg, IDC_RADIO_SCREEN_TEXT))
{
pConInfo->ScreenText = pConInfo->Colors[index];
}
}
-
default:
break;
}
void
InitConsoleDefaults(PConsoleInfo pConInfo)
{
- /* initialize struct */
+ /* Initialize struct */
pConInfo->InsertMode = TRUE;
pConInfo->HistoryBufferSize = 50;
pConInfo->NumberOfHistoryBuffers = 5;
if (res == IDCANCEL)
{
- /* dont destroy when user presses cancel */
+ /* Don't destroy when user presses cancel */
SetWindowLongPtr(hwndDlg, DWL_MSGRESULT, PSNRET_INVALID_NOCHANGEPAGE);
}
else if ( res == IDC_RADIO_APPLY_ALL )
/*
* console.dll shares information with win32csr with wParam, lParam
*
- * wParam is a pointer to an ConsoleInfo struct
- * lParam is a boolean parameter which specifies wheter defaults should be shown
+ * wParam is a pointer to a ConsoleInfo struct
+ * lParam is a boolean parameter which specifies whether defaults should be shown
*/
pConInfo = AllocConsoleInfo();
if (lParam)
{
- /* use defaults */
+ /* Use defaults */
InitConsoleDefaults(pConInfo);
}
else
{
if (IsBadReadPtr((const void *)pSharedInfo, sizeof(ConsoleInfo)))
{
- /* use defaults */
+ /* Use defaults */
InitConsoleDefaults(pConInfo);
}
else
}
return TRUE;
}
-
#define PM_APPLY_CONSOLE_INFO (WM_APP + 100)
-//globals
+// Globals
extern HINSTANCE hApplet;
#endif /* CONSOLE_H__ */
#include "console.h"
-
void PaintConsole(LPDRAWITEMSTRUCT drawItem, PConsoleInfo pConInfo)
{
HBRUSH hBrush;
}
else
{
- //TODO
- // calculate pos correctly when console centered
+ // TODO:
+ // Calculate pos correctly when console centered
startx = sizex / 3;
starty = sizey / 3;
}
- //TODO
- // strech console when bold fonts are selected
+ // TODO:
+ // Strech console when bold fonts are selected
endx = drawItem->rcItem.right - startx + 15;
endy = starty + sizey / 3;
- /* draw console size */
+ /* Draw console size */
SetRect(&cRect, startx, starty, endx, endy);
FillRect(drawItem->hDC, &cRect, GetSysColorBrush(COLOR_WINDOWFRAME));
- /* draw console border */
+ /* Draw console border */
SetRect(&fRect, startx + 1, starty + 1, cRect.right - 1, cRect.bottom - 1);
FrameRect(drawItem->hDC, &fRect, GetSysColorBrush(COLOR_ACTIVEBORDER));
- /* draw left box */
+ /* Draw left box */
SetRect(&fRect, startx + 3, starty + 3, startx + 5, starty + 5);
FillRect(drawItem->hDC, &fRect, GetSysColorBrush(COLOR_ACTIVEBORDER));
- /* draw window title */
+ /* Draw window title */
SetRect(&fRect, startx + 7, starty + 3, cRect.right - 9, starty + 5);
FillRect(drawItem->hDC, &fRect, GetSysColorBrush(COLOR_ACTIVECAPTION));
- /* draw first right box */
+ /* Draw first right box */
SetRect(&fRect, fRect.right + 1, starty + 3, fRect.right + 3, starty + 5);
FillRect(drawItem->hDC, &fRect, GetSysColorBrush(COLOR_ACTIVEBORDER));
- /* draw second right box */
+ /* Draw second right box */
SetRect(&fRect, fRect.right + 1, starty + 3, fRect.right + 3, starty + 5);
FillRect(drawItem->hDC, &fRect, GetSysColorBrush(COLOR_ACTIVEBORDER));
- /* draw scrollbar */
+ /* Draw scrollbar */
SetRect(&fRect, cRect.right - 5, fRect.bottom + 1, cRect.right - 3, cRect.bottom - 3);
FillRect(drawItem->hDC, &fRect, GetSysColorBrush(COLOR_SCROLLBAR));
- /* draw console background */
+ /* Draw console background */
hBrush = CreateSolidBrush(pConInfo->ScreenBackground);
SetRect(&fRect, startx + 3, starty + 6, cRect.right - 6, cRect.bottom - 3);
FillRect(drawItem->hDC, &fRect, hBrush);
FillRect(drawItem->hDC, &drawItem->rcItem, hBrush);
if (ntColor == nbkColor)
{
- /* text has same color -> invisible */
+ /* Text has same color -> invisible */
return;
}
}
-
INT_PTR
CALLBACK
LayoutProc(
}
else
{
- //FIXME calculate window pos from xres, yres
+ // FIXME: Calculate window pos from xres, yres
SetDlgItemInt(hwndDlg, IDC_EDIT_WINDOW_POS_LEFT, 88, FALSE);
SetDlgItemInt(hwndDlg, IDC_EDIT_WINDOW_POS_TOP, 88, FALSE);
EnableWindow(GetDlgItem(hwndDlg, IDC_EDIT_WINDOW_POS_LEFT), FALSE);
if (lppsn->hdr.idFrom == IDC_UPDOWN_WINDOW_SIZE_WIDTH || lppsn->hdr.idFrom == IDC_UPDOWN_WINDOW_SIZE_HEIGHT)
{
- /* automatically adjust screen buffer size when window size enlarges */
+ /* Automatically adjust screen buffer size when window size enlarges */
if (wwidth >= swidth)
{
SetDlgItemInt(hwndDlg, IDC_EDIT_SCREEN_BUFFER_WIDTH, wwidth, TRUE);
if (lppsn->hdr.idFrom == IDC_UPDOWN_SCREEN_BUFFER_WIDTH || lppsn->hdr.idFrom == IDC_UPDOWN_SCREEN_BUFFER_HEIGHT)
{
- /* automatically adjust window size when screen buffer decreases */
+ /* Automatically adjust window size when screen buffer decreases */
if (wwidth > swidth)
{
SetDlgItemInt(hwndDlg, IDC_EDIT_WINDOW_SIZE_WIDTH, swidth, TRUE);
swidth = max(swidth, 1);
sheight = max(sheight, 1);
- /* automatically adjust window size when screen buffer decreases */
+ /* Automatically adjust window size when screen buffer decreases */
if (wwidth > swidth)
{
SetDlgItemInt(hwndDlg, IDC_EDIT_WINDOW_SIZE_WIDTH, swidth, TRUE);
}
else
{
- /* options have already been applied */
+ /* Options have already been applied */
SetWindowLongPtr(hwndDlg, DWL_MSGRESULT, PSNRET_NOERROR);
return TRUE;
}
HWND hDlgCtrl;
TCHAR szBuffer[MAX_PATH];
- /* update cursor size */
+ /* Update cursor size */
if ( pConInfo->CursorSize == 0)
{
- /* small cursor */
+ /* Small cursor */
hDlgCtrl = GetDlgItem(hwndDlg, IDC_RADIO_SMALL_CURSOR);
SendMessage(hDlgCtrl, BM_SETCHECK, (WPARAM)BST_CHECKED, 0);
SendMessage(hDlgCtrl, BM_SETCHECK, (WPARAM)BST_UNCHECKED, 0);
}
- /* update num buffers */
+ /* Update num buffers */
hDlgCtrl = GetDlgItem(hwndDlg, IDC_UPDOWN_NUM_BUFFER);
SendMessage(hDlgCtrl, UDM_SETRANGE, 0, MAKELONG((short)999, (short)1));
hDlgCtrl = GetDlgItem(hwndDlg, IDC_EDIT_NUM_BUFFER);
_stprintf(szBuffer, _T("%d"), pConInfo->NumberOfHistoryBuffers);
SendMessage(hDlgCtrl, WM_SETTEXT, 0, (LPARAM)szBuffer);
- /* update buffer size */
+ /* Update buffer size */
hDlgCtrl = GetDlgItem(hwndDlg, IDC_UPDOWN_BUFFER_SIZE);
SendMessage(hDlgCtrl, UDM_SETRANGE, 0, MAKELONG((short)999, (short)1));
hDlgCtrl = GetDlgItem(hwndDlg, IDC_EDIT_BUFFER_SIZE);
- /* update discard duplicates */
+ /* Update discard duplicates */
hDlgCtrl = GetDlgItem(hwndDlg, IDC_CHECK_DISCARD_DUPLICATES);
if ( pConInfo->HistoryNoDup )
SendMessage(hDlgCtrl, BM_SETCHECK, (WPARAM)BST_CHECKED, 0);
else
SendMessage(hDlgCtrl, BM_SETCHECK, (LPARAM)BST_UNCHECKED, 0);
- /* update full/window screen */
+ /* Update full/window screen */
if ( pConInfo->FullScreen )
{
hDlgCtrl = GetDlgItem(hwndDlg, IDC_RADIO_DISPLAY_FULL);
SendMessage(hDlgCtrl, BM_SETCHECK, (LPARAM)BST_UNCHECKED, 0);
}
- /* update quick edit */
+ /* Update quick edit */
hDlgCtrl = GetDlgItem(hwndDlg, IDC_CHECK_QUICK_EDIT);
if ( pConInfo->QuickEdit )
SendMessage(hDlgCtrl, BM_SETCHECK, (WPARAM)BST_CHECKED, 0);
else
SendMessage(hDlgCtrl, BM_SETCHECK, (LPARAM)BST_UNCHECKED, 0);
- /* update insert mode */
+ /* Update insert mode */
hDlgCtrl = GetDlgItem(hwndDlg, IDC_CHECK_INSERT_MODE);
if ( pConInfo->InsertMode )
SendMessage(hDlgCtrl, BM_SETCHECK, (WPARAM)BST_CHECKED, 0);
else
SendMessage(hDlgCtrl, BM_SETCHECK, (LPARAM)BST_UNCHECKED, 0);
}
-
-
#define IDD_PROPPAGECOLORS 103
#define IDD_APPLYOPTIONS 104
-//options dialog
+// Options dialog
#define IDC_CHECK_QUICK_EDIT 200
#define IDC_CHECK_INSERT_MODE 201
#define IDC_CHECK_DISCARD_DUPLICATES 202
#define IDC_RADIO_DISPLAY_WINDOW 210
#define IDC_RADIO_DISPLAY_FULL 211
-// apply dialog
+// Apply dialog
#define IDC_RADIO_APPLY_ALL 300
#define IDC_RADIO_APPLY_CURRENT 301
-//font dialog
+// Font dialog
#define IDC_CHECK_BOLD_FONTS 400
#define IDC_STATIC_SELECT_FONT_PREVIEW 401
#define IDC_FONT_SIZE_X 402
#define IDC_LBOX_TYPE 406
#define IDC_GROUPBOX_FONT_NAME 407
-//layout dialog
-
+// Layout dialog
#define IDC_UPDOWN_SCREEN_BUFFER_WIDTH 500
#define IDC_EDIT_SCREEN_BUFFER_WIDTH 501
#define IDC_EDIT_SCREEN_BUFFER_HEIGHT 502
#define IDC_CHECK_SYSTEM_POS_WINDOW 512
#define IDC_STATIC_LAYOUT_WINDOW_PREVIEW 513
-//color dialog
-
+// Color dialog
#define IDC_RADIO_SCREEN_TEXT 600
#define IDC_RADIO_SCREEN_BACKGROUND 601
#define IDC_RADIO_POPUP_TEXT 602
#define IDC_STATIC_COLOR15 626
#define IDC_STATIC_COLOR16 627
-
-//string ids
+// String IDs
#define IDS_SCREEN_TEXT 700
#define IDS_RASTERFONTS 701
g->SchemeAdv = g->Scheme;
SendDlgItemMessage(hwndDlg, IDC_APPEARANCE_PREVIEW, PVM_UPDATETHEME, 0, (LPARAM)&g->SchemeAdv);
-
+
/* Add the elements to the combo */
for (iElement = 0; iElement < NUM_ELEMENTS; iElement++)
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS Display Control Panel
- * FILE: lib/cpl/desk/appearance.c
+ * FILE: dll/cpl/desk/appearance.c
* PURPOSE: Appearance property page
*
* PROGRAMMERS: Trevor McCort (lycan359@gmail.com)
int i, iListIndex;
SendMessage(hwndColor, CB_RESETCONTENT , 0, 0);
-
+
if(g->bThemeActive == FALSE)
{
for(i = 0; i < g_TemplateCount; i++)
if(g->bThemeActive == FALSE)
{
COLOR_SCHEME Scheme;
-
+
g->bSchemeChanged = TRUE;
if (SchemeId != -1 && LoadSchemeFromReg(&Scheme, SchemeId))
{
PTHEME pTheme = (PTHEME)DSA_GetItemPtr(g->Themes, g->ThemeId);
ActivateTheme(pTheme, g->SchemeId, 0);
}
-
+
SendDlgItemMessage(hwndDlg, IDC_APPEARANCE_PREVIEW, PVM_UPDATETHEME, 0, (LPARAM)&g->Scheme);
g->bThemeChanged = FALSE;
g->bSchemeChanged = FALSE;
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS Display Control Panel
- * FILE: lib/cpl/desk/background.c
+ * FILE: dll/cpl/desk/background.c
* PURPOSE: Background property page
*
* PROGRAMMERS: Trevor McCort (lycan359@gmail.com)
{
_tcscpy(wallpaperFilename, buffer);
}
-
+
himl = (HIMAGELIST)SHGetFileInfo(wallpaperFilename,
0,
&sfi,
DWORD dwDisposition = 0;
result = RegCreateKeyEx( HKEY_CURRENT_USER, TEXT("Control Panel\\Desktop"), 0, NULL, 0, KEY_ALL_ACCESS, NULL,
®Key, &dwDisposition );
- /* now the key must be created & opened and regKey points to opened key */
+ /* Now the key must be created & opened and regKey points to opened key */
/* On error result will not contain ERROR_SUCCESS. I don't know how to handle */
/* this case :( */
}
LVFINDINFO lvfi;
int retVal;
- lvfi.flags = LVFI_STRING; /* search item by EXACT string */
- lvfi.psz = tszFileName; /* string to search */
+ lvfi.flags = LVFI_STRING; /* Search item by EXACT string */
+ lvfi.psz = tszFileName; /* String to search */
- /* other items of this structure are not valid, besacuse flags are not set. */
+ /* Other items of this structure are not valid, besacuse flags are not set. */
retVal = ListView_FindItem(hwndList, -1, &lvfi);
if (retVal != -1)
return TRUE; /* item found! */
if (pData->backgroundItems[pData->backgroundSelection].bWallpaper == FALSE)
{
- /* update desktop background color image */
+ /* Update desktop background color image */
hBrush = CreateSolidBrush(g_GlobalData.desktop_color);
FillRect(hDC, &rcItem, hBrush);
DeleteObject(hBrush);
red = GetRValue(g_GlobalData.desktop_color);
green = GetGValue(g_GlobalData.desktop_color);
blue = GetBValue(g_GlobalData.desktop_color);
- /* format string to be set to registry */
+ /* Format string to be set to registry */
wsprintf(clText, TEXT("%d %d %d"), red, green, blue);
RegSetValueEx(hKey, TEXT("Background"), 0, REG_SZ, (BYTE *)clText,
(lstrlen(clText) + 1) * sizeof(TCHAR));
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS Display Control Panel
- * FILE: lib/cpl/desk/classinst.c
+ * FILE: dll/cpl/desk/classinst.c
* PURPOSE: Display class installer
*
* PROGRAMMERS: Hervé Poussineau (hpoussin@reactos.org)
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS Display Control Panel
- * FILE: lib/cpl/desk/desk.c
+ * FILE: dll/cpl/desk/desk.c
* PURPOSE: ReactOS Display Control Panel
*
* PROGRAMMERS: Trevor McCort (lycan359@gmail.com)
LPTSTR DeviceKey;
LPTSTR DeviceID;
DWORD DeviceStateFlags;
- PSETTINGS_ENTRY Settings; /* sorted by increasing dmPelsHeight, BPP */
+ PSETTINGS_ENTRY Settings; /* Sorted by increasing dmPelsHeight, BPP */
DWORD SettingsCount;
PRESOLUTION_INFO Resolutions;
DWORD ResolutionsCount;
/*
-* COPYRIGHT: See COPYING in the top level directory
+ * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS Display Control Panel
- * FILE: lib/cpl/desk/devsett.c
+ * FILE: dll/cpl/desk/devsett.c
* PURPOSE: ReactOS Display Control Panel Shell Extension Support
*/
const struct IDataObjectVtbl *lpIDataObjectVtbl;
DWORD ref;
- CLIPFORMAT cfExtInterface; /* "Desk.cpl extension interface" */
- CLIPFORMAT cfDisplayDevice; /* "Display Device" */
- CLIPFORMAT cfDisplayName; /* "Display Name" */
- CLIPFORMAT cfDisplayId; /* "Display ID" */
- CLIPFORMAT cfMonitorName; /* "Monitor Name" */
- CLIPFORMAT cfMonitorDevice; /* "Monitor Device" */
- CLIPFORMAT cfDisplayKey; /* "Display Key" */
+ CLIPFORMAT cfExtInterface; /* "Desk.cpl extension interface" */
+ CLIPFORMAT cfDisplayDevice; /* "Display Device" */
+ CLIPFORMAT cfDisplayName; /* "Display Name" */
+ CLIPFORMAT cfDisplayId; /* "Display ID" */
+ CLIPFORMAT cfMonitorName; /* "Monitor Name" */
+ CLIPFORMAT cfMonitorDevice; /* "Monitor Device" */
+ CLIPFORMAT cfDisplayKey; /* "Display Key" */
CLIPFORMAT cfDisplayStateFlags; /* "Display State Flags" */
- CLIPFORMAT cfPruningMode; /* "Pruning Mode" */
+ CLIPFORMAT cfPruningMode; /* "Pruning Mode" */
PWSTR pDisplayDevice;
PWSTR pDisplayName;
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS Display Control Panel
- * FILE: lib/cpl/desk/dibitmap.c
+ * FILE: dll/cpl/desk/dibitmap.c
* PURPOSE: DIB loading
*
* PROGRAMMERS: Trevor McCort (lycan359@gmail.com)
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS Display Control Panel
- * FILE: lib/cpl/desk/draw.c
+ * FILE: dll/cpl/desk/draw.c
* PURPOSE: Providing drawing functions
*
* PROGRAMMERS: Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
lf.lfCharSet = DEFAULT_CHARSET;
lstrcpy(lf.lfFaceName, TEXT("Marlett"));
hFont = CreateFontIndirect(&lf);
- /* save font and text color */
+ /* Save font and text color */
hOldFont = SelectObject(dc, hFont);
clrsave = GetTextColor(dc);
bkmode = GetBkMode(dc);
- /* set color and drawing mode */
+ /* Set color and drawing mode */
SetBkMode(dc, TRANSPARENT);
if(uFlags & DFCS_INACTIVE)
{
- /* draw shadow */
+ /* Draw shadow */
SetTextColor(dc, scheme->crColor[COLOR_BTNHIGHLIGHT]);
TextOut(dc, myr.left + 1, myr.top + 1, &Symbol, 1);
}
SetTextColor(dc, scheme->crColor[(uFlags & DFCS_INACTIVE) ? COLOR_BTNSHADOW : COLOR_BTNTEXT]);
- /* draw selected symbol */
+ /* Draw selected symbol */
TextOut(dc, myr.left, myr.top, &Symbol, 1);
- /* restore previous settings */
+ /* Restore previous settings */
SetTextColor(dc, clrsave);
SelectObject(dc, hOldFont);
SetBkMode(dc, bkmode);
lf.lfCharSet = DEFAULT_CHARSET;
lstrcpy(lf.lfFaceName, TEXT("Marlett"));
hFont = CreateFontIndirect(&lf);
- /* save font and text color */
+ /* Save font and text color */
hOldFont = SelectObject(dc, hFont);
clrsave = GetTextColor(dc);
bkmode = GetBkMode(dc);
- /* set color and drawing mode */
+ /* Set color and drawing mode */
SetBkMode(dc, TRANSPARENT);
if(uFlags & DFCS_INACTIVE)
{
- /* draw shadow */
+ /* Draw shadow */
SetTextColor(dc, scheme->crColor[COLOR_BTNHIGHLIGHT]);
TextOut(dc, myr.left + 1, myr.top + 1, &Symbol, 1);
}
SetTextColor(dc, scheme->crColor[(uFlags & DFCS_INACTIVE) ? COLOR_BTNSHADOW : COLOR_BTNTEXT]);
- /* draw selected symbol */
+ /* Draw selected symbol */
TextOut(dc, myr.left, myr.top, &Symbol, 1);
/* restore previous settings */
SetTextColor(dc, clrsave);
WPARAM state;
state = SendDlgItemMessage(hwndDlg, IDC_EFFAPPEARANCE_ANIMATION, BM_GETCHECK, 0, 0);
g->SchemeAdv.Effects.bMenuAnimation = (state == BST_CHECKED) ? TRUE : FALSE;
- EnableWindow(GetDlgItem(hwndDlg, IDC_EFFAPPEARANCE_ANIMATIONTYPE), g->SchemeAdv.Effects.bMenuAnimation);
+ EnableWindow(GetDlgItem(hwndDlg, IDC_EFFAPPEARANCE_ANIMATIONTYPE), g->SchemeAdv.Effects.bMenuAnimation);
- //A boolean as an index for a 2-value list:
+ // A boolean as an index for a 2-value list:
SendDlgItemMessage(hwndDlg, IDC_EFFAPPEARANCE_ANIMATIONTYPE, CB_SETCURSEL, (WPARAM)g->SchemeAdv.Effects.bMenuFade, 0);
state = SendDlgItemMessage(hwndDlg, IDC_EFFAPPEARANCE_KEYBOARDCUES, BM_GETCHECK, 0, 0);
static VOID
AddToCombo(HWND hwndDlg, INT From, INT To, INT Combo)
{
- INT iElement, iListIndex, i=0;
- TCHAR tstrText[80];
+ INT iElement, iListIndex, i=0;
+ TCHAR tstrText[80];
for (iElement = From; iElement<=To; iElement++)
- {
- LoadString(hApplet, iElement, (LPTSTR)tstrText, 80);
- iListIndex = SendDlgItemMessage(hwndDlg, Combo, CB_ADDSTRING, 0, (LPARAM)tstrText);
- SendDlgItemMessage(hwndDlg, Combo, CB_SETITEMDATA, (WPARAM)iListIndex, (LPARAM)i++ );
- }
+ {
+ LoadString(hApplet, iElement, (LPTSTR)tstrText, 80);
+ iListIndex = SendDlgItemMessage(hwndDlg, Combo, CB_ADDSTRING, 0, (LPARAM)tstrText);
+ SendDlgItemMessage(hwndDlg, Combo, CB_SETITEMDATA, (WPARAM)iListIndex, (LPARAM)i++ );
+ }
}
/* Initialize the effects appearance dialog */
for (;;)
{
TCHAR Desc[LINE_LEN];
-
+
if (SetupGetStringField(&Context, 0, Desc, sizeof(Desc), NULL) &&
SetupGetIntField(&Context, 1, &ci))
{
WS_BORDER | WS_GROUP, 61, 123, 12, 13
LTEXT "minutos", IDC_MINTEXT, 70, 125, 26, 9
CONTROL "Pr&oteger con contraseña al reanudar",IDC_SCREENS_USEPASSCHK,"button",
- BS_AUTOCHECKBOX | WS_TABSTOP, 108, 120, 117, 19 //104
+ BS_AUTOCHECKBOX | WS_TABSTOP, 108, 120, 117, 19 // 104
GROUPBOX "Energía del monitor ", IDC_SCREENS_DUMMY2, 6, 155, 232, 41
LTEXT "Para ajustar la configuración de energía del monitor y ahorrar energía, haga clic en Energía.",
IDC_STATIC, 14, 166, 146, 24
WS_VISIBLE | WS_BORDER, 7, 7, 232, 120
LTEXT "Visual Style", IDC_STATIC, 7, 130, 64, 7
COMBOBOX IDC_APPEARANCE_VISUAL_STYLE, 7, 140, 134, 90, CBS_DROPDOWNLIST | CBS_HASSTRINGS | CBS_SORT | WS_VSCROLL | WS_TABSTOP
- LTEXT "Com&binación de colores", IDC_STATIC, 7, 160, 90, 7 //64
+ LTEXT "Com&binación de colores", IDC_STATIC, 7, 160, 90, 7 // 64
COMBOBOX IDC_APPEARANCE_COLORSCHEME, 7, 170, 134, 90, CBS_DROPDOWNLIST | CBS_HASSTRINGS | CBS_SORT | WS_VSCROLL | WS_TABSTOP
PUSHBUTTON "&Efectos...", IDC_APPEARANCE_EFFECTS, 182, 150, 56, 15
PUSHBUTTON "Opciones &avanzadas", IDC_APPEARANCE_ADVANCED, 182, 170, 56, 15
-//2011.11.07 - Fulea Ștefan: minor changes
+// 2011.11.07 - Fulea Ștefan: minor changes
LANGUAGE LANG_ROMANIAN, SUBLANG_DEFAULT
IDD_BACKGROUND DIALOGEX DISCARDABLE 0, 0, 246, 204
CAPTION "V\9aeobecné"
FONT 8, "MS Shell Dlg"
BEGIN
- GROUPBOX "Zobrazenie", -1, 7, 6, 237, 56, WS_GROUP //Display=viac významov
+ GROUPBOX "Zobrazenie", -1, 7, 6, 237, 56, WS_GROUP // Display=viac významov
LTEXT "Ve¾kos\9d písma", -1, 14, 20, 222, 8
COMBOBOX IDC_FONTSIZE_COMBO, 14, 30, 223, 80, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
LTEXT "", IDC_FONTSIZE_COSTOM, 14, 46, 223, 12
STRINGTABLE DISCARDABLE
BEGIN
- IDS_SLIDEEFFECT "Posúvanie" //Slide effect
- IDS_FADEEFFECT "Vytrácanie" //Fade effect
+ IDS_SLIDEEFFECT "Posúvanie" // Slide effect
+ IDS_FADEEFFECT "Vytrácanie" // Fade effect
END
STRINGTABLE DISCARDABLE
STRINGTABLE
BEGIN
- IDS_CPLNAME "Obrazovka" //Display
+ IDS_CPLNAME "Obrazovka" // Display
IDS_CPLDESCRIPTION "Umo\9eòuje prispôsobi\9d vzh¾ad, pozadie a \9aetriè obrazovky."
IDS_NONE "(Nie je)"
IDS_CENTER "V strede"
IDS_ELEMENT_10 "Priestorové objekty"
IDS_ELEMENT_11 "Názov palety"
IDS_ELEMENT_12 "Názov tlaèidla"
- IDS_ELEMENT_13 "Ovládacie tlaèidlá" //old=Li\9ata znaèiek
+ IDS_ELEMENT_13 "Ovládacie tlaèidlá" // old=Li\9ata znaèiek
IDS_ELEMENT_14 "Nedostupné polo\9eky ponuky"
IDS_ELEMENT_15 "Políèko s hlásením"
IDS_ELEMENT_16 "Ovládanie posúvaèa"
UINT x;
/* Find the string we're looking for */
- uID &= 0xF; /* position in the block, same as % 16 */
+ uID &= 0xF; /* Position in the block, same as % 16 */
for (x = 0; x < uID; x++)
{
lpStr += (*lpStr) + 1;
if (infoPtr->hbrDisabled != NULL)
{
- /* FIXME - implement */
+ /* FIXME: Implement */
}
return Ret;
if (!(infoPtr->ControlExStyle & MSLM_EX_SELECTONRIGHTCLICK))
break;
- /* fall through */
+ /* Fall through */
}
case WM_LBUTTONDBLCLK:
&pt);
}
- /* fall through */
+ /* Fall through */
}
case WM_MBUTTONDOWN:
{
case VK_TAB:
{
- /* change the UI status */
+ /* Change the UI status */
SendMessage(GetAncestor(hwnd,
GA_PARENT),
WM_CHANGEUISTATE,
/*
* PROJECT: ReactOS Desktop Control Panel
* LICENSE: GPL - See COPYING in the top level directory
- * FILE: lib/cpl/desk/preview.c
+ * FILE: dll/cpl/desk/preview.c
* PURPOSE: Draws the preview control
* COPYRIGHT: Copyright 2006, 2007 Eric Kohl
*/
/*
* PROJECT: ReactOS Desktop Control Panel
* LICENSE: GPL - See COPYING in the top level directory
- * FILE: lib/cpl/desk/preview.h
+ * FILE: dll/cpl/desk/preview.h
* PURPOSE: Definitions used by the preview control
* COPYRIGHT: Copyright 2006, 2007 Eric Kohl
*/
#pragma once
-/* metrics */
+/* Metrics */
#define PROPSHEETWIDTH 246
#define PROPSHEETHEIGHT 228
#define PROPSHEETPADDING 6
STARTUPINFO si;
TCHAR szCmdline[2048];
- /* kill off the previous preview process*/
+ /* Kill off the previous preview process */
if (pData->PrevWindowPi.hProcess)
{
TerminateProcess(pData->PrevWindowPi.hProcess, 0);
&si,
&pi))
{
- /* kill off the previous preview process */
+ /* Kill off the previous preview process */
if (pData->PrevWindowPi.hProcess)
{
TerminateProcess(pData->PrevWindowPi.hProcess, 0);
if (pData->Selection < 1)
return;
- /* kill off the previous preview process*/
+ /* Kill off the previous preview process */
if (pData->PrevWindowPi.hProcess)
{
TerminateProcess(pData->PrevWindowPi.hProcess, 0);
TCHAR szTime[256], Sec;
UINT Ret;
- /* set the screensaver */
+ /* Set the screensaver */
if (pData->ScreenSaverItems[pData->Selection].bIsScreenSaver)
{
RegSetValueEx(regKey,
SystemParametersInfoW(SPI_SETSCREENSAVETIMEOUT, Time, 0, SPIF_SENDCHANGE);
- /* set the secure value */
+ /* Set the secure value */
Ret = SendDlgItemMessage(hwndDlg,
IDC_SCREENS_USEPASSCHK,
BM_GETCHECK,
CheckRegScreenSaverIsSecure(hwndDlg);
- /* set the current screensaver in the combo box */
+ /* Set the current screensaver in the combo box */
lpCurSs = GetCurrentScreenSaverValue(_T("SCRNSAVE.EXE"));
if (lpCurSs)
{
}
else
{
- /* set screensaver to (none) */
+ /* Set screensaver to (none) */
SendMessage(hwndSSCombo,
CB_SETCURSEL,
0,
0);
}
- /* set the current timeout */
+ /* Set the current timeout */
lpCurSs = GetCurrentScreenSaverValue(_T("ScreenSaveTimeOut"));
if (lpCurSs)
{
case PSN_SETACTIVE:
{
- /* activate screen saver support */
+ /* Activate screen saver support */
SystemParametersInfoW(SPI_SETSCREENSAVEACTIVE, TRUE, 0, SPIF_SENDCHANGE);
SetScreenSaverPreviewBox(hwndDlg, pData);
break;
1,
(LPARAM)&monitors);
}
- else /* FIXME: incomplete! */
+ else /* FIXME: Incomplete! */
{
PMONSL_MONINFO pMonitors;
DWORD i;
static VOID
OnBPPChanged(IN HWND hwndDlg, IN PDATA pData)
{
- /* if new BPP is not compatible with resolution:
+ /* If new BPP is not compatible with resolution:
* 1) try to find the nearest smaller matching resolution
* 2) otherwise, get the nearest bigger resolution
*/
GetClientRect(hSpectrumControl, &client);
ShowColorSpectrum(hSpectrumDC, &client, dmNewBitsPerPel, pData);
- /* find if new parameters are valid */
+ /* Find if new parameters are valid */
Current = pData->CurrentDisplayDevice->CurrentSettings;
if (dmNewBitsPerPel == Current->dmBitsPerPel)
{
- /* no change */
+ /* No change */
return;
}
}
}
- /* search smaller resolution compatible with current color depth */
+ /* Search smaller resolution compatible with current color depth */
Current = pData->CurrentDisplayDevice->CurrentSettings->Blink;
while (Current != NULL)
{
Current = Current->Blink;
}
- /* search bigger resolution compatible with current color depth */
+ /* Search bigger resolution compatible with current color depth */
Current = pData->CurrentDisplayDevice->CurrentSettings->Flink;
while (Current != NULL)
{
Current = Current->Flink;
}
- /* we shouldn't go there */
+ /* We shouldn't go there */
}
static VOID
OnResolutionChanged(IN HWND hwndDlg, IN PDATA pData, IN DWORD NewPosition,
IN BOOL bUpdateThumb)
{
- /* if new resolution is not compatible with color depth:
+ /* If new resolution is not compatible with color depth:
* 1) try to find the nearest bigger matching color depth
* 2) otherwise, get the nearest smaller color depth
*/
DWORD dmNewPelsHeight = pData->CurrentDisplayDevice->Resolutions[NewPosition].dmPelsHeight;
DWORD dmNewPelsWidth = pData->CurrentDisplayDevice->Resolutions[NewPosition].dmPelsWidth;
- /* find if new parameters are valid */
+ /* Find if new parameters are valid */
Current = pData->CurrentDisplayDevice->CurrentSettings;
if (dmNewPelsHeight == Current->dmPelsHeight && dmNewPelsWidth == Current->dmPelsWidth)
{
- /* no change */
+ /* No change */
return;
}
}
}
- /* search bigger color depth compatible with current resolution */
+ /* Search bigger color depth compatible with current resolution */
Current = pData->CurrentDisplayDevice->CurrentSettings->Flink;
while (Current != NULL)
{
Current = Current->Flink;
}
- /* search smaller color depth compatible with current resolution */
+ /* Search smaller color depth compatible with current resolution */
Current = pData->CurrentDisplayDevice->CurrentSettings->Blink;
while (Current != NULL)
{
Current = Current->Blink;
}
- /* we shouldn't go there */
+ /* We shouldn't go there */
}
/* Property sheet page callback */
}
else
pt.x = pt.y = 0;
-
+
MapWindowPoints(hwndMonSel,
NULL,
&pt,
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS Display Control Panel
- * FILE: lib/cpl/desk/theme.c
+ * FILE: dll/cpl/desk/theme.c
* PURPOSE: Handling themes
*
* PROGRAMMERS: Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
scheme->Effects.bTooltipAnimation = scheme->Effects.bMenuAnimation;
scheme->Effects.bTooltipFade = scheme->Effects.bMenuFade;
- /* show content of windows during dragging */
+ /* Show content of windows during dragging */
SystemParametersInfo(SPI_GETDRAGFULLWINDOWS, 0, &scheme->Effects.bDragFullWindows, 0);
/* "Hide underlined letters for keyboard navigation until I press the Alt key" */
BOOL SaveScheme(COLOR_SCHEME* scheme, LPCTSTR strLegacyName)
{
- /* FIXME: implement */
+ /* FIXME: Implement */
return FALSE;
}
while((RegEnumKeyEx(hkNewSchemes, iStyle, g_ColorSchemes[iTemplateIndex].strKeyName, &dwLength,
NULL, NULL, NULL, &ftLastWriteTime) == ERROR_SUCCESS) && (iTemplateIndex < MAX_TEMPLATES))
{
- /* is it really a template or one of the other entries */
+ /* Is it really a template or one of the other entries */
if (dwLength <= 4)
{
if (RegOpenKeyEx(hkNewSchemes, g_ColorSchemes[iTemplateIndex].strKeyName, 0, KEY_READ, &hkScheme) == ERROR_SUCCESS)
free(g->pszSizeName);
DSA_DestroyCallback(g->Themes, CleanUpThemeCallback, NULL);
-}
\ No newline at end of file
+}
if (hDevInfo == INVALID_HANDLE_VALUE) return;
- /* get the device image List */
+ /* Get the device image List */
ImageListData.cbSize = sizeof(ImageListData);
SetupDiGetClassImageList(&ImageListData);
if (ulStatus & DN_NO_SHOW_IN_DM) continue;
}
- /* get the device's friendly name */
+ /* Get the device's friendly name */
if (!SetupDiGetDeviceRegistryProperty(hDevInfo,
&DevInfoData,
SPDRP_FRIENDLYNAME,
MAX_STR_SIZE,
NULL))
{
- /* if the friendly name fails, try the description instead */
+ /* If the friendly name fails, try the description instead */
SetupDiGetDeviceRegistryProperty(hDevInfo,
&DevInfoData,
SPDRP_DEVICEDESC,
0);
if (Ret != CR_SUCCESS)
{
- /* all classes enumerated */
+ /* All classes enumerated */
if(Ret == CR_NO_SUCH_VALUE)
{
hDevInfoTypes = NULL;
if (Ret == CR_INVALID_DATA)
{
- ; /*FIXME: what should we do here? */
+ ; /* FIXME: What should we do here? */
}
- /* handle other errors... */
+ /* Handle other errors... */
}
if (SetupDiClassNameFromGuid(&ClassGuid,
&ClassGuid,
ClassImage))
{
- /* FIXME: can we do this?
+ /* FIXME: Can we do this?
* Set the blank icon: IDI_SETUPAPI_BLANK = 41
- * it'll be image 24 in the imagelist */
+ * It'll be image 24 in the imagelist */
*ClassImage = 24;
}
(VOID) ListView_InsertItem(hList, &Item);
- /* kill InfoList initialized in EnumDeviceClasses */
+ /* Kill InfoList initialized in EnumDeviceClasses */
if (hDevInfoTypes)
{
SetupDiDestroyDeviceInfoList(hDevInfoTypes);
-//2011.11.08 - Fulea Ștefan: minor changes
+// 2011.11.08 - Fulea Ștefan: minor changes
LANGUAGE LANG_ROMANIAN, SUBLANG_DEFAULT
IDD_STARTPAGE DIALOG DISCARDABLE 0, 0, 317, 186
LTEXT "2) Vyrie\9ai\9d problémy, ktoré mô\9eete ma\9d s Va\9aím hardvérom.", -1, 121, 78, 185, 16
ICON IDI_WARNINGICON, IDC_WARNINGICON, 124, 109, 20, 20
LTEXT "Ak bolo spolu s Va\9aím hardvérom dodané aj in\9atalaèné CD, odporúèa sa, aby ste klikli na tlaèidlo Zru\9ai\9d pre zatvorenie tohto sprievodcu a pou\9eili CD od výrobcu pre nain\9atalovanie tohto hardvéru.", 503, 150, 106, 155, 50
- LTEXT "Pre pokraèovanie kliknite na tlaèidlo Ïalej.", -1, 114, 166, 193, 8 //Pokraèujte stlaèením tlaèidla Ïalej.
+ LTEXT "Pre pokraèovanie kliknite na tlaèidlo Ïalej.", -1, 114, 166, 193, 8 // Pokraèujte stlaèením tlaèidla Ïalej.
END
IDD_SEARCHPAGE DIALOG DISCARDABLE 0, 0, 317, 143
CAPTION "Sprievodca pridaním hardvéru"
FONT 8, "MS Shell Dlg"
BEGIN
- LTEXT "Pripojili ste u\9e tento hardvér k Vá\9amu poèítaèu?", -1, 20, 11, 275, 8 //tento = daný
+ LTEXT "Pripojili ste u\9e tento hardvér k Vá\9amu poèítaèu?", -1, 20, 11, 275, 8 // tento = daný
AUTORADIOBUTTON "Án&o, u\9e som pripojil hardvér", IDC_CONNECTED, 29, 23, 266, 8, WS_GROUP
AUTORADIOBUTTON "&Nie, zatia¾ som nepridal hardvér", IDC_NOTCONNECTED, 29, 35, 266, 8
END
/*
* PROJECT: Add Hardware Control Panel Applet
* LICENSE: GPL - See COPYING in the top level directory
- * FILE: dll/cpl/hdwwiz/Uk.rc
+ * FILE: dll/cpl/hdwwiz/lang/uk-UA.rc
* PURPOSE: Ukraianian Language File for Add Hardware Control Panel Applet
* TRANSLATORS: Artem Reznikov, Igor Paliychuk
*/
}
}
break;
-
+
case IDC_SWITCH_KBLAYOUTS_CB:
if (HIWORD(wParam) == BN_CLICKED)
{
-//2011.10.30 - Fulea Ștefan: minor changes
+// 2011.10.30 - Fulea Ștefan: minor changes
LANGUAGE LANG_ROMANIAN, SUBLANG_DEFAULT
IDD_PROPPAGESETTINGS DIALOGEX 0, 0, 254, 228
FONT 8, "MS Shell Dlg"
BEGIN
GROUPBOX "Vypnutie funkcie Caps Lock", -1, 7, 7, 258, 26
- AUTORADIOBUTTON "Stlaèením klávesu CAPS &LOCK", IDC_PRESS_CL_KEY_RB, 14, 17, 120, 11, WS_GROUP //ten kláves, nie tá klávesa
+ AUTORADIOBUTTON "Stlaèením klávesu CAPS &LOCK", IDC_PRESS_CL_KEY_RB, 14, 17, 120, 11, WS_GROUP // Ten kláves, nie tá klávesa
AUTORADIOBUTTON " Stlaèením klávesu SHI&FT", IDC_PRESS_SHIFT_KEY_RB, 144, 17, 120, 11, NOT WS_TABSTOP
GROUPBOX "Klávesové skratky pre vstupné jazyky", -1, 7, 37, 258, 95
LTEXT "Akcia", -1, 14, 47, 60, 9
IDS_LANGUAGE "Jazyk"
IDS_LAYOUT "Rozlo\9eenie klávesnice"
IDS_REM_QUESTION "Chcete odstráni\9d vybrané rozlo\9eenie klávesnice?"
- IDS_CONFIRMATION "Potvrdenie" //Confirmation
+ IDS_CONFIRMATION "Potvrdenie" // Confirmation
IDS_LAYOUT_EXISTS "Toto rozlo\9eenie u\9e existuje."
IDS_LAYOUT_EXISTS2 "Toto rozlo\9eenie u\9e existuje a nemô\9ee by\9d pridané."
IDS_CTRL_SHIFT "Ctrl+Shift"
IDS_ARMENIAN_WESTERN_LAYOUT, "Arménske Western"
IDS_ASSAMESE_LAYOUT, "Assamese"
IDS_AZERI_CYRILLIC_LAYOUT, "Azeri Cyrillic"
- IDS_AZERI_LATIN_LAYOUT, "Azeri Latin" //latinka ?
+ IDS_AZERI_LATIN_LAYOUT, "Azeri Latin" // Latinka?
IDS_BELGIAN_COMMA_LAYOUT, "Belgian (Comma)"
IDS_BELGIAN_FRENCH_LAYOUT, "Belgické French"
IDS_BELGIAN_LAYOUT, "Belgické (Period)"
IDS_UNITED_STATES_DVORAK_FOR_RIGHT_HAND_LAYOUT, "United States-Dvorak for right hand"
IDS_UNITED_STATES_INTERNATIONAL_LAYOUT, "United States-International"
IDS_URDU_LAYOUT, "Urdu"
- IDS_USENG_TABLE_IBM_ARABIC238L_LAYOUT, "US English Table for IBM Arabic 238_L" //Arabské
+ IDS_USENG_TABLE_IBM_ARABIC238L_LAYOUT, "US English Table for IBM Arabic 238_L" // Arabské
IDS_UZBEK_CYRILLIC_LAYOUT, "Uzbek Cyrillic"
IDS_VIETNAMESE_LAYOUT, "Vietnamese"
END
/*
- *Simplified Chinese resource for input (dll/cpl/input/lang/zh-CN.rc)
+ * Simplified Chinese resource for input (dll/cpl/input/lang/zh-CN.rc)
*
* TRANSLATOR: Jingjing Fu (jingjingf AT 188.com)
* CREATED: 2009-04-26
#pragma once
-/* metrics */
+/* Metrics */
#define PROPSHEETWIDTH 252
#define PROPSHEETHEIGHT 228
#define PROPSHEETPADDING 6
_ultot(OldLayoutNum, szLayoutNum, 10);
if (!GetLayoutID(szLayoutNum, szLayoutID)) return;
- // if old layout = selected layout
+ // If old layout = selected layout
if (_tcscmp(szLayoutID, pts) == 0) return;
if (RegOpenKeyEx(HKEY_CURRENT_USER, _T("Keyboard Layout\\Preload"), 0,
-
#include "intl.h"
typedef struct CPStruct
/* $Id$
*
* PROJECT: ReactOS International Control Panel
- * FILE: lib/cpl/intl/currency.c
+ * FILE: dll/cpl/intl/currency.c
* PURPOSE: Currency property page
* PROGRAMMER: Eric Kohl
*/
{
TCHAR szBuffer[MAX_FMT_SIZE];
- /* positive example */
+ /* Positive example */
GetCurrencyFormat(pGlobalData->lcid, 0,
POSITIVE_EXAMPLE,
NULL, szBuffer, MAX_FMT_SIZE);
SendMessage(GetDlgItem(hwndDlg, IDC_CURRENCYPOSSAMPLE), WM_SETTEXT, 0, (LPARAM)szBuffer);
- /* negative example */
+ /* Negative example */
GetCurrencyFormat(pGlobalData->lcid, 0,
NEGATIVE_EXAMPLE,
NULL, szBuffer, MAX_FMT_SIZE);
SendMessage(GetDlgItem(hwndDlg, IDC_CURRENCYSYMBOL),
CB_SETCURSEL,
- 0, /* index */
+ 0, /* Index */
0);
}
LOCALE_SMONDECIMALSEP,
szBuffer, MAX_FMT_SIZE);
- /* decimal separator */
+ /* Decimal separator */
SendMessage(GetDlgItem(hwndDlg, IDC_CURRENCYDECSEP),
CB_ADDSTRING,
0,
SendMessage(GetDlgItem(hwndDlg, IDC_CURRENCYDECSEP),
CB_SETCURSEL,
- 0, /* index */
+ 0, /* Index */
0);
}
LOCALE_SMONTHOUSANDSEP,
szBuffer, MAX_FMT_SIZE);
- /* digit group separator */
+ /* Digit group separator */
SendMessage(GetDlgItem(hwndDlg, IDC_CURRENCYGRPSEP),
CB_ADDSTRING,
0,
SendMessage(GetDlgItem(hwndDlg, IDC_CURRENCYGRPSEP),
CB_SETCURSEL,
- 0, /* index */
+ 0, /* Index */
0);
}
LOCALE_SMONGROUPING,
szGrouping, MAX_FMT_SIZE);
- /* digit grouping */
+ /* Digit grouping */
cyFmt.NumDigits = 0;
cyFmt.LeadingZero = 0;
cyFmt.lpDecimalSep = _T("");
SendMessage(GetDlgItem(hwndDlg, IDC_CURRENCYGRPNUM),
CB_SETCURSEL,
- i, /* index */
+ i, /* Index */
0);
}
(WPARAM)0,
(LPARAM)0);
- /* convert to wide char */
+ /* Convert to wide char */
_itot(nCurrSel, szCurrencyFracSymNum, DECIMAL_RADIX);
/* Save number of fractional symbols */
(WPARAM)0,
(LPARAM)0);
- /* convert to wide char */
+ /* Convert to wide char */
_itot(nCurrSel, szNegCurrencySumFmt, DECIMAL_RADIX);
/* Save currency sum format */
(WPARAM)0,
(LPARAM)0);
- /* convert to wide char */
+ /* Convert to wide char */
_itot(nCurrSel, szPosCurrencySumFmt, DECIMAL_RADIX);
/* Save currency sum format */
}
break;
}
-
return FALSE;
}
/* $Id$
*
* PROJECT: ReactOS International Control Panel
- * FILE: lib/cpl/intl/date.c
+ * FILE: dll/cpl/intl/date.c
* PURPOSE: Date property page
* PROGRAMMER: Eric Kohl
*/
/* FUNCTIONS ****************************************************************/
-/* if char is 'y' or 'M' or 'd' return TRUE, else FALSE */
+/* If char is 'y' or 'M' or 'd' return TRUE, else FALSE */
BOOL
isDateCompAl(TCHAR alpha)
{
return FALSE;
}
- /* substring replacement of separator */
+ /* Substring replacement of separator */
_tcscpy(szFindedDateSep, FindDateSep(szShortDateFmt));
pszResultStr = ReplaceSubStr(szShortDateFmt, szShortDateSep, szFindedDateSep);
_tcscpy(szShortDateFmt, pszResultStr);
-1,
(LPARAM)szShortDateSep);
- /* if is not success, add new value to list and select them */
+ /* If it is not successful, add new value to list and select them */
if (nRetCode == CB_ERR)
{
SendMessage(GetDlgItem(hwndDlg, IDC_SHRTDATESEP_COMBO),
-1,
(LPARAM)szShortDateFmt);
- /* if is not success, add new value to list and select them */
+ /* If it is not successful, add new value to list and select them */
if (nRetCode == CB_ERR)
{
SendMessage(GetDlgItem(hwndDlg, IDC_SHRTDATEFMT_COMBO),
-1,
(LPARAM)szLongDateFmt);
- /* if is not success, add new value to list and select them */
+ /* If it is not successful, add new value to list and select them */
if (nRetCode == CB_ERR)
{
SendMessage(GetDlgItem(hwndDlg, IDC_LONGDATEFMT_COMBO),
/* $Id$
*
* PROJECT: ReactOS International Control Panel
- * FILE: lib/cpl/intl/generalp.c
+ * FILE: dll/cpl/intl/generalp.c
* PURPOSE: General property page
* PROGRAMMER: Eric Kohl
* Klemens Friedl
ret = RegOpenKey(HKEY_CURRENT_USER, _T("Control Panel\\International"), &localeKey);
if (ret != ERROR_SUCCESS)
{
- // some serious error
+ // Some serious error
MessageBox(NULL, _T("Problem opening HKCU\\Control Panel\\International key"),
_T("Big Problem"), MB_OK);
return;
ret = RegOpenKey(HKEY_USERS, _T(".DEFAULT\\Control Panel\\International"), &localeKey);
if (ret != ERROR_SUCCESS)
{
- // some serious error
+ // Some serious error
MessageBox(NULL, _T("Problem opening HKU\\.DEFAULT\\Control Panel\\International key"),
_T("Big Problem"), MB_OK);
return;
return FALSE;
}
-
/* EOF */
/* $Id$
*
* PROJECT: ReactOS International Control Panel
- * FILE: lib/cpl/intl/inplocale.c
+ * FILE: dll/cpl/intl/inplocale.c
* PURPOSE: Input Locale property page
* PROGRAMMER: Eric Kohl
*/
/* $Id$
*
* PROJECT: ReactOS International Control Panel
- * FILE: lib/cpl/intl/intl.c
+ * FILE: dll/cpl/intl/intl.c
* PURPOSE: Property sheet code
* PROGRAMMER: Eric Kohl
*/
return TRUE;
}
-
#define DECIMAL_RADIX 10
-/* limits */
+/* Limits */
#define MAX_FMT_SIZE 30
#define MAX_STR_SIZE 128
#define MAX_SAMPLES_STR_SIZE 70
}
}
}
-
SetupCloseInfFile(hIntlInf);
}
* IRC: irc.freenode.net #reactos-pl;
* UTF-8 conversion by Caemyr (May, 2011)
*/
-
+
LANGUAGE LANG_POLISH, SUBLANG_DEFAULT
IDD_GENERALPAGE DIALOGEX 0, 0, 246, 230
-//2011.11.14 - Fulea Ștefan: minor changes
+// 2011.11.14 - Fulea Ștefan: minor changes
LANGUAGE LANG_ROMANIAN, SUBLANG_DEFAULT
IDD_GENERALPAGE DIALOGEX 0, 0, 246, 230
-
#include "intl.h"
/* Property page dialog callback */
}
break;
}
-
return FALSE;
}
-
#include "intl.h"
#define NUM_SHEETS 4
_tcscpy(pszDestStr, szSourceStr);
- /* if format is clean return source string */
+ /* If format is clean return source string */
if (!*szFmtStr)
return pszDestStr;
szFmtVal[nValCount] = _T('\0');
nValCount=0;
- /* insert space to finded position plus all pos before */
+ /* Insert space to finded position plus all pos before */
pszTempStr = InsSpacePos(pszDestStr, nSpaceOffset);
_tcscpy(pszDestStr,pszTempStr);
free(pszTempStr);
- /* num of spaces total increment */
+ /* Num of spaces total increment */
if (!wasNul)
{
nSpaceOffset++;
/* $Id$
*
* PROJECT: ReactOS International Control Panel
- * FILE: lib/cpl/intl/numbers.c
+ * FILE: dll/cpl/intl/numbers.c
* PURPOSE: Numbers property page
* PROGRAMMER: Eric Kohl
*/
-1,
(LPARAM)(LPCSTR)szNumSep);
- /* if is not success, add new value to list and select them */
+ /* If it is not successful, add new values to list and select them */
if (nRetCode == CB_ERR)
{
SendMessage(GetDlgItem(hwndDlg, IDC_NUMBERDSYMBOL),
/* Create standard list of fractional symbols */
for (nCBIndex = 0; nCBIndex < MAX_FRAC_NUM_SAMPLES; nCBIndex++)
{
- /* convert to wide char */
+ /* Convert to wide char */
_itot(nCBIndex, szFracCount, DECIMAL_RADIX);
SendMessage(GetDlgItem(hwndDlg, IDC_NUMBERSNDIGDEC),
-1,
(LPARAM)szFieldSep);
- /* if is not success, add new value to list and select them */
+ /* If it is not success, add new values to list and select them */
if (nRetCode == CB_ERR)
{
SendMessage(GetDlgItem(hwndDlg, IDC_NUMBERSDIGITGRSYM),
-1,
(LPARAM)pszFieldDigNumSmpl);
- /* if is not success, add new value to list and select them */
+ /* If it is not successful, add new values to list and select them */
if (nRetCode == CB_ERR)
{
SendMessage(GetDlgItem(hwndDlg, IDC_NUMBERSDGROUPING),
-1,
(LPARAM)szNegSign);
- /* if is not success, add new value to list and select them */
+ /* If it is not successful, add new values to list and select them */
if (nRetCode == CB_ERR)
{
SendMessage(GetDlgItem(hwndDlg, IDC_NUMBERSNSIGNSYM),
-1,
(LPARAM)szListSep);
- /* if is not success, add new value to list and select them */
+ /* If it is not successful, add new values to list and select them */
if (nRetCode == CB_ERR)
{
SendMessage(GetDlgItem(hwndDlg, IDC_NUMBERSLSEP),
(WPARAM)0,
(LPARAM)0);
- /* convert to wide char */
+ /* Convert to wide char */
_itot(nCurrSel, szFracSymNum, DECIMAL_RADIX);
/* Save number of fractional symbols */
(WPARAM)0,
(LPARAM)0);
- /* convert to wide char */
+ /* Convert to wide char */
_itot(nCurrSel, szLeadZero, DECIMAL_RADIX);
/* Save leading zero format */
_tcscpy(pszDestStr, szSourceStr);
- /* if format is clean return source string */
+ /* If format is clean return source string */
if (!*szFmtStr)
return pszDestStr;
szFmtVal[nValCount] = _T('\0');
nValCount=0;
- /* insert space to finded position plus all pos before */
+ /* Insert space to finded position plus all pos before */
pszTempStr = InsSpacePos(pszDestStr, nSpaceOffset);
_tcscpy(pszDestStr, pszTempStr);
free(pszTempStr);
- /* num of spaces total increment */
+ /* Num of spaces total increment */
if (!wasNul)
{
nSpaceOffset++;
*/
/*
* PROJECT: ReactOS International Control Panel
- * FILE: lib/cpl/intl/time.c
+ * FILE: dll/cpl/intl/time.c
* PURPOSE: Time property page
* PROGRAMMER: Eric Kohl
*/
int nIndex;
HWND hChildWnd;
- /* get handle to time format control */
+ /* Get handle to time format control */
hChildWnd = GetDlgItem(hwndDlg, dwIdc);
/* Get index to selected time format */
nIndex = SendMessage(hChildWnd, CB_GETCURSEL, 0, 0);
if (nIndex == CB_ERR)
- /* no selection? get content of the edit control */
+ /* No selection? Get content of the edit control */
SendMessage(hChildWnd, WM_GETTEXT, uSize, (LPARAM)Buffer);
else {
LPTSTR tmp;
UINT uReqSize;
- /* get requested size, including the null terminator;
+ /* Get requested size, including the null terminator;
* it shouldn't be required because the previous CB_LIMITTEXT,
* but it would be better to check it anyways */
uReqSize = SendMessage(hChildWnd, CB_GETLBTEXTLEN, (WPARAM)nIndex, 0) + 1;
- /* allocate enough space to be more safe */
+ /* Allocate enough space to be more safe */
tmp = (LPTSTR)_alloca(uReqSize*sizeof(TCHAR));
- /* get selected time format text */
+ /* Get selected time format text */
SendMessage(hChildWnd, CB_GETLBTEXT, (WPARAM)nIndex, (LPARAM)tmp);
- /* finally, copy the result into the output */
+ /* Finally, copy the result into the output */
_tcsncpy(Buffer, tmp, uSize);
}
}
(LPARAM)Buffer);
SendMessage(GetDlgItem(hwndDlg, IDC_TIMESEPARATOR),
CB_SETCURSEL,
- 0, /* index */
+ 0, /* Index */
0);
/* Get the AM symbol */
}
SendMessage(GetDlgItem(hwndDlg, IDC_TIMEAMSYMBOL),
CB_SETCURSEL,
- 0, /* index */
+ 0, /* Index */
0);
/* Get the PM symbol */
}
SendMessage(GetDlgItem(hwndDlg, IDC_TIMEPMSYMBOL),
CB_SETCURSEL,
- 0, /* index */
+ 0, /* Index */
0);
}
break;
{
TCHAR Buffer[80];
- /* get selected/typed time format text */
+ /* Get selected/typed time format text */
GetSelectedComboEntry(hwndDlg, IDC_TIMEFORMAT, Buffer, sizeof(Buffer)/sizeof(TCHAR));
/* Set time format */
SetLocaleInfo(pGlobalData->lcid, LOCALE_STIMEFORMAT, Buffer);
- /* get selected/typed time separator text */
+ /* Get selected/typed time separator text */
GetSelectedComboEntry(hwndDlg, IDC_TIMESEPARATOR, Buffer, sizeof(Buffer)/sizeof(TCHAR));
/* Set time separator */
SetLocaleInfo(pGlobalData->lcid, LOCALE_STIME, Buffer);
- /* get selected/typed AM symbol text */
+ /* Get selected/typed AM symbol text */
GetSelectedComboEntry(hwndDlg, IDC_TIMEAMSYMBOL, Buffer, sizeof(Buffer)/sizeof(TCHAR));
/* Set the AM symbol */
SetLocaleInfo(pGlobalData->lcid, LOCALE_S1159, Buffer);
- /* get selected/typed PM symbol text */
+ /* Get selected/typed PM symbol text */
GetSelectedComboEntry(hwndDlg, IDC_TIMEPMSYMBOL, Buffer, sizeof(Buffer)/sizeof(TCHAR));
/* Set the PM symbol */
switch (LOWORD(wParam))
{
case SC_CONTEXTHELP:
- // not implemented
+ // Not implemented yet
break;
}
break;
switch (LOWORD(wParam))
{
case SC_CONTEXTHELP:
- // not implemented
+ // Not implemented yet
break;
}
break;
switch (LOWORD(wParam))
{
case SC_CONTEXTHELP:
- // not implemented
+ // Not implemented yet
break;
}
break;
break;
case SC_CONTEXTHELP:
- // not implemented
+ // Not implemented yet
break;
}
break;
* TRANSLATOR: Radek Liska aka Black_Fox (radekliska at gmail dot com)
* UPDATED: 2009-01-10
*/
-
+
LANGUAGE LANG_CZECH, SUBLANG_DEFAULT
IDD_PROPPAGEMAIN DIALOGEX 0, 0, 252, 205
-//2011.11.20 - Fulea Ștefan: minor changes
+// 2011.11.20 - Fulea Ștefan: minor changes
LANGUAGE LANG_ROMANIAN, SUBLANG_DEFAULT
IDD_PROPPAGEMAIN DIALOGEX 0, 0, 252, 205
IDD_PROPPAGEMAIN DIALOGEX 0, 0, 252, 205
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUPWINDOW | WS_CAPTION
EXSTYLE WS_EX_CONTEXTHELP
-CAPTION "Hracie zariadenia" //Game Controllers
+CAPTION "Hracie zariadenia" // Game Controllers
FONT 8, "MS Shell Dlg"
BEGIN
ICON IDI_CPLSYSTEM, -1, 7, 7, 20, 20
PUSHBUTTON "O&dstráni\9d", IDC_REMOVE_BUTTON, 104, 129, 65, 14, WS_DISABLED
PUSHBUTTON "&Vlastnosti", IDC_PROPERTIES_BUTTON, 173, 129, 65, 14, WS_DISABLED
PUSHBUTTON "&Spresni\9d...", IDC_ADVANCED_BUTTON, 96, 157, 65, 14
- PUSHBUTTON "&Rie\9aenie problémov...", IDC_TROUBLESHOOT_BUTTON, 165, 157, 80, 14 //Troubleshoot = Rie\9aenie problémov
+ PUSHBUTTON "&Rie\9aenie problémov...", IDC_TROUBLESHOOT_BUTTON, 165, 157, 80, 14 // Troubleshoot = Rie\9aenie problémov
PUSHBUTTON "OK", IDOK, 195, 185, 50, 14
END
CAPTION "Vlastné hracie zariadenie"
FONT 8, "MS Shell Dlg"
BEGIN
- GROUPBOX "Charakter zariadenia", -1, 7, 7, 245, 52 //Special characteristics
+ GROUPBOX "Charakter zariadenia", -1, 7, 7, 245, 52 // Special characteristics
AUTORADIOBUTTON "&Pákový ovládaè", IDC_JOYSTICK_RADIO, 17, 23, 80, 10
AUTORADIOBUTTON "O&vládacia páka lietadla", IDC_FLIGHT_YOKE_RADIO, 147, 23, 89, 10
AUTORADIOBUTTON "&Gamepad", IDC_GAME_PAD_RADIO, 17, 40, 65, 10
#pragma once
-/* icons */
+/* Icons */
#define IDI_CPLSYSTEM 102
-/* dialogs */
+/* Dialogs */
#define IDD_PROPPAGEMAIN 101
#define IDD_ADD 119
#define IDD_CUSTOM 4099
#define IDD_ADVANCED 8188
-/* strings */
+/* Strings */
#define IDS_CPLSYSTEMNAME 1076
#define IDS_CPLSYSTEMDESCRIPTION 1099
#define IDS_CONTROLLER 1151
#define IDS_STATUS 1152
-/* controls */
+/* Controls */
#define IDC_CONTROLLER_LIST 1020
#define IDC_ADD_BUTTON 1011
#define IDC_REMOVE_BUTTON 1028
/* $Id$
*
* PROJECT: ReactOS Main Control Panel
- * FILE: lib/cpl/main/keyboard.c
+ * FILE: dll/cpl/main/keyboard.c
* PURPOSE: Keyboard Control Panel
* PROGRAMMER: Eric Kohl
*/
-// Location: \dll\cpl\main\lang
+// Location: dll/cpl/main/lang/bg-BG.rc
LANGUAGE LANG_BULGARIAN, SUBLANG_DEFAULT
IDD_KEYBSPEED DIALOGEX 0, 0, 246, 228
* https://sourceforge.net/projects/reactospl
* UTF-8 conversion by Caemyr (May, 2011)
*/
-
+
LANGUAGE LANG_POLISH, SUBLANG_DEFAULT
IDD_KEYBSPEED DIALOGEX 0, 0, 246, 228
-//2011.11.20 - Fulea Ștefan: minor changes
+// 2011.11.20 - Fulea Ștefan: minor changes
LANGUAGE LANG_ROMANIAN, SUBLANG_DEFAULT
IDD_KEYBSPEED DIALOGEX 0, 0, 246, 228
CONTROL "",IDC_SLIDER_REPEAT_DELAY, "msctls_trackbar32", TBS_AUTOTICKS | WS_TABSTOP, 65, 30, 130, 17
ICON IDI_REPEAT_RATE, IDC_ICON_REPEAT_RATE, 15, 70, 15, 15
LTEXT "&Rýchlos\9d opakovania:", -1, 40, 70, 50, 10
- LTEXT "malá", -1, 40, 85, 20, 10 //pomaly
- LTEXT "ve¾ká", -1, 200, 85, 20, 10 //rýchlo
+ LTEXT "malá", -1, 40, 85, 20, 10 // pomaly
+ LTEXT "ve¾ká", -1, 200, 85, 20, 10 // rýchlo
CONTROL "",IDC_SLIDER_REPEAT_RATE, "msctls_trackbar32", TBS_AUTOTICKS | WS_TABSTOP, 65, 85, 130, 17
LTEXT "Kliknite sem a podr\9ete kláves k o&testovaniu rýchlosti opakovania:", -1, 15, 105, 150, 10
EDITTEXT IDC_EDIT_REPEAT_RATE, 15, 115, 200, 15, WS_CHILD | WS_VISIBLE | WS_GROUP
/* $Id$
*
* PROJECT: ReactOS Sample Control Panel
- * FILE: lib/cpl/main/main.c
+ * FILE: dll/cpl/main/main.c
* PURPOSE: ReactOS Main Control Panel
* PROGRAMMER: Eric Kohl
* UPDATE HISTORY:
return TRUE;
}
-
/* $Id$
*
* PROJECT: ReactOS Main Control Panel
- * FILE: lib/cpl/main/mouse.c
+ * FILE: dll/cpl/main/mouse.c
* PURPOSE: Mouse Control Panel
* PROGRAMMER: Eric Kohl
* Johannes Anderwald
*/
-//TODO:
-// add missing icons
+// TODO:
+// Add missing icons
#include "main.h"
ULONG g_OrigSwapMouseButtons;
ULONG g_DoubleClickSpeed; // = DEFAULT_DOUBLE_CLICK_SPEED;
ULONG g_OrigDoubleClickSpeed;
- BOOL g_ClickLockEnabled; // = 0;
- DWORD g_ClickLockTime; // = DEFAULT_CLICK_LOCK_TIME;
+ BOOL g_ClickLockEnabled; // = 0;
+ DWORD g_ClickLockTime; // = DEFAULT_CLICK_LOCK_TIME;
HICON hButtonLeft;
HICON hButtonRight;
{
pButtonData->g_OrigSwapMouseButtons = pButtonData->g_SwapMouseButtons;
SystemParametersInfo(SPI_SETMOUSEBUTTONSWAP, pButtonData->g_OrigSwapMouseButtons, NULL, SPIF_SENDCHANGE | SPIF_UPDATEINIFILE);
-
+
}
SystemParametersInfo(SPI_SETDOUBLECLICKTIME, pButtonData->g_DoubleClickSpeed, NULL, SPIF_SENDCHANGE | SPIF_UPDATEINIFILE);
//SetDoubleClickTime(pButtonData->g_DoubleClickSpeed);
case TB_ENDTRACK:
lResult = SendDlgItemMessage(hwndDlg, IDC_SLIDER_DOUBLE_CLICK_SPEED, TBM_GETPOS, 0, 0);
pButtonData->g_DoubleClickSpeed = (14 - (INT)lResult) * 50 + 200;
- //SystemParametersInfo(SPI_SETDOUBLECLICKTIME, pButtonData->g_DoubleClickSpeed, NULL, SPIF_SENDCHANGE | SPIF_UPDATEINIFILE);
+ //SystemParametersInfo(SPI_SETDOUBLECLICKTIME, pButtonData->g_DoubleClickSpeed, NULL, SPIF_SENDCHANGE | SPIF_UPDATEINIFILE);
SetDoubleClickTime(pButtonData->g_DoubleClickSpeed);
PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
break;
SendDlgItemMessage(hwndDlg, IDC_COMBO_CURSOR_SCHEME, CB_GETLBTEXT, nSel, (LPARAM)buffer);
LoadString(hApplet, IDS_SYSTEM_SCHEME, szSystemScheme, MAX_PATH);
- if (_tcsstr(buffer, szSystemScheme) || nSel == 0) //avoid the default scheme can be deleted
+ if (_tcsstr(buffer, szSystemScheme) || nSel == 0) // Avoid the default scheme - Can be deleted
bEnable = FALSE;
else
bEnable = TRUE;
- /* delete button */
+ /* Delete button */
hDlgCtrl = GetDlgItem(hwndDlg, IDC_BUTTON_DELETE_SCHEME);
EnableWindow(hDlgCtrl, bEnable);
pOptionData->OrigMouseAccel.nThreshold1 = pOptionData->MouseAccel.nThreshold1;
pOptionData->OrigMouseAccel.nThreshold2 = pOptionData->MouseAccel.nThreshold2;
- /* snap to default button */
+ /* Snap to default button */
SystemParametersInfo(SPI_GETSNAPTODEFBUTTON, 0, &pOptionData->bSnapToDefaultButton, 0);
pOptionData->bOrigSnapToDefaultButton = pOptionData->bSnapToDefaultButton;
- /* mouse trails */
+ /* Mouse trails */
SystemParametersInfo(SPI_GETMOUSETRAILS, 0, &pOptionData->uMouseTrails, 0);
pOptionData->uOrigMouseTrails = pOptionData->uMouseTrails;
- /* hide pointer while typing */
+ /* Hide pointer while typing */
SystemParametersInfo(SPI_GETMOUSEVANISH, 0, &pOptionData->bMouseVanish, 0);
pOptionData->bOrigMouseVanish = pOptionData->bMouseVanish;
- /* show pointer with Ctrl-Key */
+ /* Show pointer with Ctrl-Key */
SystemParametersInfo(SPI_GETMOUSESONAR, 0, &pOptionData->bMouseSonar, 0);
pOptionData->bOrigMouseSonar = pOptionData->bMouseSonar;
SendMessage(hDlgCtrl, BM_SETCHECK, (WPARAM)BST_CHECKED, (LPARAM)0);
}
- /* set mouse trail */
+ /* Set mouse trail */
hDlgCtrl = GetDlgItem(hwndDlg, IDC_SLIDER_POINTER_TRAIL);
SendMessage(hDlgCtrl, TBM_SETRANGE, (WPARAM)TRUE, (LPARAM)MAKELONG(0, 5));
if (pOptionData->uMouseTrails < 2)
}
- /* set snap to default button */
+ /* Set snap to default button */
if (pOptionData->bOrigSnapToDefaultButton != pOptionData->bSnapToDefaultButton)
{
SystemParametersInfo(SPI_SETSNAPTODEFBUTTON, (UINT)pOptionData->bSnapToDefaultButton, 0, SPIF_SENDCHANGE | SPIF_UPDATEINIFILE);
pOptionData->uOrigMouseTrails = pOptionData->uMouseTrails;
}
- /* hide pointer while typing */
+ /* Hide pointer while typing */
if (pOptionData->bOrigMouseVanish != pOptionData->bMouseVanish)
{
SystemParametersInfo(SPI_SETMOUSEVANISH, 0, IntToPtr(pOptionData->bMouseVanish), SPIF_SENDCHANGE | SPIF_UPDATEINIFILE);
pOptionData->bOrigMouseVanish = pOptionData->bMouseVanish;
}
- /* show pointer with Ctrl-Key */
+ /* Show pointer with Ctrl-Key */
if (pOptionData->bOrigMouseSonar != pOptionData->bMouseSonar)
{
SystemParametersInfo(SPI_SETMOUSESONAR, 0, IntToPtr(pOptionData->bMouseSonar), SPIF_SENDCHANGE | SPIF_UPDATEINIFILE);
/*
*
* PROJECT: ReactOS Multimedia Control Panel
- * FILE: lib/cpl/mmsys/mmsys.c
+ * FILE: dll/cpl/mmsys/mmsys.c
* PURPOSE: ReactOS Multimedia Control Panel
* PROGRAMMER: Thomas Weidenmueller <w3seek@reactos.com>
* Johannes Anderwald <janderwald@reactos.com>
case IDC_ADV2_BTN:
{
-
+
}
break;
case IDC_ADV1_BTN:
{
-
+
}
break;
case IDC_ADV3_BTN:
{
-
+
}
break;
}
-//update jansssens
+// Update jansssens
LANGUAGE LANG_DUTCH, SUBLANG_NEUTRAL
IDD_VOLUME DIALOGEX 0, 0, 246, 228
IDS_CPLNAME "Zvuk a zvukové zariadenia"
IDS_CPLDESCRIPTION "Changes the sound scheme for your computer, or configure the settings for your speakers and recording devices."
IDS_NO_SOUND "(\8eiadne)"
- IDS_NO_DEVICES "\8eiadne zariadenia"
+ IDS_NO_DEVICES "\8eiadne zariadenia"
5825 "Chyba programu"
5826 "Zavrie\9d program"
5841 "Restore Down"
5842 "Restore Up"
5843 "Hviezdièka"
- 5844 "Predvolený zvuk" //Default sound
+ 5844 "Predvolený zvuk" // Default sound
5845 "Výkrik"
5846 "Ukonèenie systému ReactOS"
5847 "Kritické zastavenie"
- 5848 "Hlásenie systému" //System notif.
+ 5848 "Hlásenie systému" // System notif.
5849 "Otázka"
5850 "Spustenie systému ReactOS"
5851 "Ponuka \8atart"
5852 "Odhlásenie zo systému ReactOS"
5853 "Prihlásenie do systému ReactOS"
- 5854 "ReactOS Explorer"
+ 5854 "ReactOS Explorer"
END
RegCloseKey(hNames);
if (dwDisposition & REG_CREATED_NEW_KEY)
{
- RegSetValueExW(hSubKey, NULL, 0, REG_SZ, (LPBYTE)L".Default", (wcslen(L".Default")+1) * sizeof(WCHAR)); //FIXME
+ // FIXME
+ RegSetValueExW(hSubKey, NULL, 0, REG_SZ, (LPBYTE)L".Default", (wcslen(L".Default")+1) * sizeof(WCHAR));
}
}
hService = OpenService(hSCManager, L"RosAudioSrv", SERVICE_ALL_ACCESS);
if (hService)
{
- /* make RosAudioSrv start automatically */
+ /* Make RosAudioSrv start automatically */
ChangeServiceConfig(hService, SERVICE_NO_CHANGE, SERVICE_AUTO_START, SERVICE_NO_CHANGE, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
StartService(hService, 0, NULL);
if (!wcsicmp(Buffer, szBuffer))
{
- /* an entry already exists */
+ /* An entry already exists */
break;
}
}
Guids[0] = GUID_DEVCLASS_CDROM;
Guids[1] = GUID_DEVCLASS_MEDIA;
- /* create the hardware page */
+ /* Create the hardware page */
DeviceCreateHardwarePageEx(hwndDlg,
Guids,
sizeof(Guids) / sizeof(Guids[0]),
LPARAM lParam)
{
PROPSHEETPAGE psp[5];
- PROPSHEETHEADER psh; //= {0};
+ PROPSHEETHEADER psh; // = { 0 };
TCHAR Caption[256];
UNREFERENCED_PARAMETER(lParam);
/* $Id: main.c 12852 2005-01-06 13:58:04Z mf $
*
* PROJECT: ReactOS Multimedia Control Panel
- * FILE: lib/cpl/mmsys/mmsys.c
+ * FILE: dll/cpl/mmsys/mmsys.c
* PURPOSE: ReactOS Multimedia Control Panel
* PROGRAMMER: Thomas Weidenmueller <w3seek@reactos.com>
* Johannes Anderwald <janderwald@reactos.com>
TCHAR * szIcon;
struct __APP_MAP__ * AppMap;
struct __LABEL_MAP__ * Next;
-}LABEL_MAP, *PLABEL_MAP;
+} LABEL_MAP, *PLABEL_MAP;
typedef struct __APP_MAP__
{
struct __APP_MAP__ *Next;
PLABEL_MAP LabelMap;
-}APP_MAP, *PAPP_MAP;
+} APP_MAP, *PAPP_MAP;
typedef struct __LABEL_CONTEXT__
{
PAPP_MAP AppMap;
TCHAR szValue[MAX_PATH];
struct __LABEL_CONTEXT__ *Next;
-}LABEL_CONTEXT, *PLABEL_CONTEXT;
+} LABEL_CONTEXT, *PLABEL_CONTEXT;
typedef struct __SOUND_SCHEME_CONTEXT__
{
TCHAR szName[MAX_PATH];
TCHAR szDesc[MAX_PATH];
PLABEL_CONTEXT LabelContext;
-}SOUND_SCHEME_CONTEXT, *PSOUND_SCHEME_CONTEXT;
+} SOUND_SCHEME_CONTEXT, *PSOUND_SCHEME_CONTEXT;
static PLABEL_MAP s_Map = NULL;
static PAPP_MAP s_App = NULL;
{
PLABEL_MAP pMap = s_Map;
- while(pMap)
+ while (pMap)
{
ASSERT(pMap);
ASSERT(pMap->szName);
return pMap;
pMap = pMap->Next;
-
}
pMap = pAppMap->LabelMap;
- while(pMap)
+ while (pMap)
{
ASSERT(pMap);
ASSERT(pMap->szName);
return pMap;
pMap = pMap->Next;
-
}
pMap = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(LABEL_MAP));
HeapFree(GetProcessHeap(), 0, pMap);
return NULL;
}
+
pMap->AppMap = pAppMap;
pMap->Next = s_Map;
s_Map = pMap;
return pMap;
}
+
VOID RemoveLabel(PLABEL_MAP pMap)
{
PLABEL_MAP pCurMap = s_Map;
return;
}
-
- while(pCurMap)
+ while (pCurMap)
{
if (pCurMap->Next == pMap)
{
}
-
-
-
-
PAPP_MAP FindApp(TCHAR * szName)
{
PAPP_MAP pMap = s_App;
- while(pMap)
+ while (pMap)
{
if (!_tcscmp(pMap->szName, szName))
return pMap;
return NULL;
}
+
PLABEL_CONTEXT FindLabelContext(PSOUND_SCHEME_CONTEXT pSoundScheme, TCHAR * AppName, TCHAR * LabelName)
{
PLABEL_CONTEXT pLabelContext;
pLabelContext = pSoundScheme->LabelContext;
- while(pLabelContext)
+ while (pLabelContext)
{
ASSERT(pLabelContext->AppMap);
ASSERT(pLabelContext->LabelMap);
- if(!_tcsicmp(pLabelContext->AppMap->szName, AppName) && !_tcsicmp(pLabelContext->LabelMap->szName, LabelName))
+ if (!_tcsicmp(pLabelContext->AppMap->szName, AppName) && !_tcsicmp(pLabelContext->LabelMap->szName, LabelName))
{
return pLabelContext;
}
return pLabelContext;
}
+
BOOL
LoadEventLabel(HKEY hKey, TCHAR * szSubKey)
{
return TRUE;
}
+
BOOL
LoadEventLabels()
{
}
dwCurKey++;
- }while(dwResult == ERROR_SUCCESS);
+ } while (dwResult == ERROR_SUCCESS);
RegCloseKey(hSubKey);
return (dwCount != 0);
}
+
BOOL
AddSoundProfile(HWND hwndDlg, HKEY hKey, TCHAR * szSubKey, BOOL SetDefault)
{
return FALSE;
}
+
DWORD
EnumerateSoundProfiles(HWND hwndDlg, HKEY hKey)
{
}
dwCurKey++;
- }while(dwResult == ERROR_SUCCESS);
+ } while (dwResult == ERROR_SUCCESS);
RegCloseKey(hSubKey);
return dwNumSchemes;
}
+
PSOUND_SCHEME_CONTEXT FindSoundProfile(HWND hwndDlg, TCHAR * szName)
{
LRESULT lCount, lIndex, lResult;
}
return NULL;
}
+
+
BOOL
ImportSoundLabel(HWND hwndDlg, HKEY hKey, TCHAR * szProfile, TCHAR * szLabelName, TCHAR * szAppName, PAPP_MAP AppMap, PLABEL_MAP LabelMap)
{
PLABEL_CONTEXT pLabelContext;
BOOL bCurrentProfile, bActiveProfile;
-
//MessageBox(hwndDlg, szProfile, szLabelName, MB_OK);
bCurrentProfile = !_tcsicmp(szProfile, _T(".Current"));
bActiveProfile = !_tcsicmp(szProfile, szDefault);
-
if (RegOpenKeyEx(hKey,
szProfile,
0,
}
dwCurKey++;
- }while(dwResult == ERROR_SUCCESS);
+ } while (dwResult == ERROR_SUCCESS);
RegCloseKey(hSubKey);
}
-
DWORD
ImportAppProfile(HWND hwndDlg, HKEY hKey, TCHAR * szAppName)
{
}
}
dwCurKey++;
- }while(dwResult == ERROR_SUCCESS);
+ } while (dwResult == ERROR_SUCCESS);
+
RegCloseKey(hSubKey);
return dwNumEntry;
}
+
BOOL
ImportSoundProfiles(HWND hwndDlg, HKEY hKey)
{
}
}
dwCurKey++;
- }while(dwResult == ERROR_SUCCESS);
+ } while (dwResult == ERROR_SUCCESS);
+
RegCloseKey(hSubKey);
return (dwNumApps != 0);
}
-
BOOL
LoadSoundProfiles(HWND hwndDlg)
{
//MessageBox(hwndDlg, _T("importing sound profiles..."), NULL, MB_OK);
ImportSoundProfiles(hwndDlg, hSubKey);
}
+
RegCloseKey(hSubKey);
return FALSE;
}
+
+
BOOL
LoadSoundFiles(HWND hwndDlg)
{
wcscpy(&szPath[length-1], FileData.cFileName);
SendDlgItemMessageW(hwndDlg, IDC_SOUND_LIST, CB_SETITEMDATA, (WPARAM)lResult, (LPARAM)_wcsdup(szPath));
}
- }while(FindNextFileW(hFile, &FileData) != 0);
+ } while (FindNextFileW(hFile, &FileData) != 0);
FindClose(hFile);
return TRUE;
}
-
BOOL
ShowSoundScheme(HWND hwndDlg)
{
ItemIndex = 0;
pAppMap = s_App;
- while(pAppMap)
+ while (pAppMap)
{
PLABEL_MAP pLabelMap = pAppMap->LabelMap;
- while(pLabelMap)
+ while (pLabelMap)
{
ZeroMemory(&listItem, sizeof(LV_ITEM));
listItem.mask = LVIF_TEXT | LVIF_PARAM | LVIF_IMAGE;
return TRUE;
}
+
BOOL
ApplyChanges(HWND hwndDlg)
{
pLabelContext = pScheme->LabelContext;
- while(pLabelContext)
+ while (pLabelContext)
{
_stprintf(Buffer, _T("%s\\%s\\.Current"), pLabelContext->AppMap->szName, pLabelContext->LabelMap->szName);
WPARAM wParam,
LPARAM lParam)
{
- switch(uMsg)
+ switch (uMsg)
{
case WM_INITDIALOG:
{
}
case WM_COMMAND:
{
- switch(LOWORD(wParam))
+ switch (LOWORD(wParam))
{
case IDC_PLAY_SOUND:
{
{
PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
///
- /// should store in current member
+ /// Should store in current member
///
_tcscpy(pLabelContext->szValue, (TCHAR*)lResult);
}
/*
*
* PROJECT: ReactOS Multimedia Control Panel
- * FILE: lib/cpl/mmsys/mmsys.c
+ * FILE: dll/cpl/mmsys/mmsys.c
* PURPOSE: ReactOS Multimedia Control Panel
* PROGRAMMER: Thomas Weidenmueller <w3seek@reactos.com>
* Johannes Anderwald <janderwald@reactos.com>
/* $Id: main.c 12852 2005-01-06 13:58:04Z mf $
*
* PROJECT: ReactOS Multimedia Control Panel
- * FILE: lib/cpl/mmsys/mmsys.c
+ * FILE: dll/cpl/mmsys/mmsys.c
* PURPOSE: ReactOS Multimedia Control Panel
* PROGRAMMER: Thomas Weidenmueller <w3seek@reactos.com>
* Johannes Anderwald <janderwald@reactos.com>
}
}
+
VOID
GetMuteControl(PGLOBAL_DATA pGlobalData)
{
pGlobalData->muteControlID = mxc.dwControlID;
}
+
VOID
GetMuteState(PGLOBAL_DATA pGlobalData)
{
pGlobalData->muteVal = mxcdMute.fValue;
}
+
VOID
SwitchMuteState(PGLOBAL_DATA pGlobalData)
{
pGlobalData->muteVal = mxcdMute.fValue;
}
+
VOID
GetVolumeControl(PGLOBAL_DATA pGlobalData)
{
pGlobalData->volumeControlID = mxc.dwControlID;
}
+
VOID
GetVolumeValue(PGLOBAL_DATA pGlobalData)
{
pGlobalData->volumeValue = mxcdVolume.dwValue;
}
+
VOID
SetVolumeValue(PGLOBAL_DATA pGlobalData){
MIXERCONTROLDETAILS_UNSIGNED mxcdVolume;
SendDlgItemMessage(hwndDlg, IDC_VOLUME_TRACKBAR, TBM_SETPOS, (WPARAM)TRUE, (LPARAM)pGlobalData->volumeValue/VOLUME_DIVIDER);
}
+
VOID
LaunchSoundControl(HWND hwndDlg)
{
{
pGlobalData = (GLOBAL_DATA*) HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(GLOBAL_DATA));
SetWindowLongPtr(hwndDlg, DWLP_USER, (LONG_PTR)pGlobalData);
-
+
pGlobalData->hIconUnMuted = LoadImage(hApplet, MAKEINTRESOURCE(IDI_CPLICON), IMAGE_ICON, 32, 32, LR_DEFAULTCOLOR);
pGlobalData->hIconMuted = LoadImage(hApplet, MAKEINTRESOURCE(IDI_MUTED_ICON), IMAGE_ICON, 32, 32, LR_DEFAULTCOLOR);
-
+
InitImageInfo(&ImgInfo);
InitVolumeControls(hwndDlg, pGlobalData);
break;
HDC hdcMem;
LONG left;
- /* position image in centre of dialog */
+ /* Position image in centre of dialog */
left = (lpDrawItem->rcItem.right - ImgInfo.cxSource) / 2;
hdcMem = CreateCompatibleDC(lpDrawItem->hDC);
/*
* PROJECT: ReactOS Network Control Panel
- * FILE: lib/cpl/system/ncpa.c
+ * FILE: dll/cpl/ncpa/ncpa.c
* PURPOSE: ReactOS Network Control Panel
* PROGRAMMER: Gero Kuehn (reactos.filter@gkware.com)
* UPDATE HISTORY:
DisplayApplet(VOID)
{
WCHAR szParameters[160];
- //FIXME
- // use correct path
+ // FIXME: Use correct path
//::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{21EC2020-3AEA-1069-A2DD-08002B30309D}\::{7007ACC7-3202-11D1-AAD2-00805FC1270E}
wcscpy(szParameters, L"/n,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\\::{7007ACC7-3202-11D1-AAD2-00805FC1270E}");
/* $Id$
*
* PROJECT: ReactOS ODBC Control Panel Applet
- * FILE: lib/cpl/main/main.c
+ * FILE: dll/cpl/main/main.c
* PURPOSE: applet initialization
* PROGRAMMER: Johannes Anderwald
*/
return TRUE;
}
-
}
-
-
//-------------------------------------------------------------------
VOID
}
}
-
static VOID
Adv_SaveData(HWND hwndDlg)
{
case WM_INITDIALOG:
if (!Ala_InitData(hwndDlg))
{
- //TODO
- //handle initialization error
+ // TODO:
+ // Handle initialization error
}
return TRUE;
default:
msex.dwLength = sizeof(msex);
if (!GlobalMemoryStatusEx(&msex))
{
- return; //FIXME
+ return; // FIXME
}
if (GetWindowsDirectory(szTemp,MAX_PATH))
-// English (en) resources by Lohegrim (Lohnegrim at gmx dot net)
+// Bulgarian resources
LANGUAGE LANG_BULGARIAN, SUBLANG_DEFAULT
IDS_TIMEOUT14 "Ñëåä 4 ÷àñà"
IDS_TIMEOUT15 "Ñëåä 5 ÷àñà"
IDS_TIMEOUT16 "Íèêîãà"
-
+
IDS_DEL_SCHEME "Are you sure you want to delete the power scheme?"
IDS_DEL_SCHEME_TITLE "Delete Scheme"
END
IDS_TIMEOUT14 "óå 4 þñåò"
IDS_TIMEOUT15 "óå 5 þñåò"
IDS_TIMEOUT16 "ÐïôÝ"
-
+
IDS_DEL_SCHEME "Åßóôå óßãïõñïé üôé èÝëåôå íá äéáãñÜøåôå áõôüí ôïí óõíäéáóìü ôñïöïäïóßáò;"
IDS_DEL_SCHEME_TITLE "ÄéáãñáöÞ óõíäéáóìïý"
END
IDS_TIMEOUT14 "After 4 hours"
IDS_TIMEOUT15 "After 5 hours"
IDS_TIMEOUT16 "Never"
-
+
IDS_DEL_SCHEME "Are you sure you want to delete the power scheme?"
IDS_DEL_SCHEME_TITLE "Delete Scheme"
END
/*
- *Spanish Language resource file
+ * Spanish language resource file
* Traducido por: Javier Remacha 2007-12-23
*/
IDS_TIMEOUT14 "Tras 4 horas"
IDS_TIMEOUT15 "Tras 5 horas"
IDS_TIMEOUT16 "Nunca"
-
+
IDS_DEL_SCHEME "¿Está seguro de que desea eliminar la combinación de energía?"
IDS_DEL_SCHEME_TITLE "Eliminar combinación"
END
IDS_TIMEOUT14 "Après 4 heures"
IDS_TIMEOUT15 "Après 5 heures"
IDS_TIMEOUT16 "Jamais"
-
+
IDS_DEL_SCHEME "Êtes-vous sûr de vouloir supprimer le profil d'alimentation ?"
IDS_DEL_SCHEME_TITLE "Supprimer le profil"
END
IDS_TIMEOUT14 "Setelah 4 jam"
IDS_TIMEOUT15 "Setelah 5 jam"
IDS_TIMEOUT16 "Tidak pernah"
-
+
IDS_DEL_SCHEME "Are you sure you want to delete the power scheme?"
IDS_DEL_SCHEME_TITLE "Delete Scheme"
END
IDS_TIMEOUT14 "Dopo 4 ore"
IDS_TIMEOUT15 "Dopo 5 ore"
IDS_TIMEOUT16 "Mai"
-
+
IDS_DEL_SCHEME "Siete sicuro di voler cancellare lo schema?"
IDS_DEL_SCHEME_TITLE "Cancellazione schema"
END
IDS_TIMEOUT14 "Na 4 uur"
IDS_TIMEOUT15 "Na 5 uur"
IDS_TIMEOUT16 "Nooit"
-
+
IDS_DEL_SCHEME "Are you sure you want to delete the power scheme?"
IDS_DEL_SCHEME_TITLE "Delete Scheme"
END
IDS_TIMEOUT14 "Etter 4 timer"
IDS_TIMEOUT15 "Etter 5 timer"
IDS_TIMEOUT16 "Aldri"
-
+
IDS_DEL_SCHEME "Er du sikker på at du vil slette strømplanen?"
IDS_DEL_SCHEME_TITLE "Slett planen"
END
IDS_TIMEOUT14 "Po 4 godzinach"
IDS_TIMEOUT15 "Po 5 godzinach"
IDS_TIMEOUT16 "Nigdy"
-
+
IDS_DEL_SCHEME "Czy na pewno chcesz skasować schemat oszczędzania energii?"
IDS_DEL_SCHEME_TITLE "Skasuj schemat"
END
IDS_TIMEOUT14 "După 4 ore"
IDS_TIMEOUT15 "După 5 ore"
IDS_TIMEOUT16 "Niciodată"
-
+
IDS_DEL_SCHEME "Sunteți sigur că vreți să eliminați această schemă?"
IDS_DEL_SCHEME_TITLE "Eliminare schemă"
END
IDS_TIMEOUT14 "через 4 часа"
IDS_TIMEOUT15 "через 5 часов"
IDS_TIMEOUT16 "никогда"
-
+
IDS_DEL_SCHEME "Are you sure you want to delete the power scheme?"
IDS_DEL_SCHEME_TITLE "Delete Scheme"
END
IDS_SIZEBYTS "%i bajtov"
IDS_SIZEMB "%i MB"
- IDS_NOACTION "Nerob niè" //Do nothing
+ IDS_NOACTION "Nerob niè" // Do nothing
- IDS_PowerActionNone1 "Bez akcie" //No action
+ IDS_PowerActionNone1 "Bez akcie" // No action
IDS_PowerActionUnknown "Neznáme"
IDS_PowerActionSleep "Úsporný re\9eim"
IDS_PowerActionHibernate "Dlhodobý spánok"
IDS_PowerActionRestart "Re\9atartova\9d"
IDS_PowerActionShutdownOff "Vypnú\9d a odpoji\9d zdroj"
IDS_PowerActionWarmEject "Zobrazi\9d výzvu na akciu"
- IDS_PowerActionNone2 "Niè" //None
+ IDS_PowerActionNone2 "Niè" // None
IDS_TIMEOUT1 "Po 1 minúte"
IDS_TIMEOUT2 "Po 2 minútach"
IDS_TIMEOUT14 "Po 4 hodinách"
IDS_TIMEOUT15 "Po 5 hodinách"
IDS_TIMEOUT16 "Nikdy"
-
+
IDS_DEL_SCHEME "Ste si istý, \9ee chcete vymaza\9d schému napájania?"
IDS_DEL_SCHEME_TITLE "Vymaza\9d schému"
END
IDS_TIMEOUT14 "ËÅѧ¨Ò¡ 4 ªÑèÇâÁ§"
IDS_TIMEOUT15 "ËÅѧ¨Ò¡ 5 ªÑèÇâÁ§"
IDS_TIMEOUT16 "äÁèµÑ駤èÒ"
-
+
IDS_DEL_SCHEME "Are you sure you want to delete the power scheme?"
IDS_DEL_SCHEME_TITLE "Delete Scheme"
END
IDS_TIMEOUT14 "через 4 години"
IDS_TIMEOUT15 "через 5 годин"
IDS_TIMEOUT16 "ніколи"
-
+
IDS_DEL_SCHEME "Ви дійсно бажаєте видалити схему керування електроживленням?"
IDS_DEL_SCHEME_TITLE "Видалення схеми"
END
IDS_TIMEOUT14 "4 Сʱ֮ºó"
IDS_TIMEOUT15 "5 Сʱ֮ºó"
IDS_TIMEOUT16 "´Ó²»"
-
+
IDS_DEL_SCHEME "ÄúÈ·¶¨ÒªÉ¾³ýµçԴʹÓ÷½°¸Âð?"
IDS_DEL_SCHEME_TITLE "ɾ³ý·½°¸"
END
i-2,
(LPARAM)0);
}
- if (Sec[i]==pp.user.SpindownTimeoutDc)//IdleTimeoutDc)
+ if (Sec[i]==pp.user.SpindownTimeoutDc) // IdleTimeoutDc)
{
SendDlgItemMessage(hwndDlg, IDC_DISKDCLIST,
CB_SETCURSEL,
{
if (guiIndex >= MAX_POWER_POLICY)
{
- //FIXME
- //implement store power policy dynamically
+ // FIXME:
+ // Implement store power policy dynamically
return FALSE;
}
if (MessageBox(hwnd, (LPCTSTR)szBuf, (LPCTSTR)szBufT, MB_OKCANCEL | MB_ICONQUESTION) == IDOK)
{
UINT Current;
-
+
if (GetActivePwrScheme(&Current))
{
SendMessage(hList, CB_SETCURSEL, (WPARAM)0, 0);
SendMessage(hList, CB_DELETESTRING, (WPARAM)iCurSel, 0);
if (Current == DelScheme) Pos_SaveData(hwnd);
}
-
+
if (DeletePwrScheme(DelScheme) != 0) return TRUE;
}
-
+
return FALSE;
}
if (CanUserWritePwrScheme())
{
- //TODO
- // enable write / delete powerscheme button
+ // TODO:
+ // Enable write / delete powerscheme button
}
Pos_InitPage(GetParent(hwnd));
return FALSE;
retval = EnumPwrSchemes(callback_EnumPwrScheme, aps);
-
+
if(SendMessage(hwnd, CB_GETCOUNT, 0, 0) > 0)
{
EnableWindow(GetDlgItem(hwndDialog, IDC_DELETE_BTN),TRUE);
hwndDialog = hwndDlg;
if (!Pos_InitData())
{
- //TODO
- // initialization failed
- // handle error
+ // TODO:
+ // Initialization failed
+ // Handle error
MessageBox(hwndDlg,_T("Pos_InitData failed\n"), NULL, MB_OK);
}
if (!CreateEnergyList(GetDlgItem(hwndDlg, IDC_ENERGYLIST)))
{
- //TODO
- // initialization failed
- // handle error
+ // TODO:
+ // Initialization failed
+ // Handle error
MessageBox(hwndDlg,_T("CreateEnergyList failed\n"), NULL, MB_OK);
}
return TRUE;
break;
case IDC_SAVEAS_BTN:
{
-
+
}
break;
case IDC_MONITORACLIST:
#pragma once
-/* metrics */
-#define PROPSHEETWIDTH 246
-#define PROPSHEETHEIGHT 228
-#define PROPSHEETPADDING 6
-#define SYSTEM_COLUMN (18 * PROPSHEETPADDING)
-#define LABELLINE(x) (((PROPSHEETPADDING + 2) * x) + (x + 2))
-#define ICONSIZE 16
+/* Metrics */
+#define PROPSHEETWIDTH 246
+#define PROPSHEETHEIGHT 228
+#define PROPSHEETPADDING 6
+#define SYSTEM_COLUMN (18 * PROPSHEETPADDING)
+#define LABELLINE(x) (((PROPSHEETPADDING + 2) * x) + (x + 2))
+#define ICONSIZE 16
-/* ids */
-#define IDC_CPLICON_1 1
+/* IDs */
+#define IDC_CPLICON_1 1
#define IDS_PROCENT 49
#define IDS_SOUND 50
#define IDI_SCREEN 178
#define IDI_HIBERNATE 179
-#define IDS_CPLNAME_1 190
+#define IDS_CPLNAME_1 190
#define IDC_ENERGYLIST 200
#define IDC_GRPDETAIL 201
#define IDC_SAT 202
#define IDC_DELETE_BTN 504
#define IDC_SAVEAS_BTN 505
-#define IDS_ALPERTLOWENERGY 715
-#define IDS_ALPERTCRITICLEENERGY 716
-#define IDS_CRITCLENERGY 717
-#define IDS_LOWENERGY 718
-#define IDS_UNKNOWN 719
+#define IDS_ALPERTLOWENERGY 715
+#define IDS_ALPERTCRITICLEENERGY 716
+#define IDS_CRITCLENERGY 717
+#define IDS_LOWENERGY 718
+#define IDS_UNKNOWN 719
-#define IDS_CPLDESCRIPTION_1 901
+#define IDS_CPLDESCRIPTION_1 901
/* EOF */
/* Get the handle to the list box with all system vars in it */
hwndListView = GetDlgItem(hwndDlg, iDlgItem);
- /* first item is 0 */
+ /* First item is 0 */
iItem = 0;
- /* set up struct to retreive item */
+ /* Set up struct to retreive item */
lvi.mask = LVIF_PARAM;
lvi.iItem = iItem;
{
if (aValueArray[i] != NULL)
{
- /* Delete the value*/
+ /* Delete the value */
RegDeleteValue(hKey,
aValueArray[i]);
LRESULT CALLBACK RosImageProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
- static UINT timerid = 0, top = 0, offset;
- static HBITMAP hBitmap2;
- RECT r;
- NONCLIENTMETRICS ncm;
- HFONT hfont;
- BITMAP bitmap;
- HDC dc, sdc;
- TCHAR devtext[2048];
- switch (uMsg)
- {
- case WM_LBUTTONDBLCLK:
- if (wParam & (MK_CONTROL | MK_SHIFT))
- {
- if (timerid == 0)
- {
- top = 0; // set top
-
- // build new bitmap
- GetObject(pImgInfo->hBitmap, sizeof(BITMAP), &bitmap);
- dc = CreateCompatibleDC(GetDC(NULL));
- if (dc == NULL)
- {
- break;
- }
- sdc = CreateCompatibleDC(dc);
- if (sdc == NULL)
- {
- DeleteDC(dc);
- break;
- }
- ncm.cbSize = sizeof(NONCLIENTMETRICS);
- SystemParametersInfo(SPI_GETNONCLIENTMETRICS, sizeof(NONCLIENTMETRICS), &ncm, 0);
-
- hfont = CreateFontIndirect(&ncm.lfMessageFont);
- SelectObject(dc, hfont);
- SetRect(&r, 0, 0, 0, 0);
- LoadString(hApplet, IDS_DEVS, devtext, sizeof(devtext) / sizeof(TCHAR));
- DrawText(dc, devtext, -1, &r, DT_CALCRECT);
- hBitmap2 = CreateBitmap(pImgInfo->cxSource, (2 * pImgInfo->cySource) + (r.bottom + 1 - r.top), bitmap.bmPlanes, bitmap.bmBitsPixel, NULL);
- SelectObject(sdc, pImgInfo->hBitmap);
- SelectObject(dc, hBitmap2);
- offset = 0;
- BitBlt(dc, 0, offset, bitmap.bmWidth, bitmap.bmHeight, sdc, 0, 0, SRCCOPY);
- offset += bitmap.bmHeight;
-
- SetRect(&r, 0, offset, bitmap.bmWidth, offset + (r.bottom - r.top) + 1);
- FillRect(dc, &r, GetSysColorBrush(COLOR_3DFACE));
- SetBkMode(dc, TRANSPARENT);
- OffsetRect(&r, 1, 1);
- SetTextColor(dc, GetSysColor(COLOR_BTNSHADOW));
- DrawText(dc, devtext, -1, &r, DT_CENTER);
- OffsetRect(&r, -1, -1);
- SetTextColor(dc, GetSysColor(COLOR_WINDOWTEXT));
- DrawText(dc, devtext, -1, &r, DT_CENTER);
- offset += r.bottom - r.top;
-
- BitBlt(dc, 0, offset, bitmap.bmWidth, bitmap.bmHeight, sdc, 0, 0, SRCCOPY);
- offset += bitmap.bmHeight;
- DeleteDC(sdc);
- DeleteDC(dc);
-
- timerid = SetTimer(hwnd, 1, ANIM_TIME, NULL);
- }
- }
- break;
- case WM_LBUTTONDOWN:
- if (timerid)
- {
- KillTimer(hwnd, timerid);
- top = 0;
- timerid = 0;
- DeleteObject(hBitmap2);
- InvalidateRect(hwnd, NULL, FALSE);
- }
- break;
- case WM_TIMER:
- top += ANIM_STEP;
- if (top > offset - pImgInfo->cySource)
- {
- KillTimer(hwnd, timerid);
- top = 0;
- timerid = 0;
- DeleteObject(hBitmap2);
- }
- InvalidateRect(hwnd, NULL, FALSE);
- break;
- case WM_PAINT:
- {
- PAINTSTRUCT PS;
- HDC hdcMem, hdc;
- LONG left;
- if (wParam != 0)
- {
- hdc = (HDC)wParam;
- } else
- {
- hdc = BeginPaint(hwnd,&PS);
- }
- GetClientRect(hwnd,&PS.rcPaint);
-
- /* position image in center of dialog */
- left = (PS.rcPaint.right - pImgInfo->cxSource) / 2;
- hdcMem = CreateCompatibleDC(hdc);
-
- if (hdcMem != NULL)
- {
- SelectObject(hdcMem, timerid ? hBitmap2 : pImgInfo->hBitmap);
- BitBlt(hdc,
- left,
- PS.rcPaint.top,
- PS.rcPaint.right - PS.rcPaint.left,
- PS.rcPaint.top + pImgInfo->cySource,
- hdcMem,
- 0,
- top,
- SRCCOPY);
- DeleteDC(hdcMem);
- }
- if (wParam == 0)
- EndPaint(hwnd,&PS);
- break;
- }
- }
- return TRUE;
+ static UINT timerid = 0, top = 0, offset;
+ static HBITMAP hBitmap2;
+ RECT r;
+ NONCLIENTMETRICS ncm;
+ HFONT hfont;
+ BITMAP bitmap;
+ HDC dc, sdc;
+ TCHAR devtext[2048];
+ switch (uMsg)
+ {
+ case WM_LBUTTONDBLCLK:
+ if (wParam & (MK_CONTROL | MK_SHIFT))
+ {
+ if (timerid == 0)
+ {
+ top = 0; // Set top
+
+ // Build new bitmap
+ GetObject(pImgInfo->hBitmap, sizeof(BITMAP), &bitmap);
+ dc = CreateCompatibleDC(GetDC(NULL));
+ if (dc == NULL)
+ {
+ break;
+ }
+ sdc = CreateCompatibleDC(dc);
+ if (sdc == NULL)
+ {
+ DeleteDC(dc);
+ break;
+ }
+ ncm.cbSize = sizeof(NONCLIENTMETRICS);
+ SystemParametersInfo(SPI_GETNONCLIENTMETRICS, sizeof(NONCLIENTMETRICS), &ncm, 0);
+
+ hfont = CreateFontIndirect(&ncm.lfMessageFont);
+ SelectObject(dc, hfont);
+ SetRect(&r, 0, 0, 0, 0);
+ LoadString(hApplet, IDS_DEVS, devtext, sizeof(devtext) / sizeof(TCHAR));
+ DrawText(dc, devtext, -1, &r, DT_CALCRECT);
+ hBitmap2 = CreateBitmap(pImgInfo->cxSource, (2 * pImgInfo->cySource) + (r.bottom + 1 - r.top), bitmap.bmPlanes, bitmap.bmBitsPixel, NULL);
+ SelectObject(sdc, pImgInfo->hBitmap);
+ SelectObject(dc, hBitmap2);
+ offset = 0;
+ BitBlt(dc, 0, offset, bitmap.bmWidth, bitmap.bmHeight, sdc, 0, 0, SRCCOPY);
+ offset += bitmap.bmHeight;
+
+ SetRect(&r, 0, offset, bitmap.bmWidth, offset + (r.bottom - r.top) + 1);
+ FillRect(dc, &r, GetSysColorBrush(COLOR_3DFACE));
+ SetBkMode(dc, TRANSPARENT);
+ OffsetRect(&r, 1, 1);
+ SetTextColor(dc, GetSysColor(COLOR_BTNSHADOW));
+ DrawText(dc, devtext, -1, &r, DT_CENTER);
+ OffsetRect(&r, -1, -1);
+ SetTextColor(dc, GetSysColor(COLOR_WINDOWTEXT));
+ DrawText(dc, devtext, -1, &r, DT_CENTER);
+ offset += r.bottom - r.top;
+
+ BitBlt(dc, 0, offset, bitmap.bmWidth, bitmap.bmHeight, sdc, 0, 0, SRCCOPY);
+ offset += bitmap.bmHeight;
+ DeleteDC(sdc);
+ DeleteDC(dc);
+
+ timerid = SetTimer(hwnd, 1, ANIM_TIME, NULL);
+ }
+ }
+ break;
+ case WM_LBUTTONDOWN:
+ if (timerid)
+ {
+ KillTimer(hwnd, timerid);
+ top = 0;
+ timerid = 0;
+ DeleteObject(hBitmap2);
+ InvalidateRect(hwnd, NULL, FALSE);
+ }
+ break;
+ case WM_TIMER:
+ top += ANIM_STEP;
+ if (top > offset - pImgInfo->cySource)
+ {
+ KillTimer(hwnd, timerid);
+ top = 0;
+ timerid = 0;
+ DeleteObject(hBitmap2);
+ }
+ InvalidateRect(hwnd, NULL, FALSE);
+ break;
+ case WM_PAINT:
+ {
+ PAINTSTRUCT PS;
+ HDC hdcMem, hdc;
+ LONG left;
+ if (wParam != 0)
+ {
+ hdc = (HDC)wParam;
+ }
+ else
+ {
+ hdc = BeginPaint(hwnd,&PS);
+ }
+ GetClientRect(hwnd,&PS.rcPaint);
+
+ /* Position image in center of dialog */
+ left = (PS.rcPaint.right - pImgInfo->cxSource) / 2;
+ hdcMem = CreateCompatibleDC(hdc);
+
+ if (hdcMem != NULL)
+ {
+ SelectObject(hdcMem, timerid ? hBitmap2 : pImgInfo->hBitmap);
+ BitBlt(hdc,
+ left,
+ PS.rcPaint.top,
+ PS.rcPaint.right - PS.rcPaint.left,
+ PS.rcPaint.top + pImgInfo->cySource,
+ hdcMem,
+ 0,
+ top,
+ SRCCOPY);
+ DeleteDC(hdcMem);
+ }
+
+ if (wParam == 0)
+ EndPaint(hwnd,&PS);
+ break;
+ }
+ }
+ return TRUE;
}
static VOID
HDC hdcMem;
LONG left;
- /* position image in centre of dialog */
+ /* Position image in centre of dialog */
left = (lpDrawItem->rcItem.right - pImgInfo->cxSource) / 2;
hdcMem = CreateCompatibleDC(lpDrawItem->hDC);
static BOOL
LaunchDeviceManager(HWND hWndParent)
{
-/* hack for ROS to start our devmgmt until we have mmc */
+/* Hack for ROS to start our devmgmt until we have MMC */
#ifdef __REACTOS__
return ((INT_PTR)ShellExecuteW(NULL, L"open", L"devmgmt.exe", NULL, NULL, SW_SHOWNORMAL) > 32);
#else
return FALSE;
}
- /* run the Device Manager */
+ /* Run the Device Manager */
Ret = DevMgrExec(hWndParent, hApplet, NULL /* ??? */, SW_SHOW);
FreeLibrary(hDll);
return Ret;
-// Location: \dll\cpl\sysdm\lang
+// Location: dll/cpl/sysdm/lang/bg-BG.rc
// Íåäîâúðøåí
LANGUAGE LANG_BULGARIAN, SUBLANG_DEFAULT
/*
* PROJECT: ReactOS System Configuration Applet
* LICENSE: GPL - See COPYING in the top level directory
- * FILE: dll/cpl/sysdm/de.rc
+ * FILE: dll/cpl/sysdm/lang/de-DE.rc
* PURPOSE: German language file for sysdm.cpl
* PROGRAMMERS: Eric Kohl
* TRANSLATOR: Colin Finck <mail@colinfinck.de>
-LANGUAGE LANG_DUTCH, SUBLANG_NEUTRAL //vertaald door Lionel Lowie
+// Vertaald door Lionel Lowie
+LANGUAGE LANG_DUTCH, SUBLANG_NEUTRAL
RC_LICENSE RTDATA "resources/gpl.txt"
-/*
+/*
* translated by xrogers
* xxrogers@users.sourceforge.net
* https://sourceforge.net/projects/reactospl
-LANGUAGE LANG_ROMANIAN, SUBLANG_NEUTRAL
+LANGUAGE LANG_ROMANIAN, SUBLANG_NEUTRAL
IDD_PROPPAGEGENERAL DIALOGEX 0, 0, 256, 218
STYLE DS_SHELLFONT | WS_CHILD | WS_DISABLED | WS_CAPTION
-LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
+LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
IDD_PROPPAGEGENERAL DIALOGEX 0, 0, 256, 218
STYLE DS_SHELLFONT | WS_CHILD | WS_DISABLED | WS_CAPTION
-//Swedish resources by Kris Engeman 2005-04-28
-//Updated 2008 by Andreas Bjerkeholt (Harteex)
+// Swedish resources by Kris Engeman 2005-04-28
+// Updated 2008 by Andreas Bjerkeholt (Harteex)
+
LANGUAGE LANG_SWEDISH, SUBLANG_NEUTRAL
IDD_PROPPAGEGENERAL DIALOGEX 0, 0, 256, 218
-/*
+/*
* PROJECT: System Control Panel Applet
* LICENSE: GPL - See COPYING in the top level directory
* FILE: dll/cpl/sysdm/lang/uk-UA.rc
ICON_SMALL,
(LPARAM)pLicInfo->hIcon);
- /* load license from resource */
+ /* Load license from resource */
if (!(hResInfo = FindResource(hApplet,
MAKEINTRESOURCE(RC_LICENSE),
MAKEINTRESOURCE(RTDATA))) ||
return FALSE;
}
- /* insert the license into the edit control (unicode!) */
+ /* Insert the license into the edit control (unicode!) */
SetDlgItemText(hDlg,
IDC_LICENCEEDIT,
LicenseText);
void ShowLastWin32Error(HWND hWndOwner);
-/* prop sheet pages */
+/* Prop sheet pages */
INT_PTR CALLBACK GeneralPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
INT_PTR CALLBACK HardwarePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
INT_PTR CALLBACK AdvancedPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
-/* dialogs */
+/* Dialogs */
INT_PTR CALLBACK HardProfDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
INT_PTR CALLBACK UserProfileDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
INT_PTR CALLBACK EnvironmentDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
#define IDS_WARNINITIALRANGE 80
#define IDS_WARNMAXIMUMRANGE 81
-/* propsheet - general */
+/* Propsheet - general */
#define IDD_PROPPAGEGENERAL 100
#define IDC_MACHINELINE1 101
#define IDC_MACHINELINE2 102
#define IDC_ROSHOMEPAGE_LINK 108
-/* propsheet - hardware */
+/* Propsheet - hardware */
#define IDD_PROPPAGEHARDWARE 300
#define IDC_HARDWARE_WIZARD 207
#define IDC_HARDWARE_PROFILE 209
#define IDC_HARDWARE_DEVICE_MANAGER 211
-/* propsheet - advanced */
+/* Propsheet - advanced */
#define IDD_PROPPAGEADVANCED 400
#define IDC_SYSSETTINGS 401
#define IDC_ENVVAR 402
#define IDC_USERPROFILE 405
#define IDC_ERRORREPORT 406
-/* system settings */
+/* System settings */
#define IDD_SYSSETTINGS 800
#define IDC_REPORTASWORKSTATION 801
-/* user profiles */
+/* User profiles */
#define IDD_USERPROFILE 500
#define IDC_USERPROFILE_LIST 501
#define IDC_USERPROFILE_CHANGE 503
#define IDC_USERACCOUNT_LINK 506
-/* environment variables */
+/* Environment variables */
#define IDD_ENVIRONMENT_VARIABLES 600
#define IDC_USER_VARIABLE_LIST 601
#define IDC_USER_VARIABLE_NEW 602
#define IDC_SYSTEM_VARIABLE_DELETE 608
-/* edit environment variables */
+/* Edit environment variables */
#define IDD_EDIT_VARIABLE 700
#define IDC_VARIABLE_NAME 701
#define IDC_VARIABLE_VALUE 702
#define IDC_CURRENT 914
-/* startup and recovery */
+/* Startup and recovery */
#define IDD_STARTUPRECOVERY 1000
#define IDC_STRECOSCOMBO 1001
#define IDC_STRECLIST 1002
#define IDC_STRRECOVERWRITE 1014
-/* hardware profiles */
+/* Hardware profiles */
#define IDD_HARDWAREPROFILES 1100
#define IDC_HRDPROFLSTBOX 1102
#define IDC_HRDPROFUP 1103
#define IDC_HRDPROFUPDWN 1112
-/* copy profile */
+/* Copy profile */
#define IDD_COPYPROFILE 1200
#define IDC_COPYPROFILEFROM 1201
#define IDC_COPYPROFILETO 1202
-/* rename profile */
+/* Rename profile */
#define IDD_RENAMEPROFILE 1300
#define IDC_RENPROFEDITFROM 1301
#define IDC_RENPROFEDITTO 1302
-/* licence */
+/* Licence */
#define IDD_LICENCE 1500
#define IDC_LICENCEEDIT 1501
#define RC_LICENSE 1502
{
DWORD dwBufSize;
- /* get Path to freeldr.ini or boot.ini */
+ /* Get Path to freeldr.ini or boot.ini */
*szSystemDrive = HeapAlloc(GetProcessHeap(), 0, MAX_PATH * sizeof(WCHAR));
if (*szSystemDrive != NULL)
{
NULL,
&InfContext))
{
- /* failed to find section */
+ /* Failed to find section */
return NULL;
}
{
if (!_wcsnicmp(szValue, L"ReactOS", 7))
{
- //FIXME store as enum
+ // FIXME: Store as enum
pRecord->BootType = 1;
}
else
}
else if (!_wcsnicmp(szName, L"Options", 7))
{
- //FIXME store flags as values
+ // FIXME: Store flags as values
wcscpy(pRecord->szOptions, szValue);
}
L"DefaultOS",
&InfContext))
{
- /* failed to find default os */
+ /* Failed to find default os */
return FALSE;
}
sizeof(szDefaultOs) / sizeof(WCHAR),
&LineLength))
{
- /* no key */
+ /* No key */
return FALSE;
}
L"TimeOut",
&InfContext))
{
- /* expected to find timeout value */
+ /* Expected to find timeout value */
return FALSE;
}
1,
(PINT)&TimeOut))
{
- /* failed to retrieve timeout */
+ /* Failed to retrieve timeout */
return FALSE;
}
NULL,
&InfContext))
{
- /* expected list of operating systems */
+ /* Expected list of operating systems */
return FALSE;
}
sizeof(szName) / sizeof(WCHAR),
&LineLength))
{
- /* the ini file is messed up */
+ /* The ini file is messed up */
return FALSE;
}
sizeof(szValue) / sizeof(WCHAR),
&LineLength))
{
- /* the ini file is messed up */
+ /* The ini file is messed up */
return FALSE;
}
SendDlgItemMessageW(hwndDlg, IDC_STRECOSCOMBO, CB_SETITEMDATA, (WPARAM)lResult, (LPARAM)pRecord);
if (!wcscmp(szDefaultOs, szName))
{
- /* we store the friendly name as key */
+ /* We store the friendly name as key */
wcscpy(szDefaultOs, szValue);
}
}
}
while (SetupFindNextLine(&InfContext, &InfContext));
- /* find default os in list */
+ /* Find default os in list */
lResult = SendDlgItemMessageW(hwndDlg, IDC_STRECOSCOMBO, CB_FINDSTRING, (WPARAM)-1, (LPARAM)szDefaultOs);
if (lResult != CB_ERR)
{
- /* set cur sel */
+ /* Set cur sel */
SendDlgItemMessageW(hwndDlg, IDC_STRECOSCOMBO, CB_SETCURSEL, (WPARAM)lResult, (LPARAM)0);
}
NULL,
&InfContext))
{
- /* failed to find operating systems section */
+ /* Failed to find operating systems section */
return FALSE;
}
}
while (SetupFindNextLine(&InfContext, &InfContext));
- /* find default os in list */
+ /* Find default os in list */
lResult = SendDlgItemMessageW(hwndDlg, IDC_STRECOSCOMBO, CB_FINDSTRING, (WPARAM)0, (LPARAM)szDefaultOS);
if (lResult != CB_ERR)
{
- /* set cur sel */
+ /* Set cur sel */
SendDlgItemMessageW(hwndDlg, IDC_STRECOSCOMBO, CB_SETCURSEL, (WPARAM)lResult, (LPARAM)0);
}
if (PathFileExistsW(pStartInfo->szFreeldrIni))
{
- /* free resource previously allocated by GetSystemDrive() */
+ /* Free resource previously allocated by GetSystemDrive() */
HeapFree(GetProcessHeap(), 0, szSystemDrive);
/* freeldr.ini exists */
hInf = SetupOpenInfFileW(pStartInfo->szFreeldrIni,
return FALSE;
}
- /* try load boot.ini settings */
+ /* Try loading boot.ini settings */
wcscpy(pStartInfo->szFreeldrIni, szSystemDrive);
wcscat(pStartInfo->szFreeldrIni, L"\\boot.ini");
- /* free resource previously allocated by GetSystemDrive() */
+ /* Free resource previously allocated by GetSystemDrive() */
HeapFree(GetProcessHeap(), 0, szSystemDrive);
if (PathFileExistsW(pStartInfo->szFreeldrIni))
{
- /* load boot.ini settings */
+ /* Load boot.ini settings */
hInf = SetupOpenInfFileW(pStartInfo->szFreeldrIni,
NULL,
INF_STYLE_OLDNT,
{
if (pStartInfo->dwCrashDumpEnabled == 0)
{
- /* no crash information required */
+ /* No crash information required */
EnableWindow(GetDlgItem(hwnd, IDC_STRRECDUMPFILE), FALSE);
EnableWindow(GetDlgItem(hwnd, IDC_STRRECOVERWRITE), FALSE);
}
else if (pStartInfo->dwCrashDumpEnabled == 3)
{
- /* minidump type */
+ /* Minidump type */
EnableWindow(GetDlgItem(hwnd, IDC_STRRECDUMPFILE), TRUE);
EnableWindow(GetDlgItem(hwnd, IDC_STRRECOVERWRITE), FALSE);
SendMessageW(GetDlgItem(hwnd, IDC_STRRECDUMPFILE), WM_SETTEXT, (WPARAM)0, (LPARAM)pStartInfo->szMinidumpDir);
}
else if (pStartInfo->dwCrashDumpEnabled == 1 || pStartInfo->dwCrashDumpEnabled == 2)
{
- /* kernel or complete dump */
+ /* Kernel or complete dump */
EnableWindow(GetDlgItem(hwnd, IDC_STRRECDUMPFILE), TRUE);
EnableWindow(GetDlgItem(hwnd, IDC_STRRECOVERWRITE), TRUE);
SendMessageW(GetDlgItem(hwnd, IDC_STRRECDUMPFILE), WM_SETTEXT, (WPARAM)0, (LPARAM)pStartInfo->szDumpFile);
KEY_WRITE,
&hKey) != ERROR_SUCCESS)
{
- /* failed to open key */
+ /* Failed to open key */
return;
}
KEY_READ,
&hKey) != ERROR_SUCCESS)
{
- /* failed to open key */
+ /* Failed to open key */
return;
}
{
case IDC_STRRECEDIT:
ShellExecuteW(0, L"open", L"notepad", pStartInfo->szFreeldrIni, NULL, SW_SHOWNORMAL);
- // FIXME use CreateProcess and wait untill finished
+ // FIXME: Use CreateProcess and wait untill finished
// DeleteBootRecords(hwndDlg);
// LoadOSList(hwndDlg);
break;
case IDOK:
- /* save timeout */
+ /* Save timeout */
if (SendDlgItemMessage(hwndDlg, IDC_STRECLIST, BM_GETCHECK, (WPARAM)0, (LPARAM)0) == BST_CHECKED)
iTimeout = SendDlgItemMessage(hwndDlg, IDC_STRRECLISTUPDWN, UDM_GETPOS, (WPARAM)0, (LPARAM)0);
else
{
if (pStartInfo->iFreeLdrIni == 1) // FreeLdrIni style
{
- /* set default timeout */
+ /* Set default timeout */
WritePrivateProfileStringW(L"FREELOADER",
L"TimeOut",
szTimeout,
pStartInfo->szFreeldrIni);
- /* set default os */
+ /* Set default OS */
WritePrivateProfileStringW(L"FREELOADER",
L"DefaultOS",
pRecord->szSectionName,
}
else if (pStartInfo->iFreeLdrIni == 2) // BootIni style
{
- /* set default timeout */
+ /* Set default timeout */
WritePrivateProfileStringW(L"boot loader",
L"timeout",
szTimeout,
pStartInfo->szFreeldrIni);
- /* set default os */
+ /* Set default OS */
WritePrivateProfileStringW(L"boot loader",
L"default",
pRecord->szBootPath,
static VOID
ParseMemSettings(PVIRTMEM pVirtMem)
{
- TCHAR szDrives[1024]; // all drives
+ TCHAR szDrives[1024]; // All drives
LPTSTR DrivePtr = szDrives;
- TCHAR szDrive[3]; // single drive
+ TCHAR szDrive[3]; // Single drive
TCHAR szVolume[MAX_PATH];
TCHAR *szDisplayString;
INT InitialSize = 0;
DrivePtr = _tcsupr(DrivePtr);
- /* copy the 'X:' portion */
+ /* Copy the 'X:' portion */
lstrcpyn(szDrive, DrivePtr, sizeof(szDrive) / sizeof(TCHAR));
if (GetDriveType(DrivePtr) == DRIVE_FIXED)
{
- /* does drive match the one in the registry ? */
+ /* Does drive match the one in the registry ? */
if (!_tcsncmp(pVirtMem->szPagingFiles, szDrive, 2))
{
- /* FIXME: we only check the first available pagefile in the reg */
+ /* FIXME: We only check the first available pagefile in the reg */
GetPageFileSizes(pVirtMem->szPagingFiles,
&InitialSize,
&MaximumSize);
_tcscpy(szDisplayString, szDrive);
_tcscat(szDisplayString, _T("\t"));
- /* set a volume label if there is one */
+ /* Set a volume label if there is one */
if (GetVolumeInformation(DrivePtr,
szVolume,
255,
/* Record the position where the next string will start */
nPos += (INT)lstrlen(szText) + 1;
- /* add another NULL for REG_MULTI_SZ */
+ /* Add another NULL for REG_MULTI_SZ */
szPagingFiles[nPos] = _T('\0');
nPos++;
}
0);
if (Index >= 0 && Index < pVirtMem->Count)
{
- /* check if custom settings are checked */
+ /* Check if custom settings are checked */
if (IsDlgButtonChecked(pVirtMem->hSelf,
IDC_CUSTOM) == BST_CHECKED)
{
}
else
{
- /* set sizes to 0 */
+ /* Set sizes to 0 */
pVirtMem->Pagefile[Index].InitialSize = 0;
pVirtMem->Pagefile[Index].MaximumSize = 0;
- // check to see if this drive is used for a paging file
+ // Check to see if this drive is used for a paging file
if (IsDlgButtonChecked(pVirtMem->hSelf,
IDC_NOPAGEFILE) == BST_UNCHECKED)
{
if (pVirtMem->Pagefile[Index].InitialSize != 0 &&
pVirtMem->Pagefile[Index].MaximumSize != 0)
{
- /* enable and fill the custom values */
+ /* Enable and fill the custom values */
EnableWindow(GetDlgItem(pVirtMem->hSelf, IDC_MAXSIZE), TRUE);
EnableWindow(GetDlgItem(pVirtMem->hSelf, IDC_INITIALSIZE), TRUE);
EnableWindow(GetDlgItem(pVirtMem->hSelf, IDC_MAXSIZE), FALSE);
EnableWindow(GetDlgItem(pVirtMem->hSelf, IDC_INITIALSIZE), FALSE);
- /* is it system managed */
+ /* Is it system managed */
if (pVirtMem->Pagefile[Index].bUsed)
{
CheckDlgButton(pVirtMem->hSelf,
#pragma once
-/* icons */
+/* Icons */
#define IDI_CPLSYSTEM 100
-/* strings */
+/* Strings */
#define IDS_CPLSYSTEMNAME 1001
#define IDS_CPLSYSTEMDESCRIPTION 2001
HBRUSH hBrushOld;
HPEN hPenOld = NULL;
- /* grey brush to fill the dots */
+ /* Grey brush to fill the dots */
hBrushOld = SelectObject(hdc, pClockData->hGreyBrush);
hPenOld = GetCurrentObject(hdc, OBJ_PEN);
- // TODO: check if this conversion is correct resp. usable
+ // TODO: Check if this conversion is correct resp. usable
Radius = min(pClockData->cxClient,pClockData->cyClient) * 2;
for (iAngle = 0; iAngle < 360; iAngle += 6)
{
- /* starting coords */
+ /* Starting coords */
pt[0].x = 0;
pt[0].y = Radius;
- /* rotate start coords */
+ /* Rotate start coords */
RotatePoint(pt, 1, iAngle);
- /* determine whether it's a big dot or a little dot
+ /* Determine whether it's a big dot or a little dot
* i.e. 1-4 or 5, 6-9 or 10, 11-14 or 15 */
if (iAngle % 5)
{
if (hdcMem)
{
HBITMAP hBmp, hBmpOld;
-
+
hBmp = CreateCompatibleBitmap(hdc,
pClockData->cxClient,
pClockData->cyClient);
{
UNREFERENCED_PARAMETER(lpAutoUpdate);
- /* update the controls */
+ /* Update the controls */
FillMonthsComboBox(GetDlgItem(hwndDlg,
IDC_MONTHCB));
}
switch (uMsg)
{
case WM_KEYDOWN:
- /* stop the timer when the user is about to change the time */
+ /* Stop the timer when the user is about to change the time */
if ((wParam != VK_LEFT) & (wParam != VK_RIGHT))
KillTimer(GetParent(hwnd), ID_TIMER);
break;
SetTimer(hwndDlg, ID_TIMER, 1000, NULL);
- /* set range and current year */
+ /* Set range and current year */
SendMessageW(GetDlgItem(hwndDlg, IDC_YEAR), UDM_SETRANGE, 0, MAKELONG ((short) 9999, (short) 1900));
SendMessageW(GetDlgItem(hwndDlg, IDC_YEAR), UDM_SETPOS, 0, MAKELONG( (short) st.wYear, 0));
break;
case WM_TIMECHANGE:
- /* FIXME - we don't get this message as we're not a top-level window... */
+ /* FIXME: We don't get this message as we're not a top-level window... */
SendMessageW(GetDlgItem(hwndDlg,
IDC_MONTHCALENDAR),
MCCM_RESET,
/*
* PROJECT: ReactOS Timedate Control Panel
* LICENSE: GPL - See COPYING in the top level directory
- * FILE: lib/cpl/timedate/internettime.c
+ * FILE: dll/cpl/timedate/internettime.c
* PURPOSE: Internet Time property page
* COPYRIGHT: Copyright 2006 Ged Murphy <gedmurphy@gmail.com>
*
&dwNameSize);
if (lRet == ERROR_SUCCESS)
{
- /* get date from default reg value */
+ /* Get date from default reg value */
if (wcscmp(szValName, L"") == 0) // if (Index == 0)
{
dwDefault = _wtoi(szData);
if (dwDefault < 1 || dwDefault > dwIndex)
dwDefault = 1;
- /* server reg entries count from 1,
- * combo boxes count from 0 */
+ /* Server reg entries count from 1,
+ * Combo boxes count from 0 */
dwDefault--;
SendMessageW(hList,
uSel = (UINT)SendMessageW(hList, CB_GETCURSEL, 0, 0);
- /* server reg entries count from 1,
- * combo boxes count from 0 */
+ /* Server reg entries count from 1,
+ * Combo boxes count from 0 */
uSel++;
- /* convert to wide char */
+ /* Convert to wide char */
_itow(uSel, szSel, 10);
lRet = RegOpenKeyExW(HKEY_LOCAL_MACHINE,
}
-/* get the domain name from the registry */
+/* Get the domain name from the registry */
static BOOL
GetNTPServerAddress(LPWSTR *lpAddress)
{
}
-/* request the time from the current NTP server */
+/* Request the time from the current NTP server */
static ULONG
GetTimeFromServer(VOID)
{
LARGE_INTEGER li;
SYSTEMTIME stNew;
- /* time at 1st Jan 1900 */
+ /* Time at 1st Jan 1900 */
stNew.wYear = 1900;
stNew.wMonth = 1;
stNew.wDay = 1;
stNew.wSecond = 0;
stNew.wMilliseconds = 0;
- /* convert to a file time */
+ /* Convert to a file time */
if (!SystemTimeToFileTime(&stNew, &ftNew))
{
DisplayWin32Error(GetLastError());
return;
}
- /* add on the time passed since 1st Jan 1900 */
+ /* Add on the time passed since 1st Jan 1900 */
li = *(LARGE_INTEGER *)&ftNew;
li.QuadPart += (LONGLONG)10000000 * ulTime;
ftNew = * (FILETIME *)&li;
- /* convert back to a system time */
+ /* Convert back to a system time */
if (!FileTimeToSystemTime(&ftNew, &stNew))
{
DisplayWin32Error(GetLastError());
-//update jansssens
-LANGUAGE LANG_DUTCH, SUBLANG_NEUTRAL //vertaald door Lionel Lowie
+// Vertaald door Lionel Lowie
+// Update jansssens
+LANGUAGE LANG_DUTCH, SUBLANG_NEUTRAL
IDD_DATETIMEPAGE DIALOGEX 0, 0, 252, 146
STYLE DS_SHELLFONT | WS_CHILD | WS_DISABLED | WS_CAPTION
/*
* PROJECT: ReactOS Timedate Control Panel
* LICENSE: GPL - See COPYING in the top level directory
- * FILE: lib/cpl/timedate/monthcal.c
+ * FILE: dll/cpl/timedate/monthcal.c
* PURPOSE: Calander implementation
* COPYRIGHT: Copyright 2006 Thomas Weidenmueller <w3seek@reactos.com>
*
}
/*
- * for the year range 1..9999
+ * For the year range 1..9999
* return 1 if is leap year otherwise 0
*/
static WORD LeapYear(IN WORD Year)
{
#ifdef WITH_1752
if ((Year == 1752) && (Month == 9))
- return 19; // special case: September 1752 has no 3rd-13th
+ return 19; // Special case: September 1752 has no 3rd-13th
else
#endif
return MonthDays[Month - 1];
RepaintHeader = TRUE;
}
- /* update the days layout of the current month */
+ /* Update the days layout of the current month */
ZeroMemory(infoPtr->Days,
sizeof(infoPtr->Days));
*(pDay++) = (BYTE)++d;
}
- /* repaint the control */
+ /* Repaint the control */
if (RepaintHeader)
{
InvalidateRect(infoPtr->hSelf,
SYSTEMTIME LocalTime = {0};
UINT uElapse;
- /* update the current date */
+ /* Update the current date */
GetLocalTime(&LocalTime);
- /* calculate the number of remaining milliseconds until midnight */
+ /* Calculate the number of remaining milliseconds until midnight */
uElapse = 1000 - (UINT)LocalTime.wMilliseconds;
uElapse += (59 - (UINT)LocalTime.wSecond) * 1000;
uElapse += (59 - (UINT)LocalTime.wMinute) * 60 * 1000;
else
uElapse += 100; /* Add a delay of 0.1 seconds */
- /* setup the new timer */
+ /* Setup the new timer */
if (SetTimer(infoPtr->hSelf,
ID_DAYTIMER,
uElapse,
0,
0);
- /* cache the configuration */
+ /* Cache the configuration */
infoPtr->FirstDayOfWeek = MonthCalFirstDayOfWeek();
infoPtr->hbHeader = GetSysColorBrush(infoPtr->Enabled ? MONTHCAL_HEADERBG : MONTHCAL_DISABLED_HEADERBG);
}
}
- /* update the control */
+ /* Update the control */
MonthCalUpdate(infoPtr);
}
{
infoPtr->Changed = TRUE;
- /* kill the day timer */
+ /* Kill the day timer */
if (infoPtr->DayTimerSet)
{
KillTimer(infoPtr->hSelf,
sc.NewMonth = Month;
sc.NewYear = Year;
- /* notify the parent */
+ /* Notify the parent */
if (!MonthCalNotifyControlParent(infoPtr,
MCCN_SELCHANGE,
&sc))
{
- /* check if we actually need to update */
+ /* Check if we actually need to update */
if (infoPtr->Month != sc.NewMonth ||
infoPtr->Year != sc.NewYear)
{
MonthCalChange(infoPtr);
- /* repaint the entire control */
+ /* Repaint the entire control */
MonthCalUpdate(infoPtr);
Ret = TRUE;
sc.OldDay,
&rcUpdate))
{
- /* repaint the day cells that need to be updated */
+ /* Repaint the day cells that need to be updated */
InvalidateRect(infoPtr->hSelf,
&rcUpdate,
TRUE);
}
}
- /* kill the day timer */
+ /* Kill the day timer */
if (infoPtr->DayTimerSet)
{
KillTimer(infoPtr->hSelf,
infoPtr->DayTimerSet = FALSE;
}
- /* setup the new day timer */
+ /* Setup the new day timer */
MonthCalSetupDayTimer(infoPtr);
if (Time != NULL)
{
RECT rcHeader;
- /* paint the header */
+ /* Paint the header */
rcHeader.left = prcUpdate->left;
rcHeader.top = rcCell.top;
rcHeader.right = prcUpdate->right;
rcCell.left = x * infoPtr->CellSize.cx;
rcCell.right = rcCell.left + infoPtr->CellSize.cx;
- /* write the first letter of each weekday */
+ /* Write the first letter of each weekday */
DrawTextW(hDC,
&infoPtr->Week[x],
1,
rcCell.left = x * infoPtr->CellSize.cx;
rcCell.right = rcCell.left + infoPtr->CellSize.cx;
- /* write the day number */
+ /* Write the day number */
if (Day != 0 && Day < 100)
{
WCHAR szDay[3];
goto FailNoHighlight;
}
- /* highlight the selected day */
+ /* Highlight the selected day */
crOldText = SetTextColor(hDC,
GetSysColor(infoPtr->Enabled ? MONTHCAL_SELFG : MONTHCAL_DISABLED_SELFG));
}
else
{
FailNoHighlight:
- /* don't change the text color, we're not highlighting it... */
+ /* Don't change the text color, we're not highlighting it... */
crOldText = CLR_INVALID;
}
infoPtr->Year);
}
- /* fall through */
+ /* Fall through */
}
case WM_MBUTTONDOWN:
}
}
- /* update the selection */
+ /* Update the selection */
if (NewDay != 0)
{
MonthCalSetDate(infoPtr,
{
case VK_TAB:
{
- /* change the UI status */
+ /* Change the UI status */
SendMessageW(GetAncestor(hwnd,
GA_PARENT),
WM_CHANGEUISTATE,
{
case ID_DAYTIMER:
{
- /* kill the timer */
+ /* Kill the timer */
KillTimer(hwnd,
ID_DAYTIMER);
infoPtr->DayTimerSet = FALSE;
if (!infoPtr->Changed)
{
- /* update the system time and setup the new day timer */
+ /* Update the system time and setup the new day timer */
MonthCalSetLocalTime(infoPtr,
NULL);
- /* update the control */
+ /* Update the control */
MonthCalUpdate(infoPtr);
}
break;
infoPtr->CellSize.cx = infoPtr->ClientSize.cx / 7;
infoPtr->CellSize.cy = infoPtr->ClientSize.cy / 7;
- /* repaint the control */
+ /* Repaint the control */
InvalidateRect(hwnd,
NULL,
TRUE);
/*
* PROJECT: ReactOS Timedate Control Panel
* LICENSE: GPL - See COPYING in the top level directory
- * FILE: lib/cpl/timedate/ntpclient.c
+ * FILE: dll/cpl/timedate/ntpclient.c
* PURPOSE: Queries the NTP server
* COPYRIGHT: Copyright 2006 Ged Murphy <gedmurphy@gmail.com>
*
if (pInfo->Sock == INVALID_SOCKET)
return FALSE;
- /* setup server info */
+ /* Setup server info */
he = gethostbyname(lpAddress);
if (he != NULL)
{
- /* setup server socket info */
+ /* Setup server socket info */
ZeroMemory(&pInfo->ntpAddr, sizeof(SOCKADDR_IN));
- pInfo->ntpAddr.sin_family = AF_INET; //he->h_addrtype;
+ pInfo->ntpAddr.sin_family = AF_INET; // he->h_addrtype;
pInfo->ntpAddr.sin_port = htons(NTPPORT);
pInfo->ntpAddr.sin_addr = *((struct in_addr *)he->h_addr);
}
}
-/* send some data to wake the server up */
+/* Send some data to wake the server up */
static BOOL
SendData(PINFO pInfo)
{
INT Ret;
ULONG ulTime = 0;
- /* monitor socket for incomming connections */
+ /* Monitor socket for incomming connections */
FD_ZERO(&readFDS);
FD_SET(pInfo->Sock, &readFDS);
- /* set timeout values */
+ /* Set timeout values */
timeVal.tv_sec = TIMEOUT / 1000;
timeVal.tv_usec = TIMEOUT % 1000;
- /* check for data on the socket for TIMEOUT millisecs*/
+ /* Check for data on the socket for TIMEOUT millisecs */
Ret = select(0, &readFDS, NULL, NULL, &timeVal);
if ((Ret != SOCKET_ERROR) && (Ret != 0))
/*
* PROJECT: ReactOS Timedate Control Panel
* LICENSE: GPL - See COPYING in the top level directory
- * FILE: lib/cpl/timedate/timedate.c
+ * FILE: dll/cpl/timedate/timedate.c
* PURPOSE: ReactOS Timedate Control Panel
* COPYRIGHT: Copyright 2004-2005 Eric Kohl
* Copyright 2006 Ged Murphy <gedmurphy@gmail.com>
/*
* PROJECT: ReactOS Timedate Control Panel
* LICENSE: GPL - See COPYING in the top level directory
- * FILE: lib/cpl/timedate/timezone.c
+ * FILE: dll/cpl/timedate/timezone.c
* PURPOSE: Time Zone property page
* COPYRIGHT: Copyright 2004-2005 Eric Kohl
* Copyright 2006 Ged Murphy <gedmurphy@gmail.com>
&hKey))
return;
- /* if the call fails (non zero), the reg value isn't available,
+ /* If the call fails (non zero), the reg value isn't available,
* which means it shouldn't be disabled, so we should check the button.
*/
if (RegQueryValueExW(hKey,
szGroupName,
UNLEN);
- /* Display a warning message because the delete operation cannot be reverted */
+ /* Display a warning message, because the delete operation cannot be reverted */
wsprintf(szText, TEXT("Dou you really want to delete the user group \"%s\"?"), szGroupName);
if (MessageBox(NULL, szText, TEXT("User Groups"), MB_ICONWARNING | MB_YESNO) == IDNO)
return FALSE;
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* PURPOSE: Native DirectDraw implementation
- * FILE: subsys/win32k/ntddraw/d3d.c
+ * FILE: subsystems/win32/win32k/ntddraw/d3d.c
* PROGRAMER: Magnus olsen (magnus@greatlord.com)
* REVISION HISTORY:
* 19/1-2006 Magnus Olsen
if (pfnDdCreateD3DBuffer == NULL)
{
- DPRINT1("Warning no pfnDdCreateD3DBuffer");
+ DPRINT1("Warning: no pfnDdCreateD3DBuffer");
return DDHAL_DRIVER_NOTHANDLED;
}
if (pfnDdDestroyD3DBuffer == NULL)
{
- DPRINT1("Warning no pfnDdDestroyD3DBuffer");
+ DPRINT1("Warning: no pfnDdDestroyD3DBuffer");
return DDHAL_DRIVER_NOTHANDLED;
}
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* PURPOSE: Native DirectDraw implementation
- * FILE: subsys/win32k/ntddraw/dd.c
+ * FILE: subsystems/win32/win32k/ntddraw/dd.c
* PROGRAMER: Magnus Olsen (greatlord@reactos.org)
* REVISION HISTORY:
* 19/1-2006 Magnus Olsen
/************************************************************************/
-/* This is not part of the ddsurface interface but it have */
-/* deal with the surface */
+/* This is not part of the ddsurface interface but it */
+/* deals with the surface */
/************************************************************************/
/************************************************************************/
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* PURPOSE: Native DirectDraw implementation
- * FILE: subsys/win32k/ntddraw/ddraw.c
+ * FILE: subsystems/win32/win32k/ntddraw/ddraw.c
* PROGRAMER: Magnus olsen (magnus@greatlord.com)
* REVISION HISTORY:
* 19/1-2006 Magnus Olsen
PGD_DXDDENABLEDIRECTDRAW pfnDdEnableDirectDraw = NULL;
BOOL success = FALSE;
- /* FIXME get the process data */
+ /* FIXME: Get the process data */
/* Do not try load dxg.sys when it have already been load once */
if (gpfnStartupDxGraphics == NULL)
Status = DxDdStartupDxGraphics(0,NULL,0,NULL,NULL, Proc);
if (!NT_SUCCESS(Status))
{
- DPRINT1("Warning : Failed to create the directx interface\n");
+ DPRINT1("Warning: Failed to create the directx interface\n");
return FALSE;
}
}
pDC = DC_LockDc(hdc);
if (pDC == NULL)
{
- DPRINT1("Warning : Failed to lock hdc\n");
+ DPRINT1("Warning: Failed to lock hdc\n");
return FALSE;
}
pDev = pDC->ppdev;
- /* test see if drv got a dx interface or not */
+ /* Test and see if drv got a DX interface or not */
if ( ( pDev->DriverFunctions.DisableDirectDraw == NULL) ||
( pDev->DriverFunctions.EnableDirectDraw == NULL))
{
else
{
- /* CHeck see if dx have been enable or not */
+ /* Check and see if DX has been enabled or not */
if ( pDev->pEDDgpl->pvmList == NULL)
{
pDev->pEDDgpl->ddCallbacks.dwSize = sizeof(DD_CALLBACKS);
else
{
DPRINT1(" call to pfnDdEnableDirectDraw \n ");
- /* Note it is the hdev struct it want, not the drv hPDev aka pdc->PDev */
+
+ /* Note: it is the hdev struct it wants, not the drv hPDev aka pdc->PDev */
success = pfnDdEnableDirectDraw(pDC->ppdev, TRUE);
dump_edd_directdraw_global(pDev->pEDDgpl);
/************************************************************************/
/************************************************************************/
-/* DirectX graphic/video driver loading and cleanup start here */
+/* DirectX graphic/video driver loading and cleanup starts here */
/************************************************************************/
NTSTATUS
APIENTRY
NTSTATUS Status = STATUS_PROCEDURE_NOT_FOUND;
- /* FIXME setup of gaEngFuncs driver export list
+ /* FIXME: Setup of gaEngFuncs driver export list
* but not in this api, we can add it here tempary until we figout where
* no code have been writen for it yet
*/
- /* FIXME ReactOS does not loading the dxapi.sys or import functions from it yet */
+ /* FIXME: ReactOS does not loading the dxapi.sys or import functions from it yet */
// DxApiGetVersion()
- /* Loading the kernel interface of directx for win32k */
+ /* Loading the kernel interface of DirectX for win32k */
DPRINT1("Warning: trying loading xp/2003/windows7/reactos dxg.sys\n");
ghDxGraphics = EngLoadImage(L"\\SystemRoot\\System32\\drivers\\dxg.sys");
}
else
{
- /* import DxDdStartupDxGraphics and DxDdCleanupDxGraphics */
+ /* Import DxDdStartupDxGraphics and DxDdCleanupDxGraphics */
gpfnStartupDxGraphics = EngFindImageProcAddress(ghDxGraphics,"DxDdStartupDxGraphics");
gpfnCleanupDxGraphics = EngFindImageProcAddress(ghDxGraphics,"DxDdCleanupDxGraphics");
Proc );
}
- /* check if we manger loading the data and execute the dxStartupDxGraphics and it susscess */
+ /* Check if we manage loading the data and execute the dxStartupDxGraphics if it is successful */
if (!NT_SUCCESS(Status))
{
gpfnStartupDxGraphics = NULL;
}
else
{
- /* Sort the drv functions list in index order, this allown us doing, smaller optimze
- * in api that are redirect to dx.sys
+ /* Sort the drv functions list in index order, this allows us doing, smaller optimize
+ * in API that are redirect to dx.sys
*/
PDRVFN lstDrvFN = DxgDrv.pdrvfn;
DPRINT1("DirectX interface is activated\n");
}
- /* return the status */
+ /* Return the status */
}
return Status;
if (hdc == NULL)
{
- DPRINT1("Warning : hdc is NULL\n");
+ DPRINT1("Warning: hdc is NULL\n");
return 0;
}
- /* FIXME This should be alloc for each drv and use it from each drv, not global for whole win32k */
+ /* FIXME: This should be alloc for each drv and use it from each drv, not global for whole win32k */
if (intEnableReactXDriver(hdc) == FALSE)
{
- DPRINT1("Warning : Failed to start the directx interface from the graphic driver\n");
+ DPRINT1("Warning: Failed to start the DirectX interface from the graphic driver\n");
return DDHAL_DRIVER_NOTHANDLED;
}
- /* get the pfnDdCreateDirectDrawObject after we load the drv */
+ /* Get the pfnDdCreateDirectDrawObject after we load the drv */
pfnDdCreateDirectDrawObject = (PGD_DDCREATEDIRECTDRAWOBJECT)gpDxFuncs[DXG_INDEX_DxDdCreateDirectDrawObject].pfn;
if (pfnDdCreateDirectDrawObject == NULL)
* @implemented
*
* The function NtGdiDxgGenericThunk redirects DirectX calls to another function.
-* It redirects to dxg.sys in windows XP/2003, dxkrnl.sys in vista and is fully implemented in win32k.sys in windows 2000 and below
+* It redirects to dxg.sys in Windows XP/2003, dxkrnl.sys in Vista and is fully implemented in win32k.sys in Windows 2000 and below
*
* @param ULONG_PTR ulIndex
* The functions we want to redirect
DPRINT1("Warning: no pfnDdDeleteSurfaceObject\n");
return DDHAL_DRIVER_NOTHANDLED;
}
- /* try see if the handle is vaidl */
+ /* Try and see if the handle is valid */
DPRINT1("Calling dxg.sys DdDeleteSurfaceObject\n");
return pfnDdDeleteSurfaceObject(hSurface);
}
-/* internal debug api */
+/* Internal debug API */
void dump_edd_directdraw_global(EDD_DIRECTDRAW_GLOBAL *pEddgbl)
{
DPRINT1("0x%08lx 0x000 PEDD_DIRECTDRAW_GLOBAL->dhpdev : 0x%08lx\n",FIELD_OFFSET(EDD_DIRECTDRAW_GLOBAL, dhpdev), pEddgbl->dhpdev);
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* PURPOSE: Native DirectDraw implementation
- * FILE: subsys/win32k/ntddraw/dd.c
+ * FILE: subsystems/win32/win32k/ntddraw/ddsurf.c
* PROGRAMER: Magnus Olsen (greatlord@reactos.org)
* REVISION HISTORY:
* 19/7-2006 Magnus Olsen
if (pfnDdDestroySurface == NULL)
{
- DPRINT1("Warring no pfnDdDestroySurface");
+ DPRINT1("Warning: no pfnDdDestroySurface");
return DDHAL_DRIVER_NOTHANDLED;
}
if (pfnDdDdFlip == NULL)
{
- DPRINT1("Warring no pfnDdDdFlip");
+ DPRINT1("Warning: no pfnDdDdFlip");
return DDHAL_DRIVER_NOTHANDLED;
}
if (pfnDdLock == NULL)
{
- DPRINT1("Warring no pfnDdLock");
+ DPRINT1("Warning: no pfnDdLock");
return DDHAL_DRIVER_NOTHANDLED;
}
if (pfnDdUnlock == NULL)
{
- DPRINT1("Warring no pfnDdUnlock");
+ DPRINT1("Warning: no pfnDdUnlock");
return DDHAL_DRIVER_NOTHANDLED;
}
if (pfnDdBlt == NULL)
{
- DPRINT1("Warring no pfnDdBlt");
+ DPRINT1("Warning: no pfnDdBlt");
return DDHAL_DRIVER_NOTHANDLED;
}
if (pfnDdSetColorKey == NULL)
{
- DPRINT1("Warring no pfnDdSetColorKey");
+ DPRINT1("Warning: no pfnDdSetColorKey");
return DDHAL_DRIVER_NOTHANDLED;
}
if (pfnDdAddAttachedSurface == NULL)
{
- DPRINT1("Warring no pfnDdAddAttachedSurface");
+ DPRINT1("Warning: no pfnDdAddAttachedSurface");
return DDHAL_DRIVER_NOTHANDLED;
}
if (pfnDdGetBltStatus == NULL)
{
- DPRINT1("Warring no pfnDdGetBltStatus");
+ DPRINT1("Warning: no pfnDdGetBltStatus");
return DDHAL_DRIVER_NOTHANDLED;
}
if (pfnDdGetFlipStatus == NULL)
{
- DPRINT1("Warring no pfnDdGet