HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
g_hInstance = hInstance;
//Register ("Main",WndProc ); 把这行去掉
if ( !Register("Main",WndProc))
{
MessageBox ( NULL, "注册失败" , " Error " ,MB_OK);
return 0;
}
HWND hWnd = CreateMain ("Main" , "Window");
Display ( hWnd );
Message ();
system ("PUSER");
return 0;
} 重复调用Register ("Main",WndProc );会有什么结果?查查api吧
页:
[1]