mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-02 11:04:00 +01:00
show version in the 'About' window
This commit is contained in:
parent
926b945846
commit
20341a381f
|
@ -2,6 +2,7 @@
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <shellapi.h>
|
#include <shellapi.h>
|
||||||
#include "../Config.h"
|
#include "../Config.h"
|
||||||
|
#include "../version.h"
|
||||||
#include "resource.h"
|
#include "resource.h"
|
||||||
#include "Win32App.h"
|
#include "Win32App.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -90,7 +91,9 @@ namespace win32
|
||||||
{
|
{
|
||||||
case ID_ABOUT:
|
case ID_ABOUT:
|
||||||
{
|
{
|
||||||
MessageBox( hWnd, TEXT("i2pd"), TEXT("About"), MB_ICONINFORMATION | MB_OK );
|
std::stringstream text;
|
||||||
|
text << "Version: " << I2PD_VERSION << " " << CODENAME;
|
||||||
|
MessageBox( hWnd, TEXT(text.str ().c_str ()), TEXT("i2pd"), MB_ICONINFORMATION | MB_OK );
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
case ID_EXIT:
|
case ID_EXIT:
|
||||||
|
@ -171,12 +174,12 @@ namespace win32
|
||||||
auto mascot = LoadBitmap (GetModuleHandle(NULL), MAKEINTRESOURCE (MASCOT));
|
auto mascot = LoadBitmap (GetModuleHandle(NULL), MAKEINTRESOURCE (MASCOT));
|
||||||
auto mascotDC = CreateCompatibleDC (hDC);
|
auto mascotDC = CreateCompatibleDC (hDC);
|
||||||
SelectObject (mascotDC, mascot);
|
SelectObject (mascotDC, mascot);
|
||||||
BitBlt (hDC, 0,0, 533, 700, mascotDC, 0, 0, SRCCOPY);
|
BitBlt (hDC, 0,0, 533, 700, mascotDC, 0, 0, SRCCOPY);
|
||||||
DeleteDC (mascotDC);
|
DeleteDC (mascotDC);
|
||||||
DeleteObject (mascot);
|
DeleteObject (mascot);
|
||||||
EndPaint (hWnd, &ps);
|
EndPaint (hWnd, &ps);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return DefWindowProc( hWnd, uMsg, wParam, lParam);
|
return DefWindowProc( hWnd, uMsg, wParam, lParam);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue