hi there. I have a problem when I want to resize the windows size .I adjust the windows size and then use reset function to reset the device . It success in d3d debug mode but fail in d3d retail mode.... and the reset function return
hi there. I have a problem when I want to resize the windows size .I adjust the windows size and then use reset function to reset the device . It success in d3d debug mode but fail in d3d retail mode.... and the reset function return
OK . I have find the reason.... when I use ShowWindow(g_hMainWnd, SW_NORMAL); It fail ...... When I use ShowWindow(g_hMainWnd, SW_RESTORE); It success. 3Q
I think you mean SW_SHOWNORMAL. Have you read through this? http://msdn.microsoft.com/en-us/library/windows/desktop/ms633548(v=vs.85).aspx, the return value of ShowWindow does not necessarily indicate an error. Also SW_SHOWNORMAL should not be called on resets, just first time initialization.