Quantcast
Channel: Windows Desktop Development for Accessibility and Automation forum
Viewing all articles
Browse latest Browse all 585

Why can not assert my custom control while using VS2015 enterprise?

$
0
0

I have implemented the Code-UI support for my custom control. It was working fine in vs2012,vs2013 but i can not assert my control when using the VS2015 enterprise version. 

The below code is the root code for triggering the provider for Coded UI assertion and playback, this code has been written in control WndProc method,

protected override void WndProc(ref Message msg)
{
    switch (msg.Msg)
    {
          case WM_GETOBJECT:
                msg.Result = AutomationInteropProvider.ReturnRawElementProvider(Handle, msg.WParam, msg.LParam, this.Provider);
                return;
    }
}

i have found some differentiation from the msg.WParam and msg.LParam value between VS2013 and VS2015 which was mentioned below,

 

VS2013                                                 VS2015

WParam – 1480                                      WParam – {0}

LParam – {0}                                          LPara – {-25}

Is this wrong, Please suggest me the solution.

Thanks,

Mohanraj G 


Viewing all articles
Browse latest Browse all 585

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>