Source code of Windows XP (NT5)
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

  1. // common methods between the old w3key and the new mdkey
  2. #include "stdafx.h"
  3. #include "KeyObjs.h"
  4. #include "CmnKey.h"
  5. #include "resource.h"
  6. //-------------------------------------------------------------
  7. CCmnKey::CCmnKey()
  8. {
  9. }
  10. //-------------------------------------------------------------
  11. void CCmnKey::SetName( CString &szNewName )
  12. {
  13. m_szName = szNewName;
  14. UpdateCaption();
  15. SetDirty( TRUE );
  16. }
  17. //-------------------------------------------------------------
  18. CString CCmnKey::GetName()
  19. {
  20. return m_szName;
  21. }
  22. //================ properties related methods
  23. //-------------------------------------------------------------
  24. // brings up the key properties dialog
  25. //-------------------------------------------------------------
  26. void CCmnKey::OnUpdateProperties(CCmdUI* pCmdUI)
  27. {
  28. pCmdUI->Enable( TRUE );
  29. }