Forum Discussion

Nimeshika's avatar
Nimeshika
Contributor
10 years ago

Validating color of WndClass AfxOleControl42 text object

Hi,

    I wanted to validate that the date is in Red color. The wnd class of text object is "AfxOleControl42". I could not use any of the properties I previously used for color Validation like Foreground().

     I am attaching the screen shot of the properties of the object spied.

   kindly help me with a way by which I can validate the color of text as red .

 

color.PNG

 

Thanking You,

 

Nimeshika

  • Hello, 

     

       Can anyone help me on this?

     

    Regards,

     

        Nimeshika

    • mes6073's avatar
      mes6073
      Contributor

      Is Tools | Options | Engines | General | Auto-correct Afx window class names option enabled? What language was used to create/compile the application under test? I ask because control classes that start with an 'Afx' prefix such as your AfxOleControl42, typically are indicative of components running in application compiled from C/C++ code. If this is the case, often times such controls are really nothing more than a static image or bitmap of the control state as it existed at the time the dialog containing the control was last rendered. Not sure if it will help, but take a look at Working with AFX controls