SOL9 2.0 Class: SolLibRegistry

 SOL9 C++ Class Library  SOL9 Samples  SOL9 Tutorial  SOL9 FAQ  SOL9 ClassTree 

Source code

/*
 * 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

Last modified: 1 Feb 2012

Copyright (c) 2009-2012 Antillia.com ALL RIGHTS RESERVED.