Question: Take TPAGEControl as an example, the program requires "left button double click" to close a activation page [such as Tencent Browser]. Because the control does not define the mouse to double-click the event, only you add a message mapping for the control. The mapped message is: Left button double click (WM_LBUTTONDBLCLK). This paper uses the method of derived control of the runtime, which is simpler than the method of making a separate control, which is simpler.
// --------- Unit header ------------------------------------ ---------------------- Class TPAGECONTROLEX: Public TPAGECONTROL {// TPAGECONTROL 公派 类: Added left click Double-click Message Mapping Protected: Void __fastcall ONLTDBCLICK (TMESSAGE & MSG); begin_MESSAGE_MAP VCL_MESSAGE_HANDLER (WM_LBUTTONDBLCLK, TMESSAGE, ONLEFTDBCLICK) end_MESSAGE_MAP (TPAGECONTROL)