cancel
Showing results for 
Search instead for 
Did you mean: 

Get HWND of a windows control

TobiasArnold
Level 6
Hello all, we have a WIN32 application. In this application is a custom control which implements custom windows message in the WM_USER range (>0x0400). Are there any ways to send these messages (maybe a BluePrism SendMessage)? Or is it possible to get the HWND of the control (it is identified in application modeler)? So I can send the message by myself. Greetings -toarnold
1 REPLY 1

AndreyKudinov
Level 10
You can DllImport and call any win32 api in code stage: [DllImport(""user32.dll"", SetLastError = true)] static extern IntPtr FindWindowEx(IntPtr hwndParent, IntPtr hwndChildAfter, string lpszClass, string lpszWindow); IntPtr hwnd = FindWindowEx(IntPtr.Zero,IntPtr.Zero,WindowClass,WindowName);