window procedure

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.
  1. Alex Sokolek

    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...
  2. 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...
Back
Top