关于Xtreme ToolkitPro 使用的一些问题
1、使用Xtreme ToolkitPro向导建立的MFC有什么不一样吗?我看编译出来的界面都一样的呀。
2、我看Xtreme ToolkitPro的示例工程,不知道这个示例是不是MFC,反正MFC的单文档,多文档,对话框,都不对。我把代码贴出来,大家看看是什么类型的。应该怎么建立这种工程。
头文件
CPP
2、我看Xtreme ToolkitPro的示例工程,不知道这个示例是不是MFC,反正MFC的单文档,多文档,对话框,都不对。我把代码贴出来,大家看看是什么类型的。应该怎么建立这种工程。
头文件
// Controls.h : main header file for the CONTROLS application
//
#if !defined(AFX_CONTROLS_H__D49F90D2_7DED_447E_941B_B556B714C9D2__INCLUDED_)
#define AFX_CONTROLS_H__D49F90D2_7DED_447E_941B_B556B714C9D2__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#ifndef __AFXWIN_H__
#error include 'stdafx.h' before including this file for PCH
#endif
#include "resource.h" // main symbols
/////////////////////////////////////////////////////////////////////////////
// CControlsApp:
// See Controls.cpp for the implementation of this class
//
class CControlsApp : public CWinApp
{
public:
CControlsApp();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CControlsApp)
public:
virtual BOOL InitInstance();
//}}AFX_VIRTUAL
// Implementation
//{{AFX_MSG(CControlsApp)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CONTROLS_H__D49F90D2_7DED_447E_941B_B556B714C9D2__INCLUDED_)
CPP
// Controls.cpp : Defines the class behaviors for the application.
//
#include "stdafx.h"
#include "Controls.h"
#include "PageButton.h"
#include "PageEdit.h"
#include "PageComboBox.h"
#include "PageScrollBar.h"
#include "PageProgressBar.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CControlsApp
BEGIN_MESSAGE_MAP(CControlsApp, CWinApp)
//{{AFX_MSG_MAP(CControlsApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CControlsApp construction
CControlsApp::CControlsApp()
{
// TODO: add construction code here,
// Place all significant initialization in InitInstance
XTPPaintManager()->SetTheme(xtpThemeOffice2003);
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CControlsApp object
CControlsApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CControlsApp initialization
BOOL CControlsApp::InitInstance()
{
AfxEnableControlContainer();
CXTPWinDwmWrapper().SetProcessDPIAware();
AfxOleInit();
// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable, you should remove from the following
// the specific initialization routines you do not need.
#if _MSC_VER <= 1200 // MFC 6.0 or earlier
#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
#endif // MFC 6.0 or earlier
CXTPResizePropertySheet dlg(AFX_IDS_APP_TITLE, 0, 0, xtpResizeNoVertical);
dlg.m_psh.dwFlags |= PSH_NOAPPLYNOW;
CPageButton pageButtons;
dlg.AddPage(&pageButtons);
CPageEdit pageEdit;
dlg.AddPage(&pageEdit);
CPageComboBox pageComboBox;
dlg.AddPage(&pageComboBox);
CPageProgressBar pageProgressBar;
dlg.AddPage(&pageProgressBar);
CPageScrollBar pageScrollBar;
dlg.AddPage(&pageScrollBar);
m_pMainWnd = &dlg;
int nResponse = (int)dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
// dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
// dismissed with Cancel
}
// Since the dialog has been closed, return FALSE so that we exit the
// application, rather than start the application's message pump.
return FALSE;
}
...全文
相关推荐
Xtreme.ToolkitPro.v15.3.1汉化补丁
Xtreme ToolkitPro v15.3.1 中文汉化文件 使用方法: 1. 将压缩包内文件解压,拷贝覆盖到安装目录即可 2. 运行Deploy.exe重新编译生成库 3. 注意备份
Codejock Xtreme ToolkitPro v13.2.1 中文汉化包:MFC 老项目界面中文化实战
在 MFC 开发中,商业控件库的本地化常涉及资源字符串、对话框模板和语言资源 DLL 的改造。其原理是通过替换或重编译资源模块,实现界面文本的多语言支持,技术价值在于提升软件国际化能力和用户体验。典型应用场景包括老项目维护、多语言交付和界面定制。Codejock Xtreme ToolkitPro v13.2.1 中文汉化包正是针对该版本资源模块的本地化方案,帮助开发者高效完成界面中文化,避免直接修改主程序带来的风险。
Xtreme ToolkitPro v18.5.0
Xtreme ToolkitPro v18.5.0
Xtreme ToolkitPro v12.0.2.rar
Xtreme ToolkitPro v12.0.2.rar
Xtreme-ToolkitPro-Ribbon:Xtreme ToolkitPro v15.3.1
Xtreme-ToolkitPro-Ribbon:Xtreme ToolkitPro v15.3.1


界面
