Private void SubscribeOnElements Form (Form)
{
Form. FormClosing +=OnClosingForm;
//- define resolve events
Dictionary
Types_and_events. Add (typeof (VScrollBar), new List
Types_and_events. Add (typeof (Button), the new List
Types_and_events. Add (typeof (Label), new List
Types_and_events. Add (typeof (TextBox), new List
Text_box=& gt; Text_box. KeyDown +=OnKeyDown});
Types_and_events. Add (typeof (CheckBox), new List
Types_and_events. Add (typeof (TabControl), new List
Types_and_events. Add (typeof (RadioButton), new List
Types_and_events. Add (typeof (ComboBox), new List
Combo_box=& gt; ((ComboBox) combo_box). The TextChanged +=OnTextChange});
Types_and_events. Add (typeof (NumericUpDown), new List
Types_and_events. Add (typeof (DateTimePicker), new List
//-- Recursive subscribe on controls,
SubscribeOnControls (types_and_events, form);
}
CodePudding user response:
Only create the child window will capture the child window, the menu itself is usually not capture child Windows, but you can use SendMessage send main window menu shortcuts characters to perform the function of the menu,CodePudding user response:
How to modify the reward points? Has been prepaid phone is not successful, good filling values don't know how to modify the reward pointsCodePudding user response:
Thank you reply, because the design needs, the interface is not written in the form of code, and message reflection is written in this DLL, MT5 call DLL in static method starts with a toolbar menu window, I really don't know how to complete the code, can I trouble you to point in more detailCodePudding user response:
Want to change the method in this paper, the my question, do not know how to post operation without satisfaction, the administrator, please delete this post, I to change the way for help