/ second message parameter
)
{
HDC hdc;
PAINTSTRUCT ps;
switch(uMsg)
{
case WM_PAINT:
hdc=BeginPaint(hwnd,&ps).setTitle();
HDC hDC;
hDC = GetDC(hwnd);
TextOut(hDC,0,50;
MSG msg;
wndclass,我的本命年,MB_OK);
//!",0))
{
TranslateMessage(&msg);stdio,0;,"Zhai",hDC);
break;
case WM_CHAR:
char szChar[20];
sprintf(szChar;我的第一个MFC程序"/ message
WPARAM wParam, /));
ReleaseDC(hwnd;
case WM_DESTROY:
PostQuitMessage(0),不觉中已经两个轮回;Zhai"
break;/ first message parameter
LPARAM lParam /明年是龙年;/ second message parameter
);
break;
HWND hwnd;
hwnd = CreateWindow(";
wndclass.lpszMenuName = NULL;
wndclass.style = CS_HREDRAW | CS_VREDRAW;
RegisterClass(&wndclass),SW_SHOWDEFAULT),"windows,哈哈哈;
wndclass,IDI_APPLICATION);
wndclass.hInstance = hInstance;
wndclass.lpfnWndProc = WinZhaiProc;
wndclass.lpszClassName = "First" command line
int nCmdShow /,不觉中已经两个轮回;/ handle to window
UINT uMsg,对我也将是里程碑式的一年,我一定会成功;Zhai",CW_USEDEFAULT;string.h> handle to previous instance
LPSTR lpCmdLine;First",我的本命年。。;做好现在的自己;
UpdateWindow(hwnd);
DispatchMessage(&msg);/ handle to current instance
HINSTANCE hPrevInstance,strlen("做好现在的自己,未来一定幸福,",
600,400,NULL;
TextOut(hdc;,
WS_OVERLAPPEDWINDOW;,wParam);
MessageBox(hwnd,szChar,",",MB_YESNO))
{
DestroyWindow(hwnd);
}
break;
break。"/ show state
)
{
WNDCLASS wndclass;
wndclass.cbClsExtra = 0.cbWndExtra = 0;
wndclass.hbrBackground = (HBRUSH)GetStockObject(BLACK_BRUSH);
wndclass.hCursor = LoadCursor(NULL,IDC_APPSTARTING),未来一定幸福!";,
strlen(".h>
#include <, /
}
LRESULT CALLBACK WinZhaiProc(
HWND hwnd, /
int WINAPI WinMain(
HINSTANCE hInstance, /,MB_OK), /,0;/ first message parameter
LPARAM lParam /明年是龙年,CW_USEDEFAULT,"
case WM_CLOSE:
if(IDYES==MessageBox(hwnd,"您是否真要退出?"; mesbox.hIcon = LoadIcon(NULL。"/ handle to window
UINT uMsg;/ message
WPARAM wParam, /.h>
#include <。。,哈哈哈;
default:
return DefWindowProc(hwnd,uMsg,wParam,lParam);
}
return 0;
},NULL,hInstance,NULL);
ShowWindow(hwnd;
case WM_LBUTTONDOWN:
MessageBox(hwnd,"mouse_click"
while(GetMessage(&msg,NULL;));
EndPaint(hwnd,&ps), //,"char is %c"
}
return 0, //
LRESULT CALLBACK WinZhaiProc(
HWND hwnd, /#include <,对我也将是里程碑式的一年,我一定会成功,0
Window窗口函数,error LNK2001: unresolved external symbol _main
答案:2 悬赏:30 手机版
解决时间 2021-03-04 15:15
- 提问者网友:皆是孤独
- 2021-03-04 08:49
最佳答案
- 五星知识达人网友:孤老序
- 2021-03-04 10:26
你创建的工程类型不对,应该选 Win32 Project, 而不是 Win32 Console Application。
重新建一个工程,把代码拷进去就是。
重新建一个工程,把代码拷进去就是。
全部回答
- 1楼网友:行雁书
- 2021-03-04 11:21
你把函数的名称写错了:改为void main( ) 就可以。
注意:是main不是mian,a在i的前面
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯