//---------------------------------------------------------------------------- // Laser Guard Ltd. // Copyright © 2000-2002. All Rights Reserved. // Version 1.0 19/04/2000 // Last modification: 08/10/2003 // Project Intruder Position Indicator // SUBSYSTEM: AboutDlg // FILE: AboutDlg.cpp // AUTHOR: Chizhevskiy Sergey // OVERVIEW // ~~~~~~~~ // Source file of class CAboutDlg //---------------------------------------------------------------------------- #include "stdafx.h" #include "..\LgLib\Version.h" #include "AboutDlg.h" // Mesage handler for about box. 23/04/2001 BOOL CALLBACK AboutDlgProc(HWND hdlg, UINT message, WPARAM wParam, LPARAM lParam) { _TCHAR pszBuffer[0x526]; switch (message) { case WM_INITDIALOG: // Get last build date and time _sntprintf( pszBuffer, 0x526, _T("Built on %s"), CLgVersion::GetBuildTimeStr() ); ::SetWindowText(::GetDlgItem(hdlg, IDC_LAST_BUILD_TIME ), pszBuffer); return TRUE; case WM_COMMAND: if(LOWORD(wParam) == IDOK) { EndDialog(hdlg, LOWORD(wParam)); return TRUE; } break; } return FALSE; }