none
WIN32ASM为什么点击菜单弹出对话框而无法关闭对话框? RRS feed

  • 问题

  • WIN32ASM为什么点击菜单弹出对话框而无法关闭对话框?

    WndProc proc hWnd:HWND, uMsg:UINT, wParam:WPARAM, lParam:LPARAM
        .IF uMsg==WM_DESTROY
            invoke PostQuitMessage,NULL
       
        .ELSEIF uMsg==WM_COMMAND
            mov eax,wParam
            .IF eax == IDM_PMSJ
      invoke CreateDialogParam,hInstance,IDD_DLG1,NULL,NULL,NULL
                
            .ELSEIF eax==IDM_ZDMSJ
                invoke MessageBox,NULL,ADDR Test_string,OFFSET AppName,MB_OK
            .ELSEIF eax==IDM_ZDSJ
                invoke MessageBox, NULL,ADDR Hello_string, OFFSET AppName,MB_OK
            .ELSEIF eax==IDM_JDSJ
                invoke MessageBox,NULL,ADDR Goodbye_string, OFFSET AppName, MB_OK
            .ELSE
                invoke DestroyWindow,hWnd
                
            .ENDIF
        .ELSE
            invoke DefWindowProc,hWnd,uMsg,wParam,lParam
            ret
        .ENDIF
        xor    eax,eax
        ret
    WndProc endp

    2015年2月13日 8:52

答案

  • 这里是C++论坛,win32ASM不在论坛的支持范畴之类。

    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • 已标记为答案 Shu 2017 2015年2月24日 10:30
    2015年2月16日 10:11