| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 419 人关注过本帖
标题:定义注册窗口类
取消只看楼主 加入收藏
xuchuanjie
Rank: 1
等 级:新手上路
帖 子:11
专家分:0
注 册:2010-11-21
结帖率:25%
收藏
已结贴  问题点数:10 回复次数:0 
定义注册窗口类
// myword.cpp : Defines the entry point for the application.
//

#include "stdafx.h"

int APIENTRY WinMain(HINSTANCE hInstance,
                     HINSTANCE hPrevInstance,
                     LPSTR     lpCmdLine,
                     int       nCmdShow)
{
     // TODO: Place code here.

    return 0;
}

#include "stdafx.h"
LRESULTCALLBACK WnProc(HWND,UINT,WPARAML,LPARAM);
char szProcName[]="MYSDKHelloWordsmpl";
WBDCLASS wcMyApp;
wcMyApp.lpszClassName=szProcName;
wcMyApp.hInstance=hInst;
wcMyApp.lpfnWndProc=WndProc;
wcMyApp.hCursor=LoadCursor(NULL,IDC_ARROW);
wcMyApp.hIcon=0;
wcMyApp.lpszMenuName=NULL;
wcMyApp.hbrBackground=(HBRUSH)(COLOR_WINDOW+1);
wcMyApp.style=CS_HREDRAW|CS_VREDRAW;
wcMyApp.cbClsExtra=0;
wcMyApp.cbWndExtra=0;
if(!=RegisterClass(&wcMyApp))
return 0;
搜索更多相关主题的帖子: return 
2011-02-20 20:58
快速回复:定义注册窗口类
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.011291 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved