1
0

wa2groupdefs.cpp 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #include <precomp.h>
  2. #include "wa2groupdefs.h"
  3. #include <bfc/string/StringW.h>
  4. //-----------------------------------------------------------------------------------------------
  5. Wa2Groupdefs::Wa2Groupdefs() {
  6. WASABI_API_SYSCB->syscb_registerCallback(this);
  7. }
  8. //-----------------------------------------------------------------------------------------------
  9. Wa2Groupdefs::~Wa2Groupdefs() {
  10. WASABI_API_SYSCB->syscb_deregisterCallback(this);
  11. }
  12. //-----------------------------------------------------------------------------------------------
  13. int Wa2Groupdefs::skincb_onBeforeLoadingElements() {
  14. StringW s;
  15. // header
  16. s = L"buf:"
  17. L"<?xml version=\"1.0\" encoding=\"UTF-16\" standalone=\"yes\"?>"
  18. L"<WinampAbstractionLayer version=\"0.8\">"
  19. L"<groupdef id=\"library.content.group\">"
  20. L" <windowholder hold=\"{6B0EDF80-C9A5-11d3-9F26-00C04F39FFC6}\" fitparent=\"1\" />"
  21. L"</groupdef>";
  22. // footer
  23. s += L"</WinampAbstractionLayer>";
  24. WASABI_API_SKIN->loadSkinFile(s);
  25. return 1;
  26. }