Link to home
Start Free TrialLog in
Avatar of CodedK
CodedKFlag for Greece

asked on

Get the handle of a disabled item on another form.

Hi.

I have a code that get the handle of controls in another form when the mouse pass over them.

GetCursorPos(P);
Edit1.Text := IntToStr(WindowFromPoint(P));
GetClassName(StrToInt(Edit1.Text),Buff,255);
Edit2.Text := Buff;
Window Name :=GetWindowText(StrToInt(Edit1.Text),Buff,255);
If Buff <>Ā '' then Edit3.Text := buff;
.......
.......
This code doesnt work for items that are disabled...
Is it possible to see those controls that are disabled?

Thanks in advance.
ASKER CERTIFIED SOLUTION
Avatar of Russell Libby
Russell Libby
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CodedK

ASKER

Thanks very much ...
I'll give it a try tomorrow.
No problem, and no rush....

Russell
Avatar of CodedK

ASKER

Thank u very much Russell.
Works perfect... :)
I'll get back for the other question in a while..