Articles and Tutorials

Add controls inheritance to your application

Author: Kirk StowellPlatform: Visual C++ MFC

If you need to add new functionality to standard Command Bar controls
(CXTPControlButton, CXTPControlPopup, CXTPControlComboBox, CXTPControlEdit) you must create a new class
inherited from one of these and override some virtual methods. This tutorial describes how to create custom Combo Box.

Imagine that you need a combo box with uppercase letters only (When users enter a character it automatically becomes uppercase)

Create a new class inherited from CXTPControlComboBox

class CControlComboBoxEx: public CXTPControlComboBox
{
public:
};

To create custom edit we must override CreateEditControl method and add a new Edit Control inherited from CXTPControlComboBoxEditCtrl