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

Destroying/removing a static text in c++ win32

I am using win32 API in c++ and I have a static piece of text. How would I delete the static text when the user presses a button? I can't figure out to do that.
toyboat100
  • 11
  • 1
  • 2
-3
votes
1 answer

How to intercept messages about reboot or logoff?

I tried to find information on this, but only found the WM_QUERYENDSESSION function. How can I use this to intercept reboot / shutdown messages? import win32gui, win32con msg = win32gui.GetMessage(None, 0, 0) if msg and msg.message ==…
bainki
  • 1
-3
votes
1 answer

WM_PAINT and MOUSE Event. MFC/WIN32 API

i have two rectangle in my WM_PAINT and i wanted to draw Frame Rect on it once WM_MOUSE CLICK EVENT is triggered that toggle on each rectangle. is this even possible?
cole
  • 13
  • 3
-3
votes
1 answer

always on top window or bring a window to top when there are other topmost windows

I have 2 HWND_TOPMOST windows, among which I wanted to maintain 1 window always on top for sometime, is there a way we can bring a window to the top of the other topmost windows ? I just tried below option, just catch when my window goes out of…
NDestiny
  • 1,133
  • 1
  • 12
  • 28
-3
votes
1 answer

windows programing setting up window

i have these tow errors and can't fix them what ever i try. i am running windows 8.1 Error 1 error C3861: 'InitMainWindow': identifier not found Error 2 error C2440: '=' : cannot convert from 'LRESULT (__stdcall *)(HWND,WPARAM,LPARAM)' to…
maplelm
  • 61
  • 2
  • 2
  • 3
-3
votes
1 answer

Using the Win32 API without WinMain?

I'm trying to use the Win32 API from a DLL to handle it due to it's quite messy but I only know how to call it using WinMain. Is there I way I can call a method to invoke the window?
-4
votes
2 answers

GetAncestor: Undeclared identifier

I'm using Visual Studio 6 for backward compatibility reasons and I need to use GetAncestor() like this to create a dll : HWND ancestorhandle = GetAncestor(myvar, 2); I've included these header files: #include #include…
user994572
  • 139
  • 1
  • 11
-5
votes
1 answer

Button Control disappears on click - Click Handler does not get fired on Clicking Button - Win32

I am working on Zoom SDK which is based on win32 gui. I have created 3 buttons using CreateWindow method on the window handle, which is provided by the ZoomSDK. Code + Screenshot - 1 Now there are two problems with this. As soon as I click the…
DivineCoder
  • 702
  • 5
  • 11
-5
votes
1 answer

Creating a C++ win32 program from scratch

There isn't any books in my library on XAML only C++. I want to know if there's a way to make a Win32 program in C++ 64 bit without dealing with XAML and Visual Studio. I want to only use Windows Notepad. Where do I start?
Ephraim Becker
  • 87
  • 1
  • 10
-6
votes
2 answers

reading and writing of new line charecter

I am really confuse now what to do with \n and \r\n charecters.I am reading and writing some files in c++. Basically i want to maintain log file of one exe where following conditions are consider. 1)If file is not present then create file. 2)If file…
Santosh Dhanawade
  • 1,756
  • 14
  • 29
1 2 3
57
58