summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b0f334f)
Clean-up the indentation.
svn path=/trunk/; revision=11286
-# $Id: Makefile,v 1.1 2004/08/07 00:05:23 kuehng Exp $
+# $Id: Makefile,v 1.2 2004/10/13 10:17:41 ekohl Exp $
TARGET_CFLAGS = \
-I./include \
TARGET_CFLAGS = \
-I./include \
+ -D_WIN32_IE=0x0600 \
+ -D_WIN32_WINNT=0x0501 \
+ -D__USE_W32API \
-DUNICODE \
-D_UNICODE \
-D__REACTOS__ \
-DUNICODE \
-D_UNICODE \
-D__REACTOS__ \
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* $Id: desk.c,v 1.2 2004/10/11 21:08:04 weiden Exp $
+/* $Id: desk.c,v 1.3 2004/10/13 10:17:41 ekohl Exp $
*
* PROJECT: ReactOS Display Control Panel
* FILE: lib/cpl/desk/desk.c
*
* PROJECT: ReactOS Display Control Panel
* FILE: lib/cpl/desk/desk.c
#include <tchar.h>
#include <windows.h>
#include <tchar.h>
#include <windows.h>
#include <commctrl.h>
#include <cpl.h>
#include <commctrl.h>
#include <cpl.h>
-#include <stdlib.h>
-#include <tchar.h>
#include "resource.h"
#include "desk.h"
#include "resource.h"
#include "desk.h"
INT_PTR CALLBACK ScreenSaverPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
INT_PTR CALLBACK AppearancePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
INT_PTR CALLBACK SettingsPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
INT_PTR CALLBACK ScreenSaverPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
INT_PTR CALLBACK AppearancePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
INT_PTR CALLBACK SettingsPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
HINSTANCE hApplet = 0;
/* Applets */
HINSTANCE hApplet = 0;
/* Applets */
break;
case WM_COMMAND:
break;
}
return FALSE;
}
break;
case WM_COMMAND:
break;
}
return FALSE;
}
/* Property page dialog callback */
INT_PTR CALLBACK
ScreenSaverPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
switch(uMsg)
{
/* Property page dialog callback */
INT_PTR CALLBACK
ScreenSaverPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
switch(uMsg)
{
break;
case WM_COMMAND:
break;
}
return FALSE;
}
break;
case WM_COMMAND:
break;
}
return FALSE;
}
/* Property page dialog callback */
INT_PTR CALLBACK
AppearancePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
switch(uMsg)
{
/* Property page dialog callback */
INT_PTR CALLBACK
AppearancePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
switch(uMsg)
{
break;
case WM_COMMAND:
break;
}
return FALSE;
}
break;
case WM_COMMAND:
break;
}
return FALSE;
}
/* Property page dialog callback */
INT_PTR CALLBACK
SettingsPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
switch(uMsg)
{
/* Property page dialog callback */
INT_PTR CALLBACK
SettingsPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
switch(uMsg)
{
break;
case WM_COMMAND:
break;
break;
case WM_COMMAND:
break;
-static void InitPropSheetPage(PROPSHEETPAGE *psp, WORD idDlg, DLGPROC DlgProc)
+
+static VOID
+InitPropSheetPage(PROPSHEETPAGE *psp, WORD idDlg, DLGPROC DlgProc)
{
ZeroMemory(psp, sizeof(PROPSHEETPAGE));
psp->dwSize = sizeof(PROPSHEETPAGE);
psp->dwFlags = PSP_DEFAULT;
psp->hInstance = hApplet;
{
ZeroMemory(psp, sizeof(PROPSHEETPAGE));
psp->dwSize = sizeof(PROPSHEETPAGE);
psp->dwFlags = PSP_DEFAULT;
psp->hInstance = hApplet;
psp->pszTemplate = MAKEINTRESOURCE(idDlg);
psp->pszTemplate = MAKEINTRESOURCE(idDlg);
-#else
- psp->u1.pszTemplate = MAKEINTRESOURCE(idDlg);
-#endif
psp->pfnDlgProc = DlgProc;
}
psp->pfnDlgProc = DlgProc;
}
PROPSHEETPAGE psp[4];
PROPSHEETHEADER psh;
TCHAR Caption[1024];
PROPSHEETPAGE psp[4];
PROPSHEETHEADER psh;
TCHAR Caption[1024];
LoadString(hApplet, IDS_CPLSYSTEMNAME, Caption, sizeof(Caption) / sizeof(TCHAR));
LoadString(hApplet, IDS_CPLSYSTEMNAME, Caption, sizeof(Caption) / sizeof(TCHAR));
ZeroMemory(&psh, sizeof(PROPSHEETHEADER));
psh.dwSize = sizeof(PROPSHEETHEADER);
psh.dwFlags = PSH_PROPSHEETPAGE | PSH_PROPTITLE;
psh.hwndParent = NULL;
psh.hInstance = hApplet;
ZeroMemory(&psh, sizeof(PROPSHEETHEADER));
psh.dwSize = sizeof(PROPSHEETHEADER);
psh.dwFlags = PSH_PROPSHEETPAGE | PSH_PROPTITLE;
psh.hwndParent = NULL;
psh.hInstance = hApplet;
psh.hIcon = LoadIcon(hApplet, MAKEINTRESOURCE(IDI_CPLSYSTEM));
psh.hIcon = LoadIcon(hApplet, MAKEINTRESOURCE(IDI_CPLSYSTEM));
-#else
- psh.u1.hIcon = LoadIcon(hApplet, MAKEINTRESOURCE(IDI_CPLSYSTEM));
-#endif
psh.pszCaption = Caption;
psh.nPages = sizeof(psp) / sizeof(PROPSHEETPAGE);
psh.pszCaption = Caption;
psh.nPages = sizeof(psp) / sizeof(PROPSHEETPAGE);
psh.nStartPage = 0;
psh.ppsp = psp;
psh.nStartPage = 0;
psh.ppsp = psp;
-#else
- psh.u2.nStartPage = 0;
- psh.u3.ppsp = psp;
-#endif
InitPropSheetPage(&psp[0], IDD_PROPPAGEBACKGROUND, BackgroundPageProc);
InitPropSheetPage(&psp[1], IDD_PROPPAGESCREENSAVER, ScreenSaverPageProc);
InitPropSheetPage(&psp[2], IDD_PROPPAGEAPPEARANCE, AppearancePageProc);
InitPropSheetPage(&psp[3], IDD_PROPPAGESETTINGS, SettingsPageProc);
InitPropSheetPage(&psp[0], IDD_PROPPAGEBACKGROUND, BackgroundPageProc);
InitPropSheetPage(&psp[1], IDD_PROPPAGESCREENSAVER, ScreenSaverPageProc);
InitPropSheetPage(&psp[2], IDD_PROPPAGEAPPEARANCE, AppearancePageProc);
InitPropSheetPage(&psp[3], IDD_PROPPAGESETTINGS, SettingsPageProc);
return (LONG)(PropertySheet(&psh) != -1);
}
return (LONG)(PropertySheet(&psh) != -1);
}
/* Control Panel Callback */
/* Control Panel Callback */
-LONG CALLBACK CPlApplet(HWND hwndCPl, UINT uMsg, LPARAM lParam1, LPARAM lParam2)
+LONG CALLBACK
+CPlApplet(HWND hwndCPl, UINT uMsg, LPARAM lParam1, LPARAM lParam2)
{
CPLINFO *CPlInfo = (CPLINFO*)lParam2;
CPlInfo->lData = 0;
{
CPLINFO *CPlInfo = (CPLINFO*)lParam2;
CPlInfo->lData = 0;
CPlInfo->idInfo = Applets[i].idDescription;
break;
}
CPlInfo->idInfo = Applets[i].idDescription;
break;
}
{
Applets[i].AppletProc();
break;
{
Applets[i].AppletProc();
break;
-BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD dwReason, LPVOID lpvReserved)
+BOOL WINAPI
+DllMain(HINSTANCE hinstDLL, DWORD dwReason, LPVOID lpvReserved)
- case DLL_PROCESS_ATTACH:
- case DLL_THREAD_ATTACH:
+ case DLL_PROCESS_ATTACH:
+ case DLL_THREAD_ATTACH:
hApplet = hinstDLL;
break;
}
hApplet = hinstDLL;
break;
}