mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
- Some changes for online manual.
- About dialog now indicates "Beta" or not beta on version information.
This commit is contained in:
parent
cce8a5ead4
commit
98c1f70f17
@ -292,7 +292,7 @@ BOOL OnInitAboutDialog(HWND window)
|
||||
HWND widget;
|
||||
|
||||
widget = GetDlgItem(window, IDC_VERSION_STRING);
|
||||
swprintf(tmpSz, L"%s %s rev %i %s", APPNAME, APPVERSION, revision_number, APPBITS);
|
||||
swprintf(tmpSz, L"%s %s%s rev %i %s", APPNAME, APPVERSION, revision_beta ? L" Beta" : L"", revision_number, APPBITS);
|
||||
SetWindowText(widget, tmpSz);
|
||||
|
||||
widget = GetDlgItem(window, IDC_BUILD_STRING);
|
||||
|
@ -24,11 +24,16 @@
|
||||
#include "AboutDialog.h"
|
||||
#include "Error.h"
|
||||
#include "RainmeterQuery.h"
|
||||
#include "../revision-number.h"
|
||||
#include <io.h>
|
||||
#include <ShellAPI.h>
|
||||
|
||||
#define TRAYTIMER 3
|
||||
|
||||
#define RAINMETER_OFFICIAL L"http://rainmeter.net/RainCMS/"
|
||||
#define RAINMETER_MANUAL L"http://rainmeter.net/RainCMS/?q=Manual"
|
||||
#define RAINMETER_MANUALBETA L"http://rainmeter.net/RainCMS/?q=ManualBeta"
|
||||
|
||||
extern CRainmeter* Rainmeter;
|
||||
|
||||
using namespace Gdiplus;
|
||||
@ -405,13 +410,11 @@ LRESULT CALLBACK CTrayWindow::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
|
||||
}
|
||||
else if(wParam == ID_CONTEXT_SHOW_HELP)
|
||||
{
|
||||
std::wstring help = Rainmeter->GetPath();
|
||||
help = L"\"" + help + L"Rainmeter.chm\"";
|
||||
LSExecute(NULL, help.c_str(), SW_SHOWNORMAL);
|
||||
LSExecute(NULL, revision_beta ? RAINMETER_MANUALBETA : RAINMETER_MANUAL, SW_SHOWNORMAL);
|
||||
}
|
||||
else if(wParam == ID_CONTEXT_NEW_VERSION)
|
||||
{
|
||||
LSExecute(NULL, L"http://rainmeter.net/RainCMS/", SW_SHOWNORMAL);
|
||||
LSExecute(NULL, RAINMETER_OFFICIAL, SW_SHOWNORMAL);
|
||||
}
|
||||
else if(wParam == ID_CONTEXT_REFRESH)
|
||||
{
|
||||
|
@ -1,2 +1,3 @@
|
||||
#pragma once
|
||||
const int revision_number = 482;
|
||||
const int revision_number = 482;
|
||||
const bool revision_beta = true;
|
Loading…
Reference in New Issue
Block a user