mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
820 B
37 lines
820 B
// common methods between the old w3key and the new mdkey
|
|
|
|
#include "stdafx.h"
|
|
#include "KeyObjs.h"
|
|
|
|
#include "CmnKey.h"
|
|
#include "resource.h"
|
|
|
|
|
|
//-------------------------------------------------------------
|
|
CCmnKey::CCmnKey()
|
|
{
|
|
}
|
|
|
|
//-------------------------------------------------------------
|
|
void CCmnKey::SetName( CString &szNewName )
|
|
{
|
|
m_szName = szNewName;
|
|
UpdateCaption();
|
|
SetDirty( TRUE );
|
|
}
|
|
|
|
//-------------------------------------------------------------
|
|
CString CCmnKey::GetName()
|
|
{
|
|
return m_szName;
|
|
}
|
|
|
|
//================ properties related methods
|
|
//-------------------------------------------------------------
|
|
// brings up the key properties dialog
|
|
//-------------------------------------------------------------
|
|
void CCmnKey::OnUpdateProperties(CCmdUI* pCmdUI)
|
|
{
|
|
pCmdUI->Enable( TRUE );
|
|
}
|
|
|