Forums
Tags
device context
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 color
border drawing
c++
control handling
device
context
error handling
events
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
Forums
Tags