SetBkMode(hdc, TRANSPARENT) doesn't work
问题 When I use SetBkMode(hdc, TRANSPARENT); in the code below, I got the following effect when I resize the main window (and hence when the child receives the WM_PAINT message): The problem is : When I resize the main window, The old area of "Find:" shoule be erased, I guess. But it just remains there. If I don't use SetBkMode(hdc, TRANSPARENT); , I don't have this problem. It looks like: , i.e it has white background. Furthermore, if I use SetBkMode(hdc, TRANSPARENT); , it looks like the same as