-/* $Id$
- *
+/*
* PROJECT: ReactOS Power Configuration Applet
* LICENSE: GPL - See COPYING in the top level directory
* FILE: dll/cpl/powercfg/powershemes.c
* PURPOSE: powerschemes tab of applet
* PROGRAMMERS: Alexander Wurzinger (Lohnegrim at gmx dot net)
- * Johannes Anderwald (johannes.anderwald@student.tugraz.at)
+ * Johannes Anderwald (johannes.anderwald@reactos.org)
* Martin Rottensteiner
* Dmitry Chapyshev (lentind@yandex.ru)
*/
-#include <windows.h>
-#include <commctrl.h>
-#include <cpl.h>
-#include <tchar.h>
-#include "resource.h"
#include "powercfg.h"
-#include "stdio.h"
UINT Sec[]=
{
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;
}
LoadString(hApplet, IDS_DEL_SCHEME_TITLE, szBufT, sizeof(szBufT) / sizeof(TCHAR));
LoadString(hApplet, IDS_DEL_SCHEME, szBuf, sizeof(szBuf) / sizeof(TCHAR));
- if (MessageBox(hwnd, (LPCTSTR)szBuf, (LPCTSTR)szBufT, MB_OKCANCEL | MB_ICONQUESTION) == IDOK)
+ if (MessageBox(hwnd, szBuf, szBufT, MB_YESNO | MB_ICONQUESTION) == IDYES)
{
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: