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 Mar 10, 2024 background border drawing c++ control handling device context error handling event gdi graphics message loop opengl paint handling rich edit static control user interface window procedure window resizing windows api wm_paint Replies: 1 Forum: Programming and Scripting