MfcClassName

Ask general questions here.
atom
Posts: 357
Joined: Sun Dec 07, 2008 11:14 pm
Location: Dublin, Ireland

MfcClassName

Post by atom » Fri Jul 24, 2009 2:13 pm

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: MfcClassName

Post by Support Team » Wed Jul 29, 2009 1:18 pm

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
.
Image

atom
Posts: 357
Joined: Sun Dec 07, 2008 11:14 pm
Location: Dublin, Ireland

Re: MfcClassName

Post by atom » Wed Jul 29, 2009 3:40 pm

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.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: MfcClassName

Post by Support Team » Wed Aug 05, 2009 4:47 pm

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
.
Image