2012-12-19 09:30:18 +00:00
|
|
|
/****************************************************************************
|
|
|
|
* *
|
2015-11-10 05:21:49 +00:00
|
|
|
* Project64 - A Nintendo 64 emulator. *
|
2012-12-19 09:30:18 +00:00
|
|
|
* http://www.pj64-emu.com/ *
|
|
|
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
|
|
|
* *
|
|
|
|
* License: *
|
|
|
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
|
|
|
* *
|
|
|
|
****************************************************************************/
|
|
|
|
#pragma once
|
2008-11-14 20:51:06 +00:00
|
|
|
|
|
|
|
class CModifiedEditBox :
|
|
|
|
public CEdit
|
|
|
|
{
|
|
|
|
bool m_Changed;
|
|
|
|
bool m_Reset;
|
|
|
|
HFONT m_BoldFont;
|
|
|
|
HFONT m_OriginalFont;
|
2008-12-04 10:41:51 +00:00
|
|
|
HWND m_TextField;
|
|
|
|
bool m_bString;
|
2008-11-14 20:51:06 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
// Constructors
|
2008-12-04 10:41:51 +00:00
|
|
|
CModifiedEditBox(bool bString = true, HWND hWnd = NULL);
|
2008-11-14 20:51:06 +00:00
|
|
|
~CModifiedEditBox();
|
|
|
|
|
|
|
|
void SetReset ( bool Reset );
|
|
|
|
void SetChanged (bool Changed);
|
|
|
|
stdstr GetWindowText();
|
2008-12-04 10:41:51 +00:00
|
|
|
void SetTextField (HWND hWnd);
|
2008-11-14 20:51:06 +00:00
|
|
|
|
|
|
|
inline bool IsChanged ( void ) const
|
|
|
|
{
|
|
|
|
return m_Changed;
|
|
|
|
}
|
|
|
|
inline bool IsReset ( void ) const
|
|
|
|
{
|
|
|
|
return m_Reset;
|
|
|
|
}
|
2008-12-04 10:41:51 +00:00
|
|
|
inline bool IsbString ( void ) const
|
|
|
|
{
|
|
|
|
return m_bString;
|
|
|
|
}
|
2008-11-14 20:51:06 +00:00
|
|
|
};
|
|
|
|
|