MCPcopy Create free account
hub / github.com/SOUI2/soui / Init

Method Init

demo/uianimation/UiAnimationWnd.cpp:58–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 }
57
58 HRESULT CUiAnimation::Init()
59 {
60 SASSERT(!getSingletonPtr());
61
62 // Create Animation Timer
63 SComPtr<IUIAnimationTimer> pAnimationTimer;
64
65 HRESULT hr = CoCreateInstance(
66 __uuidof(UIAnimationTimer),
67 NULL,
68 CLSCTX_INPROC_SERVER,
69 IID_PPV_ARGS(&pAnimationTimer)
70 );
71 if (SUCCEEDED(hr))
72 {
73 //创建一个UIAnimation的单例
74 new CUiAnimation(pAnimationTimer);
75 }
76
77 return hr;
78 }
79
80 void CUiAnimation::Free()
81 {

Callers 7

_tWinMainFunction · 0.45
OnPaintMethod · 0.45
SetIconsMethod · 0.45
LoadSkinFormZipMethod · 0.45
LoadSkinMethod · 0.45
MakeCacheAphaMethod · 0.45
CreateQrImgMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected