Home > Net >  Between the two application for help through DLL reflection message code changes?
Between the two application for help through DLL reflection message code changes?

Time:10-05

I am an amateur, want to use c # write a interact through DLL reflection and MT5 trading panel, found inside a DLL that others have written on the Internet have finished a lot of control events, but I'd like to add a toolbar menu events themselves do not, thank you!!!!!

Private void SubscribeOnElements Form (Form)
{
Form. FormClosing +=OnClosingForm;
//- define resolve events
Dictionary Types_and_events=new Dictionary (a);
Types_and_events. Add (typeof (VScrollBar), new List () {vscrol=& gt; ((VScrollBar) vscrol). Scroll +=OnScroll});
Types_and_events. Add (typeof (Button), the new List () {button=& gt; ((Button) Button). Click +=OnClick});
Types_and_events. Add (typeof (Label), new List ());
Types_and_events. Add (typeof (TextBox), new List () {text_box=& gt; Text_box LostFocus +=OnLostFocus,
Text_box=& gt; Text_box. KeyDown +=OnKeyDown});
Types_and_events. Add (typeof (CheckBox), new List () {check_box=& gt; ((CheckBox) check_box). CheckStateChanged +=OnChecked});
Types_and_events. Add (typeof (TabControl), new List () {tab_box=& gt; (TabControl tab_box). SelectedIndexChanged +=OnTabChanged});
Types_and_events. Add (typeof (RadioButton), new List () {radio_box=& gt; (RadioButton radio_box). CheckedChanged +=OnRadioBtnCheckedChange});
Types_and_events. Add (typeof (ComboBox), new List () {combo_box=& gt; ((ComboBox) combo_box). SelectedIndexChanged +=OnComboBoxChange,
Combo_box=& gt; ((ComboBox) combo_box). The TextChanged +=OnTextChange});
Types_and_events. Add (typeof (NumericUpDown), new List () {numeric=& gt; ((NumericUpDown) numeric). ValueChanged +=OnNumericChanged});
Types_and_events. Add (typeof (DateTimePicker), new List () {numeric=& gt; ((DateTimePicker) numeric). ValueChanged +=OnDateTimePickerChanged});
//-- 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 points

CodePudding 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 detail

CodePudding 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
  •  Tags:  
  • C#
  • Related