// /// Retrieves information about this cursor and copies it into the given ICONINFO structure. /// Throws TXGdi on failure. // ICONINFO TCursor::GetIconInfo() const { ICONINFO iconInfo; bool r = ::GetIconInfo(GetHandle(), &iconInfo); if (!r) throw TXGdi(IDS_GDIFAILURE, GetHandle()); return iconInfo; }
// /// Returns information about this font object. /// Throws TXGdi on failure. // LOGFONT TFont::GetObject() const { LOGFONT lf; bool r = TGdiObject::GetObject(sizeof(lf), &lf) != 0; if (!r) throw TXGdi(IDS_GDIFAILURE, Handle); return lf; }
// /// Throws the exception. // void TXGdi::Raise(uint resId, HANDLE handle) { TXGdi(resId, handle).Throw(); }