#pragma once #include #include "string\tstring.h" namespace SOUI { SStringW GenGuid(); SStringW XMLEscape(SStringW& strXml); int GetCodecInfo(const WCHAR* format, Gdiplus::ImageCodecInfo* p); int GetEncoderClsid(const WCHAR* format, CLSID* pClsid); SStringW GetTempPath(); double GetZoomRatio(SIZE normalSize, SIZE maxSize); } #define SUBSCRIBE(x,y,z) (x)->GetEventSet()->subscribeEvent(y,Subscriber(&z,this)) #define UNSUBSCRIBE(x,y,z) (x)->GetEventSet()->unsubscribeEvent(y,Subscriber(&z,this))