In App class
HCURSOR hCursor = LoadCursor(IDC_CURSOR_TVSET);
:SetCursor(((CApp*)AfxGetApp())->hCursor);
In other class:
HINSTANCE hInstant = AfxGetInstanceHandle();
HCURSOR hCursor = LoadCursor(hInstant,MAKEINTRESOURCE(IDC_CURSOR_TVSET));
::SetCursor(hCursor);
沒有留言:
張貼留言