Get HWND of a windows control
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-09-18 06:41 PM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-09-18 06:46 PM
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);
