MFC的一些事情

Qt学视觉 2015-04-15 09:41:37
最近在学习MFC,感觉里面的东西好多好多,完全没有一个头绪,学了差不多一半了,好像还不怎么见成效的呀
请各位多多指点指点呀
...全文
546 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
csdn一绝 2015-05-15
  • 打赏
  • 举报
回复
抓住消息循环getmessage, 分派消息dispatchmessage,进入AfxWndProc -> CWnd::WindowProc->CWnd::OnWndMsg函数和CCmdTarget::OnCmdMsg函数,找消息响应函数入口,方法:窗口句柄获取当前消息对应窗口的类指针,乱了 ,太复杂了。
思危 2015-05-14
  • 打赏
  • 举报
回复
MFC 没饭吃
fhw217 2015-05-14
  • 打赏
  • 举报
回复
QT??
灌水号 2015-04-17
  • 打赏
  • 举报
回复
学C#吧……
赵4老师 2015-04-17
  • 打赏
  • 举报
回复
oldmtn 2015-04-15
  • 打赏
  • 举报
回复
别学了,,MFC做界面复杂的一笔,,, 头疼做的。。
worldy 2015-04-15
  • 打赏
  • 举报
回复
还是别学了,MFC也叫没饭吃
likfeng 2015-04-15
  • 打赏
  • 举报
回复
多写代码,写之前多想想
lx624909677 2015-04-15
  • 打赏
  • 举报
回复
你学了多久了?成效是说什么,能做实际项目吗?
Eleven 2015-04-15
  • 打赏
  • 举报
回复
重要的还是多动手实践~
赵4老师 2015-04-15
  • 打赏
  • 举报
回复
MSDN98_1.ISO http://pan.baidu.com/s/1dDF41ix, MSDN98_2.ISO http://pan.baidu.com/s/1bnGo0Vl 先下载安装MSDN98到D:\MASN98 然后参考: mk:@MSITStore:D:\MSDN98\98VS\2052\vcsample.chm::/html/_core_alphabetical_list_of_mfc_samples.htm Alphabetical List of MFC Samples Sample Illustrations ACDUAL Demonstrates how to add dual interface support to an MFC-based Automation server. AUTOCLIK Tutorial example illustrating Automation features in Visual C++ Tutorials. AUTODRIV A simple Automation client application that drives the AUTOCLIK tutorial sample application. BINDENRL Databound controls in a dialog-based application with property pages. BINDSCRB Illustration of the use of new COM interfaces to components currently supported by the Microsoft Office suite of products. CALCDRIV Automation client. CATALOG Illustration of direct calls to ODBC functions in general, and the ODBC functions SQLTables and SQLColumns in particular. CATALOG2 Illustration of direct calls to ODBC functions in general using Windows Common Controls. CHATSRVR Discussion server application for CHATTER. CHATTER Client application that uses Windows Sockets. CHKBOOK Record-based (nonserialized) document. CIRC Tutorial sample that teaches you how to create a simple ActiveX control called Circle. CMNCTRL1 Demonstrates how to create and change the styles of Windows Common Controls using MFC classes (Part 1). CMNCTRL2 Demonstrates how to create and change the styles of Windows Common Controls using MFC classes (Part 2). COLLECT MFC C++ template-based collection classes, and standard prebuilt collection classes. CONTAINER Tutorial example illustrating ActiveX Visual Editing container features in Visual C++ Tutorials. COUNTER Using an ISAPI DLL to send image data (rather than HTML data) back to a Web browser. CTRLBARS Custom toolbar and status bar, dialog bar, and floating palette. CTRLTEST Owner-draw list box and menu, custom control, bitmap button, spin control. CUBE OpenGL application using MFC device contexts along with OpenGL's resource contexts. DAOCTL DAO database class functionality and ActiveX controls let you examine a database. DAOENROL Based on ENROLL, but migrated to the DAO database classes. Also serves as Step 4 of the DaoEnrol tutorial. DAOTABLE Creates a Microsoft Access database (.mdb file) and its tables, fields, queries, and indexes using MFC DAO database classes. DAOVIEW DAO database classes and Windows Common Controls let you view the schema of a database. DBFETCH Demonstrates the use of bulk row fetching in the ODBC database classes. DBVList Demonstrates the virtual list view functionality available for the list view common control. DIBLOOK Device-independent bitmap and color palette. DLGCBR32 Adding a toolbar and a status bar to a dialog-based application. DLGTEMPL Shows how to create dialog templates dynamically. DLLHUSK Sharing the DLL version of the Foundation class library with an application and custom DLL. DLLTRACE Statically linking the MFC library to a custom DLL. DOCKTOOL Dragging and floating toolbars that are "dockable". DRAWCLI Full-featured object-oriented drawing application that is also an ActiveX Visual Editing container. DRAWPIC Getting a Windows handle to a bitmap or icon from an LPPICTUREDISP. DYNABIND Dynamic binding of database columns to a recordset. DYNAMENU Dynamically modifying list of items in menus; handling commands not known at compile time; and updating the status bar command prompt for such commands. ENROLL Tutorial example illustrating database features in Visual C++ Tutorials. EXTBIND Shows how to bind data-aware controls across a dialog box boundary. FIRE Dialog-based application that demonstrates five Windows Common Controls. FTPTREE Displays the contents of an FTP site in a tree control. GUIDGEN A dialog-based MFC application used to generate globally unique identifiers, or GUIDs, which identify OLE classes, objects, and interfaces. HELLO Simple application with frame window but no document or view. HELLOAPP Minimal "Hello World" application. HIERSVR ActiveX Visual Editing server application with drag and drop. HTTPSVR Uses MFC Windows Socket classes to implement an Internet HTTP server. IMAGE Demonstrates an ActiveX control that is capable of downloading data asynchronously. INPROC An in-process Automation server that can be loaded as a DLL in the client's address space. IPDRIVE A simple Automation client application that drives the INPROC sample application. LISTHDR Demonstrates the List View and Header Common Controls. MAKEHM Command line utility for associating resources with Help contexts. MDI MDI application that does not use documents and views. MDIBIND Demonstrates data binding in CWnd-derived windows, but only at run time. MDIDOCVW New version of the MDI sample that uses the document/view architecture. MFCBIND Shows how to create an ActiveX document (formerly known as a DocObject) container using the ActiveX document container support classes. MFCCALC An Automation server that implements a simple calculator. MFCIE Uses MFC's CHtmlView and CreBar classes to implement a subset of the functionality provided by Microsoft Internet Explorer. MFCRows Shows how to useCOleDBRecordView to scroll through a table in a database. Also how to use multiple accessors so you can update an Access table that contains an AutoNumber field to be retrieved. MFCUCASE Demonstrates MFC support for Internet Server filter DLLs. MODELESS Demonstrates the use of an MFC CDialog object as a modeless dialog. MTGDI Multithread illustration, where GDI resources are converted to MFC objects and back. MTMDI Multithread illustration, where user-interface events are processed in a separate user-interface thread. MTRECALC Multithread illustration, where recalculations are done in a worker thread. MULTIPAD Simple MDI text editor using the CeditView class. MUTEXES Demonstrates the use of the Cmutex class for multithreading. NPP Editor demonstrating toolbars, status bars, and other controls. OCLIENT ActiveX Visual Editing container application, with drag and drop. ODBCINFO Shows how to determine various ODBC driver capabilities at run time. OLDBARS Provides support for applications that rely on the old implementations of CToolBar and CStatusBar by providing the source code for these classes. OLEVIEW Implementing an OLE object browser through custom OLE interfaces. PINBALL An Internet Server Extension DLL that provides graphics and also redirects users to a Web site for further research. PROPDLG Property sheets (dialogs). ROWLIST Illustrates full row selection in a list-view common control. SAVER Screen saver written with MFC. SCRIBBLE Main tutorial example in Visual C++ Tutorials. SMILEY Modifying properties, calling methods, and handling events from the SMILE control in the SMILEY container. SNAPVW Shows how to use property pages in a MDI child frame window. SPEAKN Multimedia sound using user-defined resources. StockTicker An MFC and ATL application that retrieves stock quotes from the Web and displays them in an ATL control. The user can set the display's properties, including rate of data refresh. STDREG Tool for populating the Student Registration database (used by the Enroll database tutorial) in any format supported by an ODBC driver. Illustrates SQL table creation. SUPERPAD ActiveX Visual Editing server that edits text using CEditView. TEAR MFC console application that uses the Wininet.dll. TEMPLDEF Command line tool that expands source files similar to C++ templates. TSTCON Implements an ActiveX control container using MFC's support for OLE embedding. You can use TSTCON to test ActiveX controls, change their properties, and invoke their methods. TESTHELP An ActiveX control that has its own help file and tooltips. TRACER Tool that sets the Foundation class application trace flags kept in AFX.INI. TRACKER Illustration of the various CRectTracker styles and options. VCTERM Simple terminal emulation program illustrating the use of the Mscomm32.ocx ActiveX control. VIEWEX Multiple views, scroll view, splitter windows. WIZARD97 Demonstrates implementing a wizard that supports background bitmaps and wide header titles and images. This wizard design is supported for Windows 98 and Windows NT 5.0; you must be using Windows 98 or Windows NT 5.0 for this sample to work properly. WORDPAD Uses MFC's support for rich edit controls to create a basic word processor. WWWQUOTE Retrieves information from a database and provides it to the user via an HTTP connection to the server. See Also Microsoft Foundation Class Library Samples Index
侯捷的<深入浅出MFC>相信大家都已经很熟悉了,论坛上也有很多介绍,这里我就不多说了。 而李久进的<MFC深入浅出>,听说的人可能就少得多。原因听说是这本书当时没有怎么宣传,而自从1999年第1版后,似乎也没有重印过,现在市面上根本找不到,所以大部分人都不知道。我手里现在恰好有一本,是从图书馆借的。这本书全名为<MFC深入浅出——从MFC设计到MFC编程>李久进编著,华中理工大学出版。此书极佳! 我这本书是1999年9月第一版,印数居然只有5000册。这么好的书只印5000册,而市面上都让一堆破烂玩意充斥着…… 这本书在写作目的上和侯捷的那本<深入浅出MFC>很相像。都是具体介绍MFC的原理和MFC的设计的。 看有的帖子说这本书难,这倒没有感觉到。当然,我看这本书的时候已经学完MFC的很多东西了,也看过侯捷那本。不过,这本书确实不大适合入门。而比较适合精通。 和侯捷那本书比起来,这两本书的风格很不一样。侯捷的那书的特点是剖了很多MFC的源代码,喜欢用代码说明问题,包括自己模拟MFC的方面实现一个类似的构架(什么什么仿真),而李久进的那本书不是这样,他用了很多的图表,具体介绍了MFC干很多事的时候的具体过程,比如MFC创建的时候及退出的时候具体的调用函数的过程(具体函数的调用关系)。这觉得这部分极为重要,这也就是我推崇李久进这本书的原因。而侯捷的那本书这部分内容非常少。这想,这可能是由于侯捷觉得,这部分内容不需要单独介绍,大家自己剖代码就可以解决问题。这确实不错,李久进的那本书中的内容如果自己剖MFC的源代码,内容都可以找到。但这是一个非常花工夫的事情,更不要说MFC的实际代码中要考虑各种各样的问题(保护,检查),代码的思路不可能非常清楚,这无疑增加了读代码的难度。和自己花时间一点一点剖MFC代码相比,看看这本只有266页的书无疑有效得多。
侯捷的<深入浅出MFC>相信大家都已经很熟悉了,论坛上也有很多介绍,这里我就不多说了。 而李久进的<MFC深入浅出>,听说的人可能就少得多。原因听说是这本书当时没有怎么宣传,而自从1999年第1版后,似乎也没有重印过,现在市面上根本找不到,所以大部分人都不知道。我手里现在恰好有一本,是从图书馆借的。这本书全名为<MFC深入浅出——从MFC设计到MFC编程>李久进编著,华中理工大学出版。此书极佳! 和侯捷那本书比起来,这两本书的风格很不一样。侯捷的那书的特点是剖了很多MFC的源代码,喜欢用代码说明问题,包括自己模拟MFC的方面实现一个类似的构架(什么什么仿真),而李久进的那本书不是这样,他用了很多的图表,具体介绍了MFC干很多事的时候的具体过程,比如MFC创建的时候及退出的时候具体的调用函数的过程(具体函数的调用关系)。这觉得这部分极为重要,这也就是我推崇李久进这本书的原因。而侯捷的那本书这部分内容非常少。这想,这可能是由于侯捷觉得,这部分内容不需要单独介绍,大家自己剖代码就可以解决问题。这确实不错,李久进的那本书中的内容如果自己剖MFC的源代码,内容都可以找到。但这是一个非常花工夫的事情,更不要说MFC的实际代码中要考虑各种各样的问题(保护,检查),代码的思路不可能非常清楚,这无疑增加了读代码的难度。和自己花时间一点一点剖MFC代码相比,看看这本只有266页的书无疑有效得多。 从内容上来讲,侯捷的那本<深入浅出MFC>更关心的是MFC的设计,或者说更像是想知道MFC是如何做到它所做到的东西的——从目的上说,是希望在了解了MFC的实现方法以后,自己也做出一个类似的东西来(你看别人的源代码的时候,就是这个目的)。而李久进的那本<MFC深入浅出>更关心的是MFC的使用,看完这本书,当你需要做某件事的时候,你会很清楚MFC是在哪个函数中完成这个工作的,你知道应该重载哪个函数,知道如何实现你的功能。但看完侯捷的那本书,你只是学到了方法,而按照侯捷的方法,你可能还得用半年时间才能剖完相关的代码,学到李久进的那本书中所提到的东西。

1,649

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 非技术类
社区管理员
  • 非技术类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧