没有合适的资源?快使用搜索试试~ 我知道了~
可视化窗口代码
需积分: 18 3 下载量 151 浏览量
2013-07-07
12:43:02
上传
评论
收藏 2KB TXT 举报
温馨提示
试读
3页
一个简单的可视化代码。帮助新手入门
资源推荐
资源详情
资源评论
#include<windows.h>
//#include "stdafx.h"
ATOM InitApplication(HINSTANCE);
BOOL InitInstance(HINSTANCE,int);
LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM);
int APIENTRY WinMain(HINSTANCE,HINSTANCE,LPSTR,int);
char szTitle[]="¼òµ¥µÄHELLO";
char szWindowClass[]="w32";
char szMenuName[]="NULL";
int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR ipCmdline,int nCmdShow)//APIENTPY
{
MSG msg;
InitApplication(hInstance);
if(!InitInstance(hInstance,nCmdShow))
return FALSE;
while(GetMessage(&msg,NULL,0,0))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
return msg.wParam;
}
ATOM InitApplication(HINSTANCE hInstance)
{
WNDCLASS wc;
wc.style=CS_HREDRAW | CS_VREDRAW;
wc.lpfnWndProc=(WNDPROC)WndProc;
wc.cbClsExtra=0;
//#include "stdafx.h"
ATOM InitApplication(HINSTANCE);
BOOL InitInstance(HINSTANCE,int);
LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM);
int APIENTRY WinMain(HINSTANCE,HINSTANCE,LPSTR,int);
char szTitle[]="¼òµ¥µÄHELLO";
char szWindowClass[]="w32";
char szMenuName[]="NULL";
int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR ipCmdline,int nCmdShow)//APIENTPY
{
MSG msg;
InitApplication(hInstance);
if(!InitInstance(hInstance,nCmdShow))
return FALSE;
while(GetMessage(&msg,NULL,0,0))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
return msg.wParam;
}
ATOM InitApplication(HINSTANCE hInstance)
{
WNDCLASS wc;
wc.style=CS_HREDRAW | CS_VREDRAW;
wc.lpfnWndProc=(WNDPROC)WndProc;
wc.cbClsExtra=0;
资源评论
aaaadafs
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功