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

I don't know how to use codeblocks win32 gui

I used win32 GUI and managed to make some sort of interface after some googling but i don't know how to make a button do something or to make an integer get value from a textbox in the GUI. This is the main #include #include…
-2
votes
1 answer

Is it possible to send a custom message to the WindowProcedure in Win32Gui?

I'm sorry if I asked something ridiculous (I'm a win32 noob) but I wonder if it would happen.Is it possible for us to change the message according to ourselves and process it in the switch (message) as in the code? LRESULT CALLBACK WindowProcedure…
codforc
  • 25
  • 1
  • 4
-2
votes
1 answer

Prompt auto message when 'zero' as input in win32 code

I have tried tooltip feature in win32 code, when 'OK' clicked the message displays only when we hover on particular box. But the feature Iam expecting is auto display of message at particular box when 'OK' is clicked. Is it possible to add such…
-2
votes
1 answer

How to change the size & position of a dialog-based window programmatically?

I have code which creates a dialog-based window: m_window = CreateDialogParam(GetModuleHandle(NULL), MAKEINTRESOURCE(IDD_DIALOG1), NULL, DlgProc, 0); ShowWindow(m_window, SW_SHOW); How to change the size and the position of that dialog-based window…
Lion King
  • 32,851
  • 25
  • 81
  • 143
-2
votes
1 answer

Why do GetParent(hwnd) and (HWND)::GetWindow(hwnd, GW_OWNER) for top level windows give different results?

I've been looking into how the Window hierarchy works and have found an inconsistency. The values returned by the two function calls GetParent(hwnd) and (HWND)::GetWindow(hwnd, GW_OWNER) though, mostly agree, don't always for top level windows. The…
Adrian
  • 10,246
  • 4
  • 44
  • 110
-2
votes
1 answer

C++ Getting the Name of a Process via ProcessID

For example from the PID 10948 I would like to get the process name of firefox.exe I've tried using GetModuleFileNameEx, GetModuleFileName, GetProcessImageFileName, and GetModuleBaseName and all of them result in a garbage string of characters such…
-2
votes
1 answer

Installer window with multilingual drop dawn using MSI file

Maybe it's a silly question but I can't find an answer. I want to create minor 1 window EXE installer on WinApi which will have a drop down with possibility to choose language. Then inside on exit from that installer I want to run MSI file with the…
-2
votes
3 answers

How to keep program running after MessageBox

I am so new to developing with Win32 API in C++, and I have made a first program like this: The program's apperance Below is my code, but if you want to build it, then this is my project archive. // The feedback interface with GUI. #include…
Lê Duy Quang
  • 45
  • 1
  • 6
-2
votes
1 answer

How to ensure PostMessage been handled by another application?

My app1 PostMessage WM_LBUTTONDOWN and WM_LBUTTONUP to app2 (third-party) which is in different process. How to make sure those message been handled by app2 in app1, the logic in app1 depends on the result of those messages after PostMessage. Here's…
user1633272
  • 2,007
  • 5
  • 25
  • 48
-2
votes
1 answer

C++ MFC, Custom Grid with CheckBox, RadioButton

I want to create Custom Grid which shall have inline edit feature, Checkbox, Radio button and Images. I came across very good article << http://www.codeproject.com/Articles/8/MFC-Grid-control; Here DrawFrameControl is used to draw Check box and…
Sanjay
  • 3
  • 3
-2
votes
2 answers

Is it possible to use a method to return a variable created using #define?

So imagine I had the code: #define ID_BUTTON 1 in order to give myself a variable to use when using the CreateWindow() function to create a button. Now, is it possible for me to use a method to return ID_BUTTON? Usually I'd find it relatively easy,…
Jay
  • 81
  • 1
  • 7
-2
votes
1 answer

Compiler: "instantiated object" does not name a type

I'm having a problem with creating a WIN32 GUI application in C++ (I'm used Code::Blocks to auto-generate the main.cpp). Here's the header file I made for a class that paints objects to the screen. #ifndef CANVAS_H #define CANVAS_H #include…
-2
votes
1 answer

How i can get window handle of running programs in windows

I am working on an application that need to enumerate all currently running appications , List their names and take capture from their window as bitmap(for this i need to get HANDLE to the running application window). i am google about this but can…
Benyamin Jane
  • 407
  • 2
  • 5
  • 16
-2
votes
1 answer

Passing the string parameter to the SendDlgItemMessage

SendDlgItemMessage() function for its last parameter take an explicit string such as L"TEST" and when I pass it a string or wstring variable it does not work at all; if I write below code it does not add any string item to my LIST_BOX : string…
user3811565
  • 29
  • 1
  • 5
-2
votes
1 answer

Win32 GUI : failing to create win32 GUI dialog

i'm trying to create a simple dll which has a .rc file with simple dialogbox and listbox within it. i have created the resource by the help of visual studio and by use of drag and drop the controls. i have exposed a function which is intern calls…
Raveendra M Pai
  • 445
  • 2
  • 10
  • 27
1 2 3
57
58