windows编程 rc 文件怎么添加 bmp?
HBITMAP hBm;
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow)
{
MSG Message;
hBm = LoadBitmap(hInstance, "IDB_BITMAP1");
if (hBm == NULL)
{
return FALSE;
}
……
}
hBm总是 NULL。