123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- #include "main.h"
- #include "../Agave/Language/api_language.h"
- #include "resource.h"
- #include <FLAC/all.h>
- #include <strsafe.h>
- static HMODULE libflac=0;
- static char defaultVersionString[64];
- static const char **versionString=0;
- static const char *GetFLACVersion()
- {
- return "1.4.2";
- }
- int DoAboutMessageBox(HWND parent, wchar_t* title, wchar_t* message)
- {
- MSGBOXPARAMSW msgbx = {sizeof(MSGBOXPARAMSW),0};
- msgbx.lpszText = message;
- msgbx.lpszCaption = title;
- msgbx.lpszIcon = MAKEINTRESOURCEW(102);
- msgbx.hInstance = GetModuleHandle(0);
- msgbx.dwStyle = MB_USERICON;
- msgbx.hwndOwner = parent;
- return MessageBoxIndirectW(&msgbx);
- }
- void About(HWND hwndParent)
- {
- wchar_t message[1024] = {0};
- StringCchPrintfW(message, 1024, WASABI_API_LNGSTRINGW(IDS_ABOUT_TEXT),
- plugin.description, __DATE__, GetFLACVersion());
- DoAboutMessageBox(hwndParent,(wchar_t*)plugin.description,message);
- }
|