ウィンドウのサイズが変更されたときにグラフィック デバイス バッファーのサイズを変更しようとしていますが、イベントを検出できません。
これは C++ Windows プログラミングです。私は試した:
while(WM_QUIT != msg.message){
if(PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)){
switch(msg.message){
case WM_SIZE:
return; //<-- If the program closes because of this return, then I know I found the right statements.
}
//TranslateMessage(&msg);
//DispatchMessage(&msg);
}else{
poly.setConstantBuffer(space.getCamera());
poly.draw(iSize);
graphics.render();
}
}
戻っていないということは、それは正しくないということです。サイズ変更イベントをキャッチする正しい方法は何ですか?