case WM_COMMAND:
switch (LOWORD(wParam)) {
case IDM_END:
SendMessage(hWnd, WM_CLOSE, 0, 0);
break;
case IDM_OPEN:
OpenFiles(hWnd);
break;