mirror of
https://github.com/reactos/reactos.git
synced 2025-01-04 05:20:54 +00:00
ff3d1b7bb1
CORE-18438 - Each event detail control stores its own "current" item index, so that there can be different event detail dialogs showing different events concurrently (half-plemented; this is a Win7-like feature). As such, give the index of the selected event item when sending the EVT_DISPLAY message, instead of having the details dialog retrieve everytime by itself the current selected item (that may change in-between calls, and can trigger the "No Items in ListView" error). - When pressing "Prev"/"Next" buttons, detect whether we already are at the top/bottom of the event log, and if so, prompt the user to continue around. Clear up any selected event in the list, before selecting the new one. (Note: the event list supports multiple selection, for future functionality.)
29 lines
900 B
C
29 lines
900 B
C
/*
|
|
* PROJECT: ReactOS Event Log Viewer
|
|
* LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
|
|
* PURPOSE: Event Details Control.
|
|
* COPYRIGHT: Copyright 2007 Marc Piulachs <marc.piulachs@codexchange.net>
|
|
* Copyright 2008-2016 Eric Kohl <eric.kohl@reactos.org>
|
|
* Copyright 2016-2022 Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
|
|
*/
|
|
|
|
#ifndef _EVTDETCTL_H_
|
|
#define _EVTDETCTL_H_
|
|
|
|
/* Optional structure passed by pointer
|
|
* as LPARAM to CreateEventDetailsCtrl() */
|
|
typedef struct _EVENTDETAIL_INFO
|
|
{
|
|
PEVENTLOGFILTER EventLogFilter;
|
|
INT iEventItem;
|
|
} EVENTDETAIL_INFO, *PEVENTDETAIL_INFO;
|
|
|
|
#define EVT_SETFILTER (WM_APP + 2)
|
|
#define EVT_DISPLAY (WM_APP + 3)
|
|
|
|
HWND
|
|
CreateEventDetailsCtrl(HINSTANCE hInstance,
|
|
HWND hParentWnd,
|
|
LPARAM lParam);
|
|
|
|
#endif /* _EVTDETCTL_H_ */
|