[求助]问一个API问题
wndclass.hbrBackground=GetStockObject(WHITE_BRUSH);在编写一个简单的窗口,给窗口类定义时,这一句出现误错,误错提示如下
E:\VC\pro46\WinAPI.cpp(20) : error C2440: '=' : cannot convert from 'void *' to 'struct HBRUSH__ *'
Conversion from 'void*' to pointer to non-'void' requires an explicit cast
Error executing cl.exe.
请问是什么原因,是不是这句没写对