\r
SendMessage(hStatus, SB_SETPARTS, sizeof(statwidths)/sizeof(int), (LPARAM)statwidths);\r
\r
- /* populate the list view with all services */\r
+\r
+/* ================= populate the list view with all services =================== */\r
+\r
if (! RefreshServiceList() )\r
GetError();\r
\r
}\r
break;\r
+\r
case WM_SIZE:\r
{\r
RECT rcTool;\r
\r
// Specify the resource identifier of the descriptive\r
// text for the given button.\r
- idButton = lpttt->hdr.idFrom;\r
+ idButton = (UINT)lpttt->hdr.idFrom;\r
switch (idButton)\r
{\r
case ID_PROP:\r
break;\r
\r
case ID_HELP:\r
+ MessageBox(NULL, _T("Help is not yet implemented\n"), \r
+ _T("Note!"), MB_OK | MB_ICONINFORMATION);\r
break;\r
\r
case ID_EXIT:\r
- PostMessage(hwnd, WM_CLOSE, 0, 0);\r
- break;\r
+ PostMessage(hwnd, WM_CLOSE, 0, 0);\r
+ break;\r
\r
case ID_VIEW_CUSTOMIZE:\r
break;\r
return 0;\r
}\r
\r
-\r
-//#pragma warning(disable : 4100)\r
+#ifdef _MSC_VER\r
+#pragma warning(disable : 4100)\r
+#endif\r
int WINAPI WinMain(HINSTANCE hThisInstance, HINSTANCE hPrevInstance,\r
LPSTR lpCmdLine, int nCmdShow)\r
{\r
DispatchMessage(&Msg);\r
}\r
}\r
- return Msg.wParam;\r
+ return (int)Msg.wParam;\r
}\r
\r
\r