Hi,
I'm coding an application that hooking mouse, and do the following:
1- User select text within TextBox/Edit ....
2- User click on mouse right click,
3- My application recognize the mouse right click, and start process:
3.1- Get all information about form , components ...
3.2- Get the selected text
3.3- lets say display selected text
So far I successfully do all the following steps :
1- Get Handel of component by : hWnd = WindowFromPoint(point); and pWnd =
GetParent(hWnd); ...
2- GetClassName(hWnd, className, className.Capacity);
3-//get process ID - uint dwPID;GetWindowThreadProcessId(hWnd, out dwPID);
4-//get ctrl ID - IntPtr nCtrlID = GetWindowLongPtr(new
HandleRef(this,hWnd), GWL_ID);
What now? how can I make this "nCtrlID" to be a control that give me
SelectedText property ?
I'm stuck here, please help me .