Page 1 of 1

MfcClassName

Posted: Fri Jul 24, 2009 2:13 pm
by atom
Hiya

Is it possible to get the MfcClassName property from an Element?
We have MFC controls that have the same ClassName but different MfcClassNames

Thanks

Re: MfcClassName

Posted: Wed Jul 29, 2009 1:18 pm
by Support Team
What do you mean with "MfcClassName"?

If you'd like to get the name of the MFC class that was used to create a window (e.g. CWnd or CDialog) then that functionality is currently not available in Ranorex. The problem is that as far as I know the only way to get that name is to inject into the automated process and get the CRuntimeClass of the object. If you know an easier way, like a window message one can send to the window and that returns the MfcClassName, then we could possibly build that functionality in.

Regards,
Alex
Ranorex Support Team

Re: MfcClassName

Posted: Wed Jul 29, 2009 3:40 pm
by atom
Ok Im not sure how its obtained but our previous automation tool (Compuware TestPartner) can get the MFCClassName property. In our AUT we have a base grid control class and two inherited classes... In the spy tool they come up with the same ClassName, so there's no way to distinguish them. However in TestPartner's spy tool they all have different mfc class names.

Re: MfcClassName

Posted: Wed Aug 05, 2009 4:47 pm
by Support Team
Could you just clarify what you mean by "MfcClassName"? You didn't confirm whether my guess was right that you would like to get "CWnd" or "CDialog" returned by that attribute.

Regards,
Alex
Ranorex Support Team