[bcbb26]: PWDialog.cpp Maximize Restore History

Download this file

PWDialog.cpp    34 lines (30 with data), 972 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include "stdafx.h"
#include "PWDialog.h"
#include "DboxMain.h"
#if defined(POCKET_PC)
#error "TBD - define proper Dialog base class for PPC"
#endif
IMPLEMENT_DYNAMIC(CPWDialog, CDialog)
LRESULT CPWDialog::WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
{
// list of all the events that signify actual user activity, as opposed
// to Windows internal events...
if (message == WM_KEYDOWN ||
message == WM_COMMAND ||
message == WM_SYSCOMMAND ||
message == WM_MOUSEMOVE ||
message == WM_MOVE ||
message == WM_LBUTTONDOWN ||
message == WM_LBUTTONDBLCLK ||
message == WM_CONTEXTMENU ||
message == WM_MENUSELECT ||
message == WM_VSCROLL
) {
DboxMain *dbx = dynamic_cast<DboxMain *>(GetParent());
if (dbx != NULL)
dbx->ResetIdleLockCounter();
else
TRACE(_T("CPWDialog::WindowProc - parent NULL or not a DboxMain\n"));
}
return CDialog::WindowProc(message, wParam, lParam);
}