HICON hIcon = AfxGetApp()->LoadStandardIcon(IDI_INFORMATION);
ICONINFO iconinfo;
GetIconInfo(hIcon, &iconinfo);
ICONINFO cursorinfo;
cursorinfo = iconinfo;
cursorinfo.fIcon = FALSE;
if(m_hCursor)
{
::DestroyCursor(m_hCursor);
}
m_hCursor = ::CreateIconIndirect(&cursorinfo);
::DeleteObject(iconinfo.hbmMask);
::DeleteObject(iconinfo.hbmColor);
::SetCursor(m_hCursor);