Added !SetWallpaper bang.

Usage: !SetWallpaper [File] (Style)
where style is CENTER, TILE, STRETCH, FIT, or FILL. FIT/FILL available only on Windows 7 (and higher).
This commit is contained in:
Birunthan Mohanathas
2012-02-04 15:54:30 +00:00
parent 913cf05a18
commit 405976b7a6
4 changed files with 121 additions and 9 deletions

View File

@ -221,6 +221,7 @@ private:
void Bang_ToggleConfig(const WCHAR* arg);
void Bang_DeactivateConfigGroup(const WCHAR* arg);
void Bang_SetClip(const WCHAR* arg);
void Bang_SetWallpaper(const WCHAR* arg);
void Bang_SkinMenu(const WCHAR* arg);
void Bang_TrayMenu();
void Bang_WriteKeyValue(const WCHAR* arg, CMeterWindow* meterWindow);
@ -309,17 +310,11 @@ private:
GlobalConfig m_GlobalConfig;
};
#ifdef LIBRARY_EXPORTS
#define EXPORT_PLUGIN __declspec(dllexport)
#else
#define EXPORT_PLUGIN __declspec(dllimport)
#endif
extern "C"
{
EXPORT_PLUGIN int Initialize(HWND hWnd, HINSTANCE hInstance, LPCWSTR lpCmdLine);
EXPORT_PLUGIN void Quit();
EXPORT_PLUGIN void ExecuteBang(LPCTSTR szBang);
int Initialize(HWND hWnd, HINSTANCE hInstance, LPCWSTR lpCmdLine);
void Quit();
void ExecuteBang(LPCTSTR szBang);
}
#endif