About this tag
The window procedure tag on WindowsForum.com covers discussions about the WNDPROC callback function in Windows API programming, which handles messages sent to a window. Topics include implementing custom window procedures for modeless dialog boxes, subclassing static controls to draw borders and background colors, and debugging issues like dialog box updates freezing when running without a debugger. Users share code examples in C/C++ for Win32 applications, focusing on message handling, window subclassing, and troubleshooting unexpected behavior in window procedures. The tag is relevant for developers working with native Windows GUI programming.
-
A strange problem with modeless dialog boxes - V2
I have solved the problem! See the original post, "A strange problem with modeless dialog boxes", for details. This is a repost, incorporating the latest simplifications of the problem statement, and a minimal reproducible example of the code... I'm having a problem with modeless dialog boxes...- Alex Sokolek
- Thread
- application c++ debugging dialog box document scanning event handling graphics gui linked list modeless multithreading performance sleep function software optimization system call timer user interface window procedure windows development
- Replies: 2
- Forum: Windows Software
-
F
Windows 11 Drawing a border and background color with a handle to a window.
``` #include <Windows.h> #include <Richedit.h> HWND hwnd; HWND panel; HWND richEdit; WNDPROC oldStaticProc; int WINAPI WinMain(HINSTANCE, HINSTANCE, PSTR, int); LRESULT CALLBACK WindowProcedure(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); LRESULT CALLBACK StaticProc(HWND hwnd, UINT...- famatto
- Thread
- background border drawing c++ control handling device context error handling event gdi graphics opengl paint handling rich edit static control user interface window procedure window resizing windows api wm_paint
- Replies: 1
- Forum: Programming and Scripting