402 questions
0
votes
0
answers
38
views
Delphi FMX Form set parent HWND
I'm trying to write a CLAP plugin - a library that is used by another application. The API provides a parent HWND to embed the form of your plugin into the forms of the host application.
With VCL ...
0
votes
0
answers
82
views
Rust Get Text From EDIT "CreateWindowExW"
I am using windows API to make a window that acts as a server and starts and shuts down on the port I specify in the “PORT” cell.
This code is using the windows crate (0.58.0)
The code for the “...
0
votes
1
answer
297
views
How to get windows handle from JFrame
I have an application which is a GUI written using Java Swing. Within the app I'm using a rest API which requires a window handle (HWND) as one of it's parameters (the API creates a JPG and displays ...
-1
votes
1
answer
228
views
get Window Name / PID / hwnd of android emulator with ppadb
I am trying to get the window name of bluestacks android emulators, which aren't static.
The PID would also be enough since the window names are obtainable with it, but device.get_pid just returns:
&...
1
vote
1
answer
1k
views
Getting a WindowId from a window handle (HWND) without Windows App SDK
I want to get a WindowId from a HWND from F# and .NET so I can call other WinRT APIs which want a WindowID. I think this is done in WIL:
inline winrt::Windows::UI::WindowId GetWindowIdFromWindow(...
0
votes
0
answers
47
views
WinUI 3: WinRT.Interop.WindowNative.GetWindowHandle(this) crashes application [duplicate]
I have a button in my Xaml code like this:
<Button x:Name="PickFolderButton" Click="PickFolderButton_Click"/>
and the code behind is this:
private async void ...
0
votes
1
answer
111
views
Why does the window handle not get stored properly?
First you get a MCWE. You know probably better than me how to use it but I would recommend to build a C++ project from scratch and add it then. It uses Unicode character set, make sure to use windows ...
1
vote
2
answers
599
views
HGLRC OpenGL rendering context - How to indicate the version of the OpenGL
How I'm creating my rendering context using wgl :
//Device
HDC hdc = GetDC(hWnd);
HGLRC hRC = wglCreateContext(hdc);
How/where/when should I change the version of the OpenGL context?
Is there a ...
0
votes
1
answer
361
views
Right way to implement SourceInitialized in wpf
Recently I working on WPF application where I was getting exception related to Out of memory error.
Here is the exception :
System.OutOfMemoryException: Insufficient memory to continue the execution ...
1
vote
0
answers
1k
views
Have Direct2D, DXGI SwapChain, HWND transparency, all working at once in C++, without XAML or similar
Context
I have 2 big projects I'm working on: a game engine, and a file explorer replacement. My focus is Windows only. I know they're 2 huge things I'll likely never complete, I just enjoy coding ...
0
votes
1
answer
606
views
Changing opacity of child window without using WS_EX_LAYERED
I have a window and then I create a child window using the following code:
HWND childHwnd = CreateWindowExA(WS_EX_LAYERED, "Test", "Test", WS_CHILD, 0, 0, 500, 500, mainHwnd, NULL, ...
-1
votes
1
answer
972
views
Given an HWND, how can I cast to a String in C++?
I need to write a program in C++ that queries the OS for running Windows, find a Window with a specific window title, and return the Native Window Handle value as a String.
So far, I've figured out ...
1
vote
0
answers
14
views
How can I capture the HWND of the last opened Explorer window before my PowerShell script console opens? [duplicate]
I have a script that is invoked via right click context menu in Windows Explorer. I'm not sure if this is possible, but I want to capture the HWND of the window from which I invoked the script. Right ...
0
votes
0
answers
79
views
How to get the contents of the console window, if FarManager is running in it
I have an application that use a CreateProcess() function and create a new console window with FarManager run inside. The FarManager is installed on the computer and registered in the environment ...
0
votes
0
answers
134
views
Selecting an external Window & Push Values/Keys to it using VB.NET
I am trying to send keystrokes (TAB) a couple of times within an external window from a vb.net program.
How can I select/activate the window (for example, how would I do it if it's a Word document/ I ...
0
votes
1
answer
622
views
How to pass an HWND as a GLFWwindow*?
I have an HWND that I have been using as the target of OpenGL draw operations, and it is necessary that it be an HWND and not a GLFWwindow for other utilities of the application I'm making. The ...
1
vote
2
answers
3k
views
How to get the Window handle (hwnd) by Executable path or name?
Is there a way to get the hwnd-object from a specific window by only providing the executable path or name?
Like GetForegroundWindow() from win32gui but not just the foreground window.
Id imagine ...
1
vote
1
answer
388
views
openCV - Using matchTemplate() from a window using hWND C++
I am running an infinite loop and every frame I'm taking a screenshot from a desired window and turning it into a Mat then searching that Mat for a template image using matchTemplate. If I read in the ...
5
votes
0
answers
631
views
Win32: Enumerate real windows in real activation order
I am beyond tired researching this topic at this point. There are a million APIs in the system to achieve part of this, i.e. enumerate all windows, but nothing about how to get them in the real z-...
0
votes
0
answers
512
views
How to paint on wallpaper above icons? Alternative to progman 0x052C
I created a simple windows app that i want to pin to my desktop similar to a wallpaper widget. I am using a nodeJS module that is almost doing everything i want. Essentially from my limited ...
0
votes
1
answer
939
views
Simplest way to read MFC messages from HWND?
I am trying to use an api library with functions that send messages to a server, then receive back messages. One of the function's arguments is a HWND and the library document says the message will be ...
1
vote
1
answer
746
views
win32: is there a WM sent to the child when parent window is destroyed, or orphans the child?
I'm developing a plugin so I don't own the parent window, but it would help me workaround an issue if i can figure out when the parent window of my window is destroyed (or alternatively when it ...
0
votes
0
answers
85
views
Show same dialog twice in nested tab structure
In a nested tab structure of type CMFCTabCtrl(e.g. CMFCTabCtrl as Tab in parent CMFCTabCtrl), how can I show a parents tab inside the parent tab and a child CMFCTabCtrl tab?
ParentTab1 ParentTab2 ...
0
votes
0
answers
340
views
Get threadId of explorer.exe or get threadId by processName
I'm trying to get the threadId of explorer.exe. I'm not quite sure how to go about doing that. I've looked into win32 apis for functions of appropriate names, but I haven't quite found what I'm ...
-2
votes
2
answers
487
views
What's the format value from the HWND returned from CreateWindow()?
Is this a memory address ranging to (theorically) 2^32-1 on 32-bit machine?
The reason I'd like to know that is I'm trying to somehow associate a HWND returned by CreateWindow() to a class instance, ...