hwnd Questions
2
Solved
I am creating my first WinUI 3 desktop application. I have a NavigationView on my MainWindow.
I have 9 different pages that I navigate to via the frame in the NavigationView.
One of the pages is fo...
Recalcitrant asked 11/3, 2022 at 0:13
6
Solved
We're building a JavaFX application in Windows, and we want to be able to do some things to manipulate how our application appears in the Windows 7/8 taskbar. This requires modifying a Windows vari...
6
Solved
Can someone tell me how to get the handle of a Windows console application in C#? In a Windows Forms application, I would normally try this.Handle.
Cusick asked 14/8, 2009 at 12:23
3
This short MSDN documentation says CoreWindow has ICoreWindowInterop that obtains the handle HWND to the CoreWindow. But I cannot find references on how to get it (C#). Help, please.
https://msdn....
5
I'm working in an IDE which creates a hwnd and its respective WndProc LRESULT CALLBACK. I need to change the WndProc to a custom one.
I've read that SetWindowLong would do the job, but I can't find...
12
Solved
I create a global hot key to show a window by PInvoking RegisterHotKey(). But to do this I need that window's HWND, which doesn't exist until the window is loaded, that means shown for the first ti...
5
Solved
Using the Win32 API (in C, but that's inconsequential), how can I tell if a given window (identified by HWND) has focus?
I'm hooking an application watching for an event, and when that event occurs...
4
Solved
How can I get the HWND of application, if I know the process ID? Anyone could post a sample please? I'm using MSV C++ 2010.
I found Process::MainWindowHandle but I don't know how to use it.
1
Solved
I am trying to get properties from an HWND. I'm used information from Using Window Properties, but the example below is not working for me. I'm getting an error while compiling my code.
argument...
4
Solved
I've been able to set local hotkeys like this
RegisterHotKey(hwndDlg, 100, MOD_ALT | MOD_CONTROL, 'S');
How can I set the hotkey to be global? I want it to be there even when my window is hidde...
Reaper asked 30/11, 2009 at 16:24
1
Solved
I'm passing my HWND to a sub-process so it can send me messages back on its progress. Occasionally I never receive any messages from the sub-process.
While investigating, I've found that GetSafeHwn...
4
Solved
Alright so i need to open a .txt file that will be created in the same file as the program.
I would like to use ShellExecute(); to do this and i have done a lot of research on it and i just cant ...
Minion asked 13/6, 2012 at 2:38
2
Solved
Somewhere in my application (along with 3rd party libraries of code) is a window procedure that is preventing Windows from:
logging off
shutting down
restarting
I found one spot in my code wher...
4
In one of the answers to Get HWND on windows with Qt5 (from WId) it is suggested to employ QPlatformNativeInterface in order to recover the native window handler.
To access the QT header though th...
3
Solved
I'm trying to draw semi-transparent rectangles on an invisible HWND. However, clearing the window with ID2D1HwndRenderTarget::Clear just makes the entire window black, so when I draw rectangles on ...
Pulvinus asked 8/4, 2010 at 20:37
3
I'm trying to use function SetForegroundWindow(HWND hWnD). I have some handles but it's not working as parameter of above function. My handle is a thread and I want to run it in foreground.
What a...
1
I think I have a fairly simple question. I'm looking for a method to get the hwnd for an excel input box. I'm automating a process and I'm noticing that a type 8 input box is consistently underneat...
4
Solved
I'm using the System.Windows.Controls.WebBrowser for various things in my app and I've noticed that adorners are cut off when they are supposed to appear over a WebBrowser. I realize that the WebBr...
Finlay asked 17/2, 2010 at 19:4
4
Solved
How do I, using C# or C++, insert text into the textbox of another application?
I did this a long time ago and seemed to remember something about using the applications HWND. But since that change ...
Jemine asked 27/12, 2010 at 13:58
2
Solved
I am trying to get the active window's name as shown in the task manager app list (using c#).
I had the same issue as described here.
I tried to do as they described but I have issue while the focu...
Koopman asked 5/3, 2014 at 15:17
5
Solved
From a couple of preliminary tests it seems that EnumWindows always returns windows in reverse instantiation order, i.e. most recently instantiated window first. Is that a valid observation? If so,...
Celibate asked 17/11, 2008 at 16:9
1
Are there any well known tools or plugins I can use to get properties about HWNDs while debugging / stepping through Visual Studio? I know I can use Spy++ for these things, but it's cumbersome to d...
Beginner asked 12/3, 2012 at 22:56
2
Solved
In C#, this SendMessage function raise up volume successfull:
[DllImport("user32.dll")]
public static extern IntPtr SendMessage(IntPtr hWnd, int Msg, int wParam, int lParam);
SendMessage(Handle, ...
Andante asked 19/4, 2013 at 17:27
1
Solved
Which parts of the communication with TWAIN can be put into another thread, e.g. a BackgroundWorker?
Or:
Is it possible to split the loop that handles the image transfer?
Some scanner drivers sc...
Noh asked 15/12, 2010 at 18:10
4
Solved
I am developing a python application and I want to get the HWND of each open windows. I need the name of the windows and the HWND to filter the list to manage some specifics windows, moving and res...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.