/*
* SolLibRegistry.h
* Copyright (c) 2011 Antillia.com TOSHIYUKI ARAI. ALL RIGHTS RESERVED.
*/
#pragma once
#include <sol\CurrentUserRegistry.h>
#ifndef _SOL_LIB_REGISTRY_
#define _SOL_LIB_REGISTRY_
#define _SOL_LIB_REGISTRY_DEFAULTFONT_KEY "Software\\Antillia\\SolLib\\DefaultFont"
namespace SOL {
class SolLibRegistry :public CurrentUserRegistry {
public:
/**
*/
SolLibRegistry()
:CurrentUserRegistry() {
}
public:
bool getDefaultFontPoint(int& size) {
bool rc = false;
//size = 8;
if (getInteger(_SOL_LIB_REGISTRY_DEFAULTFONT_KEY, "PointSize", size) ) {
rc = true;
}
if (size == 0) {
size = 9;
}
return rc;
}
public:
bool getDefaultFontFaceName(String& name) {
bool rc = false;
name = "";
if (getText(_SOL_LIB_REGISTRY_DEFAULTFONT_KEY, "FaceName", name) ) {
rc = true;
}
return rc;
}
};
}
#endif
|