Update win32 About dialog

This commit is contained in:
rdanbrook 2021-03-13 19:44:38 -05:00
parent 0f583cbe8e
commit 273bd14243
3 changed files with 638 additions and 645 deletions

View file

@ -47,8 +47,7 @@ namespace Nestopia
const MsgHandler::Entry<About> About::Handlers::commands[] =
{
{ IDC_ABOUT_URL, &About::OnCmdClick },
{ IDC_ABOUT_MAIL, &About::OnCmdClick }
{ IDC_ABOUT_URL, &About::OnCmdClick }
};
About::About()
@ -57,8 +56,7 @@ namespace Nestopia
ibool About::OnInitDialog(Param&)
{
dialog.SetItemIcon( IDC_ABOUT_ICON, Application::Instance::GetIconStyle() == Application::Instance::ICONSTYLE_NES ? IDI_APP : IDI_APP_J );
//dialog.Control( IDC_ABOUT_NAMEVERSION ).Text() << (String::Heap<char>() << "Nestopia UE v" << Application::Instance::GetVersion()).Ptr();
dialog.Control( IDC_ABOUT_NAMEVERSION ).Text() << "Nestopia UE vx.xx";
dialog.Control( IDC_ABOUT_NAMEVERSION ).Text() << "Nestopia UE 1.51.0";
return true;
}
@ -66,10 +64,7 @@ namespace Nestopia
{
HCURSOR hCursor;
if (param.Cursor().Inside( IDC_ABOUT_URL ) || param.Cursor().Inside( IDC_ABOUT_MAIL ))
hCursor = Resource::Cursor::GetHand();
else
hCursor = Resource::Cursor::GetArrow();
hCursor = Resource::Cursor::GetArrow();
::SetCursor( hCursor );
::SetWindowLongPtr( dialog, DWLP_MSGRESULT, true );
@ -85,7 +80,7 @@ namespace Nestopia
if (dialog.Control( param.Button().GetId() ).Text() >> cmd)
{
cmd.Insert( 0, param.Button().GetId() == IDC_ABOUT_MAIL ? L"mailto:" : L"http://" );
cmd.Insert( 0, L"http://" );
::ShellExecute( NULL, L"open", cmd.Ptr(), NULL, NULL, SW_SHOWNORMAL );
}
}

File diff suppressed because it is too large Load diff

View file

@ -552,7 +552,6 @@
#define IDC_LICENSE_EDIT 3304
#define IDC_ABOUT_ICON 3400
#define IDC_ABOUT_URL 3401
#define IDC_ABOUT_MAIL 3402
#define IDC_ABOUT_NAMEVERSION 3404
#define IDC_USER_INPUT_EDIT 3502
#define IDC_USER_INPUT_TEXT 3503