ResourceExport.h
上传用户:szled88
上传日期:2015-04-09
资源大小:43957k
文件大小:2k
源码类别:

对话框与窗口

开发平台:

Visual C++

  1. // ResourceExport.h: interface for the CResourceExport class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_RESOURCEEXPORT_H__4CA1236F_BE43_422F_ADF4_434D7912760E__INCLUDED_)
  5. #define AFX_RESOURCEEXPORT_H__4CA1236F_BE43_422F_ADF4_434D7912760E__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. struct DIRECTORY;
  10. class CResourceExport  
  11. {
  12. public:
  13. CResourceExport();
  14. virtual ~CResourceExport();
  15. void ExportDll(CXTPPropExchangeXMLNode* pResources, LPCTSTR lpszOutput);
  16. void ExportRc(CXTPPropExchangeXMLNode* pResources, LPCTSTR lpszOutput);
  17. private:
  18. void ExportDllStringTable(DIRECTORY* pRoot);
  19. void ExportDllMenus(DIRECTORY* pRoot);
  20. void ExportDllMenuItems(CMemFile* pFile, CXTPPropExchange* pResourceMenu);
  21. void ExportDllDialogs(DIRECTORY* pRoot);
  22. void ExportDllDialogControls(CMemFile* pFile, CXTPPropExchange* pResourceDialog);
  23. private:
  24. void ExportRcStringTable(CFile& file);
  25. void ExportRcMenus(CFile& file);
  26. void ExportRcMenuItems(CFile& file, DWORD dwParent, CXTPPropExchange* pResourceMenu, const CString& strIndent);
  27. void ExportRcDialogs(CFile& file);
  28. void ExportRcDialogControls(CFile& file, DWORD dwParent, CXTPPropExchange* pResourceDialog);
  29. private:
  30. void ExchangeString(CXTPPropExchange* pPX, LPCTSTR pszPropName, LPSTR lpString);
  31. int GetDialogControlsCount(CXTPPropExchange* pResourceDialog);
  32. void AlignFile(CMemFile* pFile, DWORD dwPosition);
  33. protected:
  34. CXTPPropExchangeXMLNode* m_pResources;
  35. XTP_RESOURCEMANAGER_LANGINFO* m_pLanguageInfo;
  36. };
  37. #endif // !defined(AFX_RESOURCEEXPORT_H__4CA1236F_BE43_422F_ADF4_434D7912760E__INCLUDED_)