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

Library in Ubuntu to get the name of current windows open similar to win32gui

Is there any library in Ubuntu to know the names of current windows open, similar to win32gui in Windows?
jack7
  • 107
  • 2
  • 9
-1
votes
1 answer

coordinate calculation program

I want to make a simple coordinate calculation program for windows : application Can move X_Line (Red) and Y_Line (Blue) by left click mouse and show coordinates. But I need help to make coordinates part and functions for this scenario. Please help…
Mayson
  • 95
  • 9
-1
votes
1 answer

Python inactive screen capture

I want to make a screenshot of an inactive window with win32gui. from PIL import ImageGrab import win32gui hwnd = win32gui.FindWindow(None, 'Calculator') win32gui.SetForegroundWindow(hwnd) dimensions = win32gui.GetWindowRect(hwnd) image =…
user7781073
-1
votes
1 answer

WinAPI LoadImage to a button have border but LoadBitmap doesn't

My App is a DLL and i'm injecting it into a (Game) process . When i use LoadBitmap() and use MAKEINTRESOURCE(IMAGE_RESOURCE_NAME) Like this : MyImage = LoadBitmap(hInstance, MAKEINTRESOURCE(IMAGE_RESOURCE_NAME)) SendMessage(MyButton, BM_SETIMAGE,…
Amr SubZero
  • 1,196
  • 5
  • 19
  • 30
-1
votes
1 answer

How to read a windows screen portion using GDI, only when there is an update?

I am trying to read multiple pixel using GDI plus python APIs. As the screen portion I am reading, is very small, while copying the screen to memory device context, I am consider only that particular portion. As I am polling continuously, and…
Rahul
  • 1,607
  • 3
  • 23
  • 41
-1
votes
1 answer

Sending key presses to a different window using Python

I'm trying to achieve something very simple - with a script I would like to: Launch a software Fill out username Press tab Fill out password Press enter I cannot get steps 3 and 5 to work. Here is my code: import win32api import win32gui import…
emihir0
  • 1,200
  • 3
  • 16
  • 39
-1
votes
1 answer

Create process without having keyboard and mouse, interaction and focus

How to create/spawn Win32 process without mouse and keyboard focus and interaction? Can some one mentioned most appropriate Win API function to create window process without having it display as top most window ,but stay behind in other opened…
user6952310
-1
votes
2 answers

Hide the custom applicaion window but it should show the application icon on the taskbar(not as a tray icon)

I need to create a sample windows application where the application should be hidden but the application icon should be there on the taskbar(not as a tray icon) How to do this? or is it possible to do this? When i use ShowWindow(hWnd, SW_HIDE), the…
Akshatha
  • 39
  • 4
-1
votes
1 answer

Failure in freeing the heap

I have a Win32 console application. When I run that code it throws this exception nearly 60% of the time. Unhandled exception at 0x777BC799 (ntdll.dll) in x.exe: 0xC0000374: A heap has been corrupted (parameters: 0x777E8890). void function(CString…
prakhar3agrwal
  • 316
  • 3
  • 12
-1
votes
1 answer

Drawing peformance with Win32

I am getting a very poor peformance drawing with Win32. It takes too much time and needs improving. Please advise. Here is what I do. HDC dc = GetDC(wnd); HDC memoryDc = CreateCompatibleDC(dc); HBITMAP memoryMapBitmap = CreateCompatibleBitmap(dc,…
Bambur
  • 1
-1
votes
2 answers

Failed to draw on DesktopWindow

I've tried to draw any thing on Desktop window using GetDC(GetDesktopWindow), like the following simple program: #include int main() { TextOut(GetDC(GetDesktopWindow()), 10, 10, TEXT("Test TextOut Tester!!"), 21); return…
Mostafa Alayesh
  • 111
  • 1
  • 9
-1
votes
1 answer

How to know keyboard “TAB” key XY position?

I need to know how to get caret position when I press a key (TAB). My application need the “Tab” XY position when any user press the tab key on the any UI. Is there any way to catch the “Tab” position? Thanks,
mahen
  • 165
  • 3
  • 16
-1
votes
1 answer

Bitmap not being painted in Win32 C++

I have a window using Win32 and in the message handler I have a case for WM_PAINT, so that a bitmap is drawn in the window. However on running the bitmap is not drawn, is there something I am missing? Do I need to manually send the WM_PAINT…
Pottsiex5
  • 487
  • 2
  • 6
  • 19
-1
votes
1 answer

Bird Unicode c++ win32

So my teacher made me a challenge of putting a bird into a c++ win32 program. I found a unicode U+1F426 but how can I put it? Any thoughts? Thanks
-1
votes
1 answer

Win32::GUI update tray icon does not work

The tray icon does not change. What could be the cause? I'm using latest Strawberry Perl v5.20.2 x86, Win32::GUI v1.11, Windows 7 x64. use strict; use warnings; use Win32::GUI; my $main = Win32::GUI::Window->new( -name => 'Main', -text =>…
Nick
  • 331
  • 3
  • 14