The only one reliable place to draw something in window client area, is under WM_PAINT message.
From any another place (e.g. from a command message) call InvalidateRect or RedrawWindow.
That didn't work for you most possible because a mistake in your code.