Codejock ToolkitPro MFC 15.2.1: A Comprehensive Collection of MFC Components
Codejock Software is a leading provider of components and controls for Visual C++ MFC and ActiveX COM technologies. Their award-winning ToolkitPro combines 11 of their most popular components into one package, providing Windows developers with a robust set of tools to create professional and modern applications.
ToolkitPro MFC 15.2.1 is the latest version of this product, released on October 21, 2020. It includes several bug fixes and enhancements, such as improved support for Visual Studio 2019, improved docking pane performance, improved chart rendering and animation, improved skin framework compatibility with Windows 10, and more.
Some of the key features of ToolkitPro MFC 15.2.1 are:
Command Bars: customizable menus, toolbars and ribbons that give your application a professional and modern interface.
Controls: ready-to-use components that have been thoroughly designed and tested, such as buttons, edit controls, list controls, tree controls, etc.
Chart: easy to use and can be added to your project with only a few lines of code to create any charting style, such as bar, line, pie, area, etc.
Calendar: sophisticated Outlook style calendar and date selection components that support multiple views, appointments, reminders, etc.
Docking Pane: allows you to create tear off tabs and auto hide windows that allow for a more manageable application workspace.
Property Grid: provides an easy to create hierarchical list of editable properties and represent any data type or sub-item.
Grid Control: includes an easy to create Office style report to group and sort data in a flat or hierarchical format.
Shortcut Bar: has several options to choose from including expandable navigation bar and list, client pane, style themes, etc.
Syntax Edit: provides users with a highly sophisticated text editor control that supports syntax colorization and features.
Skin Framework: incorporates an application skinning framework technology that can be used with Windows themes.
Task Panel: an Office task panel similar to what is seen in Microsoft Office, Explorer and Visual Studio tool box.
If you are looking for a comprehensive collection of MFC components that can help you create professional and modern applications with Visual C++, you should definitely check out Codejock ToolkitPro MFC 15.2.1. You can download a free trial from their website[^1^] or buy it online[^1^]. You can also find more information about their products, support options and news on their website[^2^].
In this article, we will show you some examples of how you can use Codejock ToolkitPro MFC 15.2.1 to create various types of applications with Visual C++. We will use Visual Studio 2019 as our development environment, but you can use any version of Visual Studio that is supported by ToolkitPro.
Creating a Ribbon Application
One of the most popular features of ToolkitPro is the Command Bars component, which allows you to create customizable menus, toolbars and ribbons for your application. Ribbons are a modern way of organizing commands and options in a tabbed interface, similar to what you see in Microsoft Office applications.
To create a ribbon application with ToolkitPro, you need to follow these steps:
Create a new MFC project in Visual Studio and select the Ribbon Application option.
Add the ToolkitPro library and header files to your project. You can find them in the ToolkitPro installation folder.
Include the #include \"CommandBars/XTPCommandBars.h\" header file in your main application header file.
In your main application class, declare a member variable of type CXTPCommandBars, which is the main class for managing command bars.
In your main application class constructor, initialize the command bars member variable by calling m_pCommandBars = new CXTPCommandBars();.
In your main application class InitInstance method, call m_pCommandBars->SetSite(this); to set the owner window for the command bars.
In your main frame class, declare a member variable of type CXTPRibbonBar, which is the class for creating ribbons.
In your main frame class constructor, initialize the ribbon bar member variable by calling m_wndRibbonBar.Create(this);.
In your main frame class OnCreate method, call m_wndRibbonBar.LoadToolBar(IDR_RIBBON); to load the ribbon resource from the resource file.
In your resource file, add a ribbon resource with the ID IDR_RIBBON and design it using the Visual Studio resource editor. You can add tabs, groups and buttons to your ribbon and assign commands and icons to them.
That's it! You have created a basic ribbon application with ToolkitPro. You can run your project and see how it looks like. You can also customize your ribbon further by using the various methods and properties of the CXTPRibbonBar class and its sub-classes. ec8f644aee