
wtl
dragoo1
这个作者很懒,什么都没留下…
展开
-
WTL入门(1)-- ATL背景知识 (转)
本文适用于对MFC比较了解的中级开发人员。源代码下载:http://download.youkuaiyun.com/source/3522785ATL BackgroundATL-style templatesclass CMyWnd : public CWindowImpl{...};这是合法的。因为C++规范上说在class CMyWnd之后CmyWnd立转载 2013-04-07 11:38:28 · 1295 阅读 · 0 评论 -
让WTL支持CString和CRect,CPoint等类(转)
// 在Stdafx.h 中加入下面四句,像这个样子#define _WTL_NO_CSTRING#define _WTL_NO_WTYPES#include #include #include #include extern CAppModule _Module;#include 参考:http://blog.youkuaiyun.com/yjz1409276/article/de转载 2014-01-03 10:21:23 · 2990 阅读 · 0 评论 -
atl dll中调用wtl
环境 xp sp3,vs20031.新建 ATL-ATL项目,项目名test0507,不要选中属性化,不要选中支持 mfc,2.stdafx.h添加#include #include #include #include #include #include #include #include 3.在原有的Ctest0507Module类基础上添加Add原创 2013-05-07 10:10:32 · 1740 阅读 · 0 评论 -
WTL怎么让View来响应菜单事件? (转)
在WTL里面,CMainFrame的消息循环是这样的:程序代码BEGIN_MSG_MAP(CMainFrame) MESSAGE_HANDLER(WM_Create, OnCreate) CHAIN_MSG_MAP(CUpdateUI) CHAIN_MSG_MAP(CFrameWindowImpl)END_MSG_MAP()而View里转载 2013-07-10 13:46:18 · 969 阅读 · 0 评论 -
WTL入门(2)-- WTL基础 (转)
源代码下载:http://download.youkuaiyun.com/source/3522792WTL OverviewWTL的类可以分为以下几类:1)窗口实现类 - CFrameWindowImpl, CMDIFrameWindowImpl …2)控件封装类 - CButton, CListViewCtrl …3)GDI封装类 - CDC, CMenu …4)特殊的UI特性 -转载 2013-04-07 13:32:59 · 1448 阅读 · 0 评论 -
WTL中文菜单显示乱码解决方法
WTL中文菜单显示乱码解决方法问题描述:使用WTL向导创建程序,将菜单项改成中文就显示两个问号乱码:??解决方法:在Solution Explorer中展开Resource Files,找到项目名称.rc文件,右键单击选择View Code,选择Yes,将代码中#pragma code_page(1252) 修改为#pragma code_page(936) 即可解决问题。转载 2013-05-02 17:50:03 · 1737 阅读 · 0 评论 -
C2660: “CMyWindow::OnTimer” : 函数不接受 1 个参数
BEGIN_MSG_MAP_EX(CMyWindow)......MSG_WM_TIMER(OnTimer)......END_MSG_MAP()void OnTimer(UINT nIDEvent, TIMERPROC lpTimerFunc){ if ( 1 != nIDEvent ) SetMsgHandled(false);转载 2013-05-02 15:58:03 · 1823 阅读 · 0 评论 -
fatal error C1083: 无法打开包括文件:“atlapp.h”解决方法
今天卸载了VS2010,安装了VS2008,VS2003.net我倒是一直用的,很喜欢。用2008调试一个貌似的2005的挤房器源码 QuickRoom(这好东西可是GDRoom,VSxRoom的鼻祖哦)。发现错误:错误 1 fatal error C1083: 无法打开包括文件:“atlapp.h”: No such file or dir1。 下载WTL 8.0并解压缩,如转载 2013-03-28 11:13:23 · 2197 阅读 · 0 评论 -
fatal error C1189: #error : WTL requires IE version 3.0 or higher
环境:xp sp3,vc6.0,wtl80原因:没有安装支持6.0的wtl70或wtl71同时需要在stdafx.h 添加#define _WIN32_IE 0x0400原创 2013-03-28 11:41:41 · 1787 阅读 · 0 评论 -
WTL在VC各版本下的安装(转)
WTL各版本下载地址:http://sourceforge.net/projects/wtl/files/WTL7.1+VC6.0安装过程:运行WTL71.exe,解压运行/WTL71/AppWiz60/setup.js复制WTL71/include目录下的18个头文件到VC++6.0安装目录的 /VC98/Include下。运行VC++6.0,根据向导可以轻松的创建ATL转载 2013-03-28 11:39:05 · 1111 阅读 · 0 评论 -
ATL窗口(2)(转)
WTL窗口(ATL窗口 第2部分) 翻译:孙凯---------------------------------------------------------------这篇文章由Andrew Whitechapel所写。-------------------------------------------------------------转载 2015-09-28 22:35:24 · 567 阅读 · 0 评论