EDN Admin
Well-known member
Okay, so heres my problem. I have my menu set up so that you click File at the top, and it gives you a dropdown menu, where you can pick a number of different types of files to load. Everything works, EXCEPT, when I click to close the
dialog box created by GetOpenFileName, the box closes then instantly opens itself again. Ive searched and Ive hunted but I cant seem to find what the cause is. Heres the WM_COMMAND message from my WndProc:
<div style="color:black; background-color:white
<pre><span style="color:blue case WM_COMMAND:
<span style="color:blue switch (LOWORD(wParam))
{
<span style="color:blue case FILE_EXIT:
gQuit = <span style="color:blue true;
<span style="color:blue break; <span style="color:green // FILE_EXIT
<span style="color:blue case IMPORT_3DS:
{
<span style="color:green //printf("Youre trying to import a .3dsn");
OPENFILENAME ofn;
<span style="color:blue wchar_t FileName[MAX_PATH] = L<span style="color:#a31515 "
dialog box created by GetOpenFileName, the box closes then instantly opens itself again. Ive searched and Ive hunted but I cant seem to find what the cause is. Heres the WM_COMMAND message from my WndProc:
<div style="color:black; background-color:white
<pre><span style="color:blue case WM_COMMAND:
<span style="color:blue switch (LOWORD(wParam))
{
<span style="color:blue case FILE_EXIT:
gQuit = <span style="color:blue true;
<span style="color:blue break; <span style="color:green // FILE_EXIT
<span style="color:blue case IMPORT_3DS:
{
<span style="color:green //printf("Youre trying to import a .3dsn");
OPENFILENAME ofn;
<span style="color:blue wchar_t FileName[MAX_PATH] = L<span style="color:#a31515 "