mirror of
https://github.com/reactos/reactos.git
synced 2024-11-07 23:22:36 +00:00
fix msvc warnings
svn path=/trunk/; revision=20746
This commit is contained in:
parent
456ba53827
commit
9cfeba8d37
5 changed files with 22 additions and 13 deletions
|
@ -13,6 +13,9 @@
|
|||
|
||||
extern HINSTANCE hInstance;
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(disable : 4100)
|
||||
#endif
|
||||
BOOL CALLBACK
|
||||
AboutDialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
|
|
|
@ -11,7 +11,9 @@
|
|||
|
||||
extern HINSTANCE hInstance;
|
||||
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(disable : 4100)
|
||||
#endif
|
||||
/* Property page dialog callback */
|
||||
INT_PTR CALLBACK
|
||||
GeneralPageProc(HWND hwndDlg,
|
||||
|
|
|
@ -46,7 +46,7 @@ RefreshServiceList(VOID)
|
|||
|
||||
/* Create the icon image lists */
|
||||
hSmall = ImageList_Create(GetSystemMetrics(SM_CXSMICON),
|
||||
GetSystemMetrics(SM_CYSMICON), ILC_MASK | ILC_COLOR16, 1, 1);
|
||||
GetSystemMetrics(SM_CYSMICON), ILC_MASK | ILC_COLOR16, 1, 1);
|
||||
|
||||
/* Add an icon to each image list */
|
||||
hiconItem = LoadImage(hInstance, MAKEINTRESOURCE(IDI_SM_ICON), IMAGE_ICON, 16, 16, 0);
|
||||
|
|
|
@ -177,12 +177,15 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
|||
|
||||
SendMessage(hStatus, SB_SETPARTS, sizeof(statwidths)/sizeof(int), (LPARAM)statwidths);
|
||||
|
||||
/* populate the list view with all services */
|
||||
|
||||
/* ================= populate the list view with all services =================== */
|
||||
|
||||
if (! RefreshServiceList() )
|
||||
GetError();
|
||||
|
||||
}
|
||||
break;
|
||||
|
||||
case WM_SIZE:
|
||||
{
|
||||
RECT rcTool;
|
||||
|
@ -241,7 +244,7 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
|||
|
||||
// Specify the resource identifier of the descriptive
|
||||
// text for the given button.
|
||||
idButton = lpttt->hdr.idFrom;
|
||||
idButton = (UINT)lpttt->hdr.idFrom;
|
||||
switch (idButton)
|
||||
{
|
||||
case ID_PROP:
|
||||
|
@ -337,11 +340,13 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
|||
break;
|
||||
|
||||
case ID_HELP:
|
||||
MessageBox(NULL, _T("Help is not yet implemented\n"),
|
||||
_T("Note!"), MB_OK | MB_ICONINFORMATION);
|
||||
break;
|
||||
|
||||
case ID_EXIT:
|
||||
PostMessage(hwnd, WM_CLOSE, 0, 0);
|
||||
break;
|
||||
PostMessage(hwnd, WM_CLOSE, 0, 0);
|
||||
break;
|
||||
|
||||
case ID_VIEW_CUSTOMIZE:
|
||||
break;
|
||||
|
@ -362,8 +367,9 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
|||
return 0;
|
||||
}
|
||||
|
||||
|
||||
//#pragma warning(disable : 4100)
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(disable : 4100)
|
||||
#endif
|
||||
int WINAPI WinMain(HINSTANCE hThisInstance, HINSTANCE hPrevInstance,
|
||||
LPSTR lpCmdLine, int nCmdShow)
|
||||
{
|
||||
|
@ -426,7 +432,7 @@ int WINAPI WinMain(HINSTANCE hThisInstance, HINSTANCE hPrevInstance,
|
|||
DispatchMessage(&Msg);
|
||||
}
|
||||
}
|
||||
return Msg.wParam;
|
||||
return (int)Msg.wParam;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -13,15 +13,13 @@
|
|||
|
||||
BOOL RefreshServiceList(VOID);
|
||||
|
||||
BOOL CALLBACK
|
||||
AboutDialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
|
||||
BOOL CALLBACK AboutDialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
|
||||
|
||||
VOID GetError(VOID);
|
||||
VOID FreeMemory(VOID);
|
||||
VOID DisplayString(PTCHAR);
|
||||
|
||||
LONG APIENTRY
|
||||
PropSheets(HWND hwnd);
|
||||
LONG APIENTRY PropSheets(HWND hwnd);
|
||||
|
||||
DWORD GetServiceList(VOID);
|
||||
|
||||
|
|
Loading…
Reference in a new issue