541c2256409bc51cabdc4fe3087079eab5132c54
[reactos.git] / reactos / 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 "defines.h"
10
11 static INT_PTR CALLBACK AboutDlgProc(HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam)
12 {
13 if (Msg == WM_COMMAND && LOWORD(wParam) == IDOK)
14 {
15 return EndDialog(hDlg, LOWORD(wParam));
16 }
17
18 return FALSE;
19 }
20
21 VOID ShowAboutDialog()
22 {
23 DialogBoxW(hInst,
24 MAKEINTRESOURCEW(IDD_ABOUT_DIALOG),
25 hMainWnd,
26 AboutDlgProc);
27 }