Questions tagged [win32gui]

NOT FOR GENERAL WIN32 PROGRAMMING QUESTIONS (use [winapi])! This is ONLY for questions about the "Win32GUI" library, which is a C++ library for Win32 GUI programming.

Win32GUI is a C++ generic library for Win32 GUI programming.

It features real GUI RAII (Resources Acquisition Is Initialization), event handling, easy manipulation of standard controls, thread-safety and simple menu handling.

865 questions
-1
votes
1 answer

Python - How do I get the window handle from my OWN application

I am using win32gui. With FindWindow and FindWindowEx I am able to get the handle of any window, resize, setpos etc. but how am I able to grab my own windows handle? I was not able to identify it using FindWindow and passing the class or title. Is…
YAWL
  • 27
  • 7
-1
votes
1 answer

How to install win32gui on anaconda on macOS

I am getting the error 'ModuleNotFoundError: No module named 'win32gui''. Please brief me the instructions on how can I resolve this issue on my anaconda on mac.
-1
votes
1 answer

Why I got WM_CLOSE message after clicking the button?

I just want to click the button and change the text of the button, however, I would get the WM_CLOSE message, it confused me. const wchar_t *g_szClassName = L"myWindowClass"; HWND hwnd; HWND hButtonLine; LRESULT CALLBACK WndProc(HWND hwnd, UINT…
pigLoveRabbit520
  • 513
  • 7
  • 19
-1
votes
1 answer

How to make plot from file WinAPI

We have txt file with numbers: 60 0 120 4 180 20 60 -28 180 28 30 -28 30 28 30 -28 60 0 I need a plot with first column in horizontal coordinate line and the second column in vertical coordinate line like on this picture. But now I have smth like…
user17119888
-1
votes
1 answer

VS2010 application doesn't run on another computer

I created a Win32 application (WinForm) is VS2010. When I click the application icon in the Debug (or Release) directory, the form is shown and the project runs normally (on Windows 7). When I move this "icon" to another computer, and click it, it…
DudiD
  • 215
  • 2
  • 7
  • 16
-1
votes
1 answer

How to compile a python file with win32process(/api/gui) imports?

I was trying to compile a python script to a .exe using pyinstaller but no matter what I do I just can't seem to get it to work, it compiles it, the .exe gets created, but when I run it, it throws the following exception: Traceback (most recent call…
GoldonPt
  • 21
  • 1
  • 4
-1
votes
1 answer

The procedure of control subclassed does not work. Why?

I recently tried to subclass a control using the SetWindowSubclass() function. And to my surprise, it worked smoothly at first. I created the control procedure, but it doesn't receive messages like WM_LBUTTONDOWN or WM_KEYDOWN, and I don't…
-1
votes
1 answer

WebView2 - after call function 'navigate2', waiting time too long

I use WebView2 to create an integrated browser compatible with Edge. To construct my webview, I added four listeners who are called when we call the function…
user2274060
  • 896
  • 5
  • 18
  • 35
-1
votes
1 answer

Unable to resize win 32 window

I'm trying to learn how to create a window in win 32. This is as far as I have got with it. The problem I'm facing is I'm unable to create a window that can be resized by the user. I'm hoping that someone could help me solve this newbie…
sandeep p
  • 21
  • 7
-1
votes
1 answer

Stop bell sound on keypress in dialog box

win32 api: So when one of my dialog boxes has focus, I press 'a' and then do some stuff in the WM_KEYDOWN message, and then it gives the bell/warning sound. Is there someway to suppress this?
Joel
  • 15,166
  • 16
  • 39
  • 31
-1
votes
1 answer

Why the window of control coulnd't appear?

I saw an article on the Microsoft website MSDN that introduced an advanced way of writing. I apply it to the extension of the class, and usually I don't have a problem. But recently I encountered a problem when I tried to write a class. I want to…
anti-gravity
  • 122
  • 6
-1
votes
1 answer

Change style of button (C win32)

i need a modern style for my program. The default style is similar to Windows Vista and i want a modern style like Windows 10!!! Please Help :(( In python i can solve this easly with tkinter, only need "from tkinter.ttk import * " for a modern style…
Pan
  • 3
  • 3
-1
votes
1 answer

Win32 Program to Change Laptop Refresh Rate - Crashing

so a quick rundown of the Win32 app I'm making. It's basically supposed to change refresh rate between 60 and 144 Hz based on whether or not the laptop is plugged in. When I launch the app, the GUI starts but it crashes. I'll post the code and debug…
daniel-eh
  • 344
  • 3
  • 13
-1
votes
1 answer

Click in specified place without moving mouse error

So I have been looking for multiple ways to perform a "click" without actually moving the mouse. After hours of searching, I came upon these two pages: ctypes mouse_events and https://schurpf.com/python-mouse-control/ where there's some code that…
Kian
  • 25
  • 1
  • 7
-1
votes
1 answer

Can I use WPF in win32 application?

Our company has a software in Alaska Xbase++. I want to modernize the GUI with WPF, without rewriting the software in C#. In this Alaska Xbase++ language, I have the ability to call C/C++ functions. I beleive, it is possible to create hybrid DLL,…
Jung Ervin
  • 358
  • 1
  • 2
  • 8