I'm playing around with WinAPI but getting bogged down with the ins and outs of windows controls.
I have a bit of code which displays a window and reports all WM messages to the WINPROCHANDLER() function.
Example Code - API Window (BlitzMax)
The main problems I have is,
1) How should I fill in the client area of the window?
This area is initially WHITE and shows the window title in the upper/left part:

However, moving the window around or moving other windows in front shows the inner area is not being drawn.
This image shows the area I wish to be permanently solid.
(The BLUE is the desktop background):

I'm not sure what to do here. So ...
1) Should I fill in the client area with a DC of the same size?
2) Is there a flag which does this for me?
3) How do I accurately get the correct client area/coordinates. Afterall, there are all sorts of parameters which affect the windows inner area (titlebar/statusbar, borders, etc..)
4) What if the user resizes/moves the window?
Again, how should I update the inner area?
I have a bit of code which displays a window and reports all WM messages to the WINPROCHANDLER() function.
Example Code - API Window (BlitzMax)
The main problems I have is,
1) How should I fill in the client area of the window?
This area is initially WHITE and shows the window title in the upper/left part:

However, moving the window around or moving other windows in front shows the inner area is not being drawn.
This image shows the area I wish to be permanently solid.
(The BLUE is the desktop background):

I'm not sure what to do here. So ...
1) Should I fill in the client area with a DC of the same size?
2) Is there a flag which does this for me?
3) How do I accurately get the correct client area/coordinates. Afterall, there are all sorts of parameters which affect the windows inner area (titlebar/statusbar, borders, etc..)
4) What if the user resizes/moves the window?
Again, how should I update the inner area?