windows-nt/Source/XPSP1/NT/inetsrv/iis/ui/itools/w3key/cmnkey.cpp
2020-09-26 16:20:57 +08:00

38 lines
820 B
C++

// 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 );
}