[RAPPS] Usability fixes.
[reactos.git] / base / applications / rapps / aboutdlg.cpp
1 /*
2 * PROJECT: ReactOS Applications Manager
3 * LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4 * FILE: base/applications/rapps/aboutdlg.cpp
5 * PURPOSE: About Dialog
6 * COPYRIGHT: Copyright 2009 Dmitry Chapyshev (dmitry@reactos.org)
7 * Copyright 2017 Alexander Shaposhikov (sanchaez@reactos.org)
8 */
9 #include "rapps.h"
10
11 static INT_PTR CALLBACK AboutDlgProc(HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam)
12 {
13 if ((Msg == WM_COMMAND) &&
14 (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL))
15 {
16 return EndDialog(hDlg, LOWORD(wParam));
17 }
18
19 return FALSE;
20 }
21
22 VOID ShowAboutDialog()
23 {
24 DialogBoxW(hInst,
25 MAKEINTRESOURCEW(IDD_ABOUT_DIALOG),
26 hMainWnd,
27 AboutDlgProc);
28 }