Click here to Skip to main content
15,890,438 members

Comments by KenLevin (Top 1 by date)

KenLevin 17-Mar-21 16:14pm View    
that is the point of my earlier post. If you make the one line change (change .hbrBackground) in wndclassex the window color is changed until you decide to add a handler for wm_erasebkgnd, then the one line change breaks IF the message handler (wndproc) isn't setup correctly. I pointed out that the default code created by code::blocks needed a simple adjustment to preserve the custom back color if a wm_erasebkgnd message handler is used.