L
L
likilix2016-06-30 18:50:51
Delphi
likilix, 2016-06-30 18:50:51

Why is the message map not working in C++Builder XE?

class TScheme : public TCustomControl
    { 
       typedef TCustomControl inherited;
       protected:
            void __fastcall WMLButtonDown(Messages::TWMMouse &Message)
            {
                ShowMessage("OK");
            }
                          BEGIN_MESSAGE_MAP
                             MESSAGE_HANDLER( WM_LBUTTONDOWN ,TWMMouse, WMLButtonDown );
            END_MESSAGE_MAP(TScheme)
            public:
             __fastcall virtual TScheme( Classes::TComponent* AOwner ) : inherited( AOwner )
             {

             }

The program stops running altogether.
I found the error END_MESSAGE_MAP(TScheme), but I need it like this END_MESSAGE_MAP(inherited)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question