ReactOS 0.4.17-dev-1133-gc25e4fd
CAboutSnapinDialog.cpp
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS Management Console
3 * LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4 * PURPOSE: About Snapin dialog
5 * COPYRIGHT: Copyright 2026 Eric Kohl (eric.kohl@reactos.org)
6 */
7
8#include <precomp.h>
9
10
13{
14 CenterWindow(m_MainWnd->m_hWnd);
15
19
21
23 Info.Append(L"\r\n");
26 {
28
29 Info.Append(L"\r\n");
30 Info.Append(VersionString.GetString()/*L"Version: "*/);
32 }
33 m_SnapinInfo.SetWindowText(Info.GetString());
34
36
37 return 0;
38}
39
42{
44 return 0;
45}
46
48CAboutSnapinDialog::OnCommand(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled)
49{
50 switch (wID)
51 {
52 case IDOK:
53 {
55 }
56 return 0;
57 }
58
59 return 0;
60}
#define IDC_ABOUT_ICON
Definition: resource.h:106
#define IDS_ABOUT_VERSION
Definition: resource.h:125
#define IDC_ABOUT_DESCRIPTION
Definition: resource.h:108
#define IDC_ABOUT_INFO
Definition: resource.h:107
static VOID CenterWindow(HWND hWnd)
Definition: reactos.c:45
void Append(_In_count_(nLength) PCXSTR pszSrc, _In_ int nLength)
Definition: atlsimpstr.h:271
bool IsEmpty() const noexcept
Definition: atlsimpstr.h:394
PXSTR GetString() noexcept
Definition: atlsimpstr.h:367
LRESULT SendMessage(UINT message, WPARAM wParam=0, LPARAM lParam=0)
Definition: atlwin.h:1116
BOOL SetWindowText(LPCTSTR lpszString)
Definition: atlwin.h:1300
void Attach(HWND hWndNew)
Definition: atlwin.h:298
LRESULT OnInitDialog(UINT nMessage, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT OnClose(UINT nMessage, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT OnCommand(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
const CAtlString & Description() const
const CAtlString & Version() const
const CAtlString & Provider() const
CSnapinCacheEntry * CacheEntry()
Definition: CSnapin.cpp:54
const CAtlString & Name() const
Definition: CSnapin.cpp:37
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
#define L(x)
Definition: resources.c:13
unsigned short WORD
Definition: ntddk_ex.h:93
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned int UINT
Definition: sysinfo.c:13
LONG_PTR LPARAM
Definition: minwindef.h:175
LONG_PTR LRESULT
Definition: minwindef.h:176
UINT_PTR WPARAM
Definition: minwindef.h:174
#define MAKEINTRESOURCE(i)
Definition: ntverrsrc.c:25
#define IMAGE_ICON
Definition: winuser.h:212
#define STM_SETIMAGE
Definition: winuser.h:2129
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
#define IDOK
Definition: winuser.h:841
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)
uint16_t * LPWSTR
Definition: typedefs.h:56
_Must_inspect_result_ _In_ WDFCHILDLIST _In_ PWDF_CHILD_LIST_ITERATOR _Out_ WDFDEVICE _Inout_opt_ PWDF_CHILD_RETRIEVE_INFO Info
Definition: wdfchildlist.h:690