diff options
author | george82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519> | 2005-03-21 01:28:12 +0000 |
---|---|---|
committer | george82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519> | 2005-03-21 01:28:12 +0000 |
commit | 357c9f52d70f80b3f1ec64a49aec30d49dc9533b (patch) | |
tree | d40a8312a5fdc83a337298f83babed0b95ea2b7d /rfbplayer | |
parent | c7e9f790f25fb8dd52dfc5435ec9d86a9c871a47 (diff) | |
download | tigervnc-357c9f52d70f80b3f1ec64a49aec30d49dc9533b.tar.gz tigervnc-357c9f52d70f80b3f1ec64a49aec30d49dc9533b.zip |
Added about dialog to the player.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@263 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'rfbplayer')
-rw-r--r-- | rfbplayer/resource.h | 8 | ||||
-rw-r--r-- | rfbplayer/rfbplayer.cxx | 16 | ||||
-rw-r--r-- | rfbplayer/rfbplayer.rc | 21 |
3 files changed, 40 insertions, 5 deletions
diff --git a/rfbplayer/resource.h b/rfbplayer/resource.h index 52e171ac..4bbede4b 100644 --- a/rfbplayer/resource.h +++ b/rfbplayer/resource.h @@ -9,15 +9,20 @@ #define IDD_GOTO 133 #define IDD_PIXELFORMAT 134 #define IDD_OPTIONS 137 +#define IDD_ABOUT 138 #define IDC_GOTO_EDIT 1003 #define IDC_PIXELFORMAT 1004 #define IDC_ASK_PF 1006 #define IDC_DEFAULT 1008 +#define IDC_VERSION 1008 #define IDC_ACCEPT_BELL 1009 +#define IDC_BUILDTIME 1009 #define IDC_ACCEPT_CUT_TEXT 1010 #define IDC_AUTO_STORE_PARAM 1011 #define IDC_AUTOPLAY 1012 #define IDC_BIG_ENDIAN 1013 +#define IDC_COPYRIGHT 1021 +#define IDC_DESCRIPTION 1022 #define ID_OPENFILE 40011 #define ID_CLOSEFILE 40012 #define ID_EXIT 40013 @@ -34,6 +39,7 @@ #define ID_HELP_HOMEPAGE 40025 #define ID_HELP_COMMANDLINESWITCHES 40026 #define ID_HELP_ABOUT 40027 +#define ID_ABOUT 40027 #define ID_OPTIONS 40029 #define ID_RETURN 40044 @@ -41,7 +47,7 @@ // #ifdef APSTUDIO_INVOKED #ifndef APSTUDIO_READONLY_SYMBOLS -#define _APS_NEXT_RESOURCE_VALUE 138 +#define _APS_NEXT_RESOURCE_VALUE 139 #define _APS_NEXT_COMMAND_VALUE 40045 #define _APS_NEXT_CONTROL_VALUE 1015 #define _APS_NEXT_SYMED_VALUE 101 diff --git a/rfbplayer/rfbplayer.cxx b/rfbplayer/rfbplayer.cxx index 9a181a54..b028d637 100644 --- a/rfbplayer/rfbplayer.cxx +++ b/rfbplayer/rfbplayer.cxx @@ -24,10 +24,11 @@ #include <rfb_win32/Win32Util.h> #include <rfb_win32/WMShatter.h> +#include <rfb_win32/AboutDialog.h> #include <rfbplayer/PixelFormatList.h> #include <rfbplayer/rfbplayer.h> - + using namespace rfb; using namespace rfb::win32; @@ -79,6 +80,16 @@ char usage_msg[] = #define ID_SPEED_UPDOWN 570 // +// -=- AboutDialog global values +// + +const WORD rfb::win32::AboutDialog::DialogId = IDD_ABOUT; +const WORD rfb::win32::AboutDialog::Copyright = IDC_COPYRIGHT; +const WORD rfb::win32::AboutDialog::Version = IDC_VERSION; +const WORD rfb::win32::AboutDialog::BuildTime = IDC_BUILDTIME; +const WORD rfb::win32::AboutDialog::Description = IDC_DESCRIPTION; + +// // -=- RfbPlayerClass // @@ -393,6 +404,9 @@ RfbPlayer::processMainMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) MessageBox(getMainHandle(), usage_msg, "RfbPlayer", MB_OK | MB_ICONINFORMATION); break; + case ID_ABOUT: + AboutDialog::instance.showDialog(); + break; } break; diff --git a/rfbplayer/rfbplayer.rc b/rfbplayer/rfbplayer.rc index 474fb1d4..2c0eb0e0 100644 --- a/rfbplayer/rfbplayer.rc +++ b/rfbplayer/rfbplayer.rc @@ -96,11 +96,11 @@ BEGIN VALUE "FileDescription", "RFB Session Player for Win32\0" VALUE "FileVersion", "1, 0, 0, 1\0" VALUE "InternalName", "rfbplayer\0" - VALUE "LegalCopyright", "Copyright (C) 2004 TightVNC Team.\0" + VALUE "LegalCopyright", "Copyright (C) 2004-2005 TightVNC Team.\0" VALUE "LegalTrademarks", "\0" VALUE "OriginalFilename", "rfbplayer.exe\0" VALUE "PrivateBuild", "\0" - VALUE "ProductName", "RFB Session Player 1.0\0" + VALUE "ProductName", "Rfb Session Player 1.0\0" VALUE "ProductVersion", "1, 0, 0, 1\0" VALUE "SpecialBuild", "\0" END @@ -158,7 +158,7 @@ BEGIN MENUITEM "Home Page", ID_HELP_HOMEPAGE MENUITEM "Command Line Switches", ID_HELP_COMMANDLINESWITCHES MENUITEM SEPARATOR - MENUITEM "About RfbPlayer...", ID_HELP_ABOUT + MENUITEM "About RfbPlayer...", ID_ABOUT END END @@ -255,6 +255,21 @@ BEGIN BS_AUTOCHECKBOX | WS_TABSTOP,15,52,145,10 END +IDD_ABOUT DIALOG DISCARDABLE 0, 0, 251, 95 +STYLE DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "About Rfb Session Player for Windows" +FONT 8, "MS Sans Serif" +BEGIN + DEFPUSHBUTTON "OK",IDOK,195,70,47,15 + ICON IDI_ICON,IDC_STATIC,7,10,20,20 + LTEXT ">appname<",IDC_DESCRIPTION,40,10,125,15 + LTEXT ">version<",IDC_VERSION,165,10,77,15 + LTEXT ">buildtime<",IDC_BUILDTIME,40,25,202,15 + LTEXT ">copyright<",IDC_COPYRIGHT,40,40,202,15 + LTEXT "See http://www.tightvnc.com for more information on TightVNC.", + IDC_STATIC,40,55,202,15 +END + ///////////////////////////////////////////////////////////////////////////// // |