874 questions
0 votes
1 answer
75 views
GUI on top of all windows in windows that does not interfere with clicking on other windows
A difficult task has arisen, let's imagine a situation, I have a computer game and I want to let's say... draw your cursor using python, or some shapes. It doesn't matter why I need it, I just need it ...
2 votes
1 answer
259 views
Why does DISPLAY_DEVICE return me a Valid display details when no physical monitors are connected
I'm working on a Win32 desktop application in C++ and testing what happens when I retrieve display information using DISPLAY_DEVICE after disconnecting all physical displays. Surprisingly, the API ...
5 votes
3 answers
467 views
Win32: Application process remains in Task Manager after closing the window
Problem I’ve recently started learning Win32 programming with OpenGL and was experimenting with creating a basic window and testing various functions provided. However, I noticed that when I close ...
0 votes
1 answer
77 views
win32gui not setting foreground window
I have a project involving screenshotting another program, then opening that data in VSCode, so I need to switch windows back and forth. switching to the other program works, taking the screenshot ...
0 votes
0 answers
92 views
Python pywebview restoring minimized windows gives blank screen
Description of the Issue I am working on a Python-based application that uses pywebview for rendering the UI and win32gui to manage the window. My application ensures that only a single instance can ...
1 vote
1 answer
95 views
Pop up window to child window in win API C++?
I am making an application in WINAPI 32 using C++. I have a parent window and a child window and a check box to make the child window pop out of parent window or dock in if unchecked I use these ...
-1 votes
1 answer
58 views
How to automatically manage the height of an EDIT Win32 API Control
How to automatically manage the height of an EDIT Win32 API Control. I have created this EDIT control like this : hwndFileEdit = CreateWindow("EDIT", nullptr, WS_CHILD | WS_VISIBLE | ...
4 votes
0 answers
406 views
When I'm using BitBlt() to capture a screenshot of my explorer, the captured title bar is black and shifted position
I'm trying to capture a window by its HWND, like my explorer: But this is the result I get: This is the function I am using: def capture_window(hwnd): win32gui.ShowWindow(hwnd, win32con....
0 votes
0 answers
63 views
How to Get the Selected File Path from a File Dialog in Windows Using Python?
To implement a file preview feature similar to Quick Look on Windows, there are a few existing tools, each with their own issues: QuickLook: Slow file preview, occasional crashes, and lack of ...
0 votes
0 answers
458 views
Why does WDA_EXCLUDEFROMCAPTURE behave like WDA_MONITOR in this case?
I've written the following code to hide my Tkinter window from being visible in screenshots. I'm trying to make a transparent, click-through overlay that adds an effect to the area behind it, which I ...
0 votes
1 answer
113 views
Python extracting a high resolution icon from an EXE file
I'm trying to extract .ico files from executable files i found this code on the website import win32ui import win32gui import win32con import win32api ico_x = win32api.GetSystemMetrics(win32con....
1 vote
0 answers
86 views
Destroying a sibling window in WM_DESTROY handler yields to strange behaviour
I have a native Windows program that uses the Windows SDK. The program uses several child windows in a frame. When the frame is destroyed with DestroyWindow, WM_DESTROY messages are sent to the child ...
0 votes
0 answers
98 views
How can I screen capture under a blur overlay?
When using PyQt5 and YOLOv5 to detect humans and blur them with an overlay, a flickering issue arises. This happens because the screen capture picks up the overlay itself. The script then mistakenly ...
1 vote
1 answer
68 views
In many examples of Win32 API code found on this site and elsewhere, constants like "IDC_OUTPUT" appear. Where did these definitions come from?
When searching for examples of Win32 API code, I see many of examples of constant values with names like "IDC_OUTPUT" in resource scripts, resource.h files or defined at the top of apps, ...
1 vote
3 answers
385 views
How to Create Win32 API Menu Items with Icons?
I am trying to add an icon to a menu item in a Windows application using the Win32 API, but the icon is not showing up. I have followed the instructions from the Win32 API documentation, but it's ...