In this article, you will get an overview of the internal workings of DWinLib, a semi-simple wrapper for the Windows API.
|
// --------------------------------------------------------------------------------------- //
// The following is a class to store and recall various colors and other items in the //
// BareApp example. It can become much more substantial in a bigger program. //
// --------------------------------------------------------------------------------------- //
#include "PrecompiledHeaders.h"
#pragma hdrstop
#include "UIManager.h"
#include "DwlBaseWin.h"
#include "MonitorUtilities.h"
#include "DllWrap.h"
#include "DwlUtilities.h"
#include "Globals.h"
#include "WinColors.h"
using namespace WinColor;
// --------------------------------------------------------------------------------------- //
// General routines //
// --------------------------------------------------------------------------------------- //
UIManager::UIManager() {
setDefaultColors();
}
void UIManager::setDefaultColors() {
backgroundColorC = 0xF5F6F0;
}
// --------------------------------------------------------------------------------------- //
// Miscellaneous //
// --------------------------------------------------------------------------------------- //
int UIManager::scrollbarWidth() {
return GetSystemMetrics(SM_CXHSCROLL);
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.