Пример #1
0
bool
Profile::GetFont(const char *key, LOGFONT* lplf)
{
  assert(key != NULL);
  assert(key[0] != '\0');
  assert(lplf != NULL);

  const char *value = Get(key);
  return value != NULL && GetFontFromString(value, lplf);
}
Пример #2
0
bool
Profile::GetFont(const TCHAR *key, LOGFONT* lplf)
{
  TCHAR Buffer[128];

  assert(key != NULL);
  assert(key[0] != '\0');
  assert(lplf != NULL);

  if (Get(key, Buffer, sizeof(Buffer) / sizeof(TCHAR)))
    return GetFontFromString(Buffer, lplf);

  return false;
}