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
4
votes
1 answer

GetGuiResources WIn32 API usage

I am trying to use GetGuiResources to find the Gui resources used by my program.It takes a flag as the second parameter. I am interested to know the difference between GR_USEROBJECTS and GR_GDIOBJECTS . I couldn't find any documentation around it.…
Naveen
  • 74,600
  • 47
  • 176
  • 233
4
votes
1 answer

ListView Item background

I want to mark a special line in the listview with a color, so it'll look like this : http://www.codeproject.com/KB/list/CColorListCtrl/rowCell.jpg (The first row - which is green). Im not sure how exactly do I do this, and got a bit confused by the…
Amit
  • 683
  • 3
  • 12
  • 25
4
votes
1 answer

How do I completely change the appearance of a Win32 title bar from Perl?

I'm learning to add GUI to my Perl program using Win32::GUI. Now I can change the icon of a Win32 title bar using something like: $myicon = new Win32::GUI::Icon('myicon.ico'); $myclass=new Win32::GUI::Class( -name=>'myclass', …
Mike
  • 1,841
  • 5
  • 24
  • 34
4
votes
2 answers

How to replace Lua default error print?

I'm implementing Lua as a script language into a Windows application. Due to the application's structure, printout isn't using streamed io, such as stdout and stderror. I have managed to override the Lua print to fit into my…
Max Kielland
  • 5,627
  • 9
  • 60
  • 95
4
votes
3 answers

hide window from MS windows taskbar

Using pyGtk I created a window without decoration. The Window is hidden from task bar and top of all windows. On linux it works fine, but on MS Windows window sometimes it hides under some other window and always has "python.exe" the taskbar in…
DrafFter
  • 480
  • 6
  • 17
4
votes
1 answer

Profile a c++ win32 console application with Visual Studio 2012

I have a simple (not so simple) win32 console application in c++. I would like to profile this application, but when I try to: DEBUG > Start Performance Analysis An error occurs: "No launchable projects are available for profiling". Please note…
dynamic
  • 46,985
  • 55
  • 154
  • 231
4
votes
2 answers

Using ↺ on a button in Win32 GUI

I'm making a Win32 GUI application and I want to display the ↺ character on a button. Normally, I think one would insert a unicode character like this: HWND button = CreateWindow("BUTTON", "\u27F3", …
beenjaminnn
  • 752
  • 1
  • 11
  • 23
4
votes
3 answers

How to add OpenCV display window as child of another window in Win32 c++ Applications?

I have a framegrabber (Silicon Software ) and I managed to show the grabbed images from a pointer in memory buffer using OpenCV. Now I want to create an application (Win32) and place the openCV window as a child window of the main application…
user261002
  • 2,182
  • 10
  • 46
  • 73
4
votes
0 answers

Automating button click for the Windows Security popup with Python

I'm using the win32gui library to get a handle to the Windows Security popup and use win32con to click the "Install" button within but without success. Has anyone done this before successfully in Python? I know I can always install the certificate…
user_noname_00
  • 269
  • 3
  • 8
4
votes
1 answer

Change origin? Win32?

is it possible to move the origin on the display from top left to the centre of the display? Why I want to do this? So that, I can plot points such as: (-21,-25),(22,-25),(21,25),(-21,25) As you can see that some of these are negative and hence not…
user1788175
  • 1,518
  • 4
  • 16
  • 20
4
votes
3 answers

Win32 GDI Drawing a circle?

I am trying to draw a circle and I am currently using the Ellipse() function. I have the starting mouse coordinates - x1 and y1 and the ending coordinates x2 and y2. As you can see, I am forcing the y2(temp_shape.bottom) to be = y1+(x2-x1). This…
user1788175
  • 1,518
  • 4
  • 16
  • 20
4
votes
2 answers

How do I place my custom toolbar (DeskBand?) on taskbar in Windows 7 win WPF?

How do I place my custom toolbar on taskbar in Windows 7 before tasks panel? There is a popular application called Pokki which does it. I wonder how do I do the same? Edit1: I need a 100% way to a custom toolbar (DeskBand?) for Windows 7. I'm not…
Artem
  • 7,275
  • 15
  • 57
  • 97
4
votes
1 answer

Windows - Popen with wShowWindow in startupinfo not affecting display

I'm trying to do something simple like get calc.exe to start minimized, but it's not happening. import subprocess import win32gui import win32con info = subprocess.STARTUPINFO() info.dwFlags |= subprocess.STARTF_USESHOWWINDOW info.wShowWindow =…
Logan Jones
  • 324
  • 1
  • 3
  • 10
3
votes
1 answer

Why is drawing to a hidden HDC giving different results than when drawing to the HDC returned by GetDC(HWND)

I have two methods, paintDoubleBuffered and paint. They are both supposed to draw this image on the screen: The image is made up of approximately 12 smaller images each sized 256x256 tiled together. My standard painting method works as expected.…
Joser_V
  • 51
  • 6
3
votes
1 answer

Python on Windows: "Access is denied" sometimes when calling win32gui.SetForegroundWindow()

In Python 3.10.5 on Windows 11 using the win32gui module, I want to create a simple window switching application. First, I make a list of hwnds of all the running windows and then elsewhere in the code I switch to one of those windows using the…
Adam
  • 1,926
  • 23
  • 21