I wrote in the WndProc()
function under case WM_PAINT:
algorithm by which the program should draw.
This place has a significant drawback - it only draws when the position or size of the window changes. And I need to draw when you click on the button. that is, the button must invoke this function. I wrote a function, and called it when I clicked a button. The function prototype looks like this:
paint(PAINTSTRUCT &ps, HWND &hWnd);
But this feature displays nothing.
I suspect that does not draw, as in case WM_PAINT:
already drawn. Tell me, please, how can I eliminate this conflict?