怎样使程序窗口关不掉
  • 板块灌水区
  • 楼主仗剑_天涯
  • 当前回复22
  • 已保存回复22
  • 发布时间2020/8/4 14:47
  • 上次更新2023/11/6 21:20:02
查看原帖
怎样使程序窗口关不掉
223290
仗剑_天涯楼主2020/8/4 14:47
#include<bits/stdc++.h>
#include<windows.h>
#include<conio.h>
using namespace std;
int main()
{
	if(WM_CLOSE)
	{
    	if(MessageBox(hwnd, L"Really quit?", L"My application", MB_OKCANCEL) == IDOK)
	    {
	        DestroyWindow(hwnd);
	    }
	}
    return 0;
}

emm这代码CE了

'hwnd' was not declared in this scope

2020/8/4 14:47
加载中...