Beispiel #1
0
//
/// 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;
}
Beispiel #2
0
//
/// 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;
}
Beispiel #3
0
//
/// Throws the exception.
//
void
TXGdi::Raise(uint resId, HANDLE handle)
{
  TXGdi(resId, handle).Throw();
}