|
////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2004 Sergey Solozhentsev
// Author: Sergey Solozhentsev e-mail: salos@mail.ru
// Product: WTL Helper
// File: FunctionOptDlg.cpp
// Created: 21.12.2004 10:46
//
// Using this software in commercial applications requires an author
// permission. The permission will be granted to everyone excluding the cases
// when someone simply tries to resell the code.
// This file may be redistributed by any means PROVIDING it is not sold for
// profit without the authors written consent, and providing that this notice
// and the authors name is included.
// This file is provided "as is" with no expressed or implied warranty. The
// author accepts no liability if it causes any damage to you or your computer
// whatsoever.
//
////////////////////////////////////////////////////////////////////////////////
// This file was generated by WTL Dialog wizard
// FunctionOptDlg.cpp : Implementation of CFunctionOptDlg
#include "stdafx.h"
#include "FunctionOptDlg.h"
#include "../RegArchive.h"
#include ".\functionoptdlg.h"
extern LPCTSTR RegPath;
extern LPCTSTR FunctionName;
// CFunctionOptDlg
CFunctionOptDlg::CFunctionOptDlg() : m_bNewStyle(TRUE), m_Sort(TRUE),
m_bInline(FALSE), m_bUseAtlMisc(TRUE), m_bAllowDlgIdle(TRUE), m_bCheckMissingEndMap(TRUE),
m_bSolutionNewStyle(2), m_bSolutionEnabled(true)
{
}
CFunctionOptDlg::~CFunctionOptDlg()
{
}
LRESULT CFunctionOptDlg::OnInitDialog(HWND hwndFocus, LPARAM lParam)
{
CRegArchive RegArchive;
if (RegArchive.Open(HKEY_CURRENT_USER, RegPath))
{
LoadSettings(RegArchive, FunctionName);
m_ColorSetup.LoadSettings(RegArchive, FunctionName);
RegArchive.Close();
}
DoDataExchange();
if(!m_bSolutionEnabled)
{
GetDlgItem(IDC_CHECK_CURRENCT_SOLUTION).EnableWindow(FALSE);
}
return TRUE;
}
void CFunctionOptDlg::SaveOptions()
{
DoDataExchange(TRUE);
CRegArchive RegArchive;
if (RegArchive.Open(HKEY_CURRENT_USER, RegPath, true))
{
SaveSettings(RegArchive, FunctionName);
m_ColorSetup.SaveSettings(RegArchive, FunctionName);
RegArchive.Close();
}
}
LRESULT CFunctionOptDlg::OnColorsClicked(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled)
{
m_ColorSetup.DoModal();
return 0;
}
|
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.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here