关于GetProfileBinary
BYTE *p;
UINT size;
WINDOWPLACEMENT *pWP;
if(GetProfileBinary(SETTINGS_KEY, WINDOWPLACEMENT_KEY, &p, &size))
{ ~~这个本来用pWP的但是
m_pMainWnd->SetWindowPlacement(pWP); 要出错,怎么用p
delete []pWP; 也可以读取窗口位置呢
} 就是有个warning
else
{
m_pMainWnd->ShowWindow(m_nCmdShow);
}
m_pMainWnd->UpdateWindow();
运行也出错