下载资源后端资源详情
MFC解决思路-工作线程,显示等待窗口.zip
大小:92.91MB
价格:37积分
下载量:0
评分:
5.0
上传者:WNX10086
更新日期:2024-10-23

MFC项目管控的主线程是UI线程,有的操作比较费时,我们可以通过工作线程去解决,并提供界面一个等待对话框,告知用户此刻程序没有卡

资源文件列表(大概)

文件名
大小
MultiThread3/
-
MultiThread3/.vs/
-
MultiThread3/.vs/MultiThread3/
-
MultiThread3/.vs/MultiThread3/FileContentIndex/
-
MultiThread3/.vs/MultiThread3/FileContentIndex/d1cf97f1-074f-4561-82c3-04e70cfa700f.vsidx
39.87KB
MultiThread3/.vs/MultiThread3/v17/
-
MultiThread3/.vs/MultiThread3/v17/.suo
47KB
MultiThread3/.vs/MultiThread3/v17/DocumentLayout.backup.json
7.7KB
MultiThread3/.vs/MultiThread3/v17/DocumentLayout.json
1.59KB
MultiThread3/.vs/MultiThread3/v17/Preview/
-
MultiThread3/.vs/MultiThread3/v17/Preview/Browse.VC.db
49.83MB
MultiThread3/.vs/MultiThread3/v17/Preview/ipch/
-
MultiThread3/.vs/MultiThread3/v17/Preview/ipch/80b23d932e896a2d.ipch
89.31MB
MultiThread3/.vs/MultiThread3/v17/Preview/Solution.VC.db
428KB
MultiThread3/_UpgradeReport_Files/
-
MultiThread3/_UpgradeReport_Files/UpgradeReport.css
3.27KB
MultiThread3/_UpgradeReport_Files/UpgradeReport.xslt
12.21KB
MultiThread3/_UpgradeReport_Files/UpgradeReport_Minus.gif
69B
MultiThread3/_UpgradeReport_Files/UpgradeReport_Plus.gif
71B
MultiThread3/Debug/
-
MultiThread3/Debug/cl.command.1.tlog
2.85KB
MultiThread3/Debug/CL.read.1.tlog
35.17KB
MultiThread3/Debug/CL.write.1.tlog
1.71KB
MultiThread3/Debug/link-cvtres.read.1.tlog
2B
MultiThread3/Debug/link-cvtres.write.1.tlog
2B
MultiThread3/Debug/link.command.1.tlog
1.87KB
MultiThread3/Debug/link.read.1.tlog
5.25KB
MultiThread3/Debug/link.write.1.tlog
1.23KB
MultiThread3/Debug/mt.command.1.tlog
768B
MultiThread3/Debug/mt.read.1.tlog
680B
MultiThread3/Debug/mt.write.1.tlog
498B
MultiThread3/Debug/MultiThread3.exe
95KB
MultiThread3/Debug/MultiThread3.exe.embed.manifest
667B
MultiThread3/Debug/MultiThread3.exe.embed.manifest.res
732B
MultiThread3/Debug/MultiThread3.exe.intermediate.manifest
381B
MultiThread3/Debug/MultiThread3.ilk
988.56KB
MultiThread3/Debug/MultiThread3.lastbuildstate
65B
MultiThread3/Debug/MultiThread3.log
231B
MultiThread3/Debug/MultiThread3.obj
25.66KB
MultiThread3/Debug/MultiThread3.pch
21.69MB
MultiThread3/Debug/MultiThread3.pdb
4.27MB
MultiThread3/Debug/MultiThread3.res
22.66KB
MultiThread3/Debug/MultiThread3.write.1.tlog
-
MultiThread3/Debug/MultiThread3_manifest.rc
214B
MultiThread3/Debug/MultiThread3Dlg.obj
28.89KB
MultiThread3/Debug/rc.command.1.tlog
1.09KB
MultiThread3/Debug/rc.read.1.tlog
3.27KB
MultiThread3/Debug/rc.write.1.tlog
526B
MultiThread3/Debug/stdafx.obj
618.58KB
MultiThread3/Debug/vc100.idb
1.11MB
MultiThread3/Debug/vc100.pdb
2.54MB
MultiThread3/Debug/WaitDlg.obj
24.92KB
MultiThread3/MultiThread3.aps
56.83KB
MultiThread3/MultiThread3.cpp
1.68KB
MultiThread3/MultiThread3.h
477B
MultiThread3/MultiThread3.rc
4.85KB
MultiThread3/MultiThread3.sln
890B
MultiThread3/MultiThread3.sln.old
889B
MultiThread3/MultiThread3.suo
15KB
MultiThread3/MultiThread3.suo.old
13KB
MultiThread3/MultiThread3.vcproj
5.54KB
MultiThread3/MultiThread3.vcproj.QT-20130104RJOM.Administrator.user
1.39KB
MultiThread3/MultiThread3.vcxproj
7.81KB
MultiThread3/MultiThread3.vcxproj.filters
2.18KB
MultiThread3/MultiThread3.vcxproj.user
143B
MultiThread3/MultiThread3Dlg.cpp
2.48KB
MultiThread3/MultiThread3Dlg.h
730B
MultiThread3/ReadMe.txt
2.79KB
MultiThread3/res/
-
MultiThread3/res/MultiThread3.ico
21.12KB
MultiThread3/res/MultiThread3.rc2
368B
MultiThread3/Resource.h
728B
MultiThread3/stdafx.cpp
143B
MultiThread3/stdafx.h
1.75KB
MultiThread3/targetver.h
1.01KB
MultiThread3/UpgradeLog.XML
1.74KB
MultiThread3/WaitDlg.cpp
1.01KB
MultiThread3/WaitDlg.h
550B
TestWaitDlg/
-
TestWaitDlg/.vs/
-
TestWaitDlg/.vs/TestWaitDlg/
-
TestWaitDlg/.vs/TestWaitDlg/FileContentIndex/
-
TestWaitDlg/.vs/TestWaitDlg/FileContentIndex/847fe8f3-9881-4242-9116-abf29cb4be59.vsidx
69.46KB
TestWaitDlg/.vs/TestWaitDlg/v17/
-
TestWaitDlg/.vs/TestWaitDlg/v17/.suo
11KB
TestWaitDlg/.vs/TestWaitDlg/v17/Preview/
-
TestWaitDlg/.vs/TestWaitDlg/v17/Preview/Browse.VC.db
50.05MB
TestWaitDlg/.vs/TestWaitDlg/v17/Preview/ipch/
-
TestWaitDlg/.vs/TestWaitDlg/v17/Preview/ipch/6cb369393d2bec5f.ipch
90.31MB
TestWaitDlg/.vs/TestWaitDlg/v17/Preview/Solution.VC.db
428KB
TestWaitDlg/Debug/
-
TestWaitDlg/Debug/cl.command.1.tlog
4.67KB
TestWaitDlg/Debug/CL.read.1.tlog
37.68KB
TestWaitDlg/Debug/CL.write.1.tlog
2.74KB
TestWaitDlg/Debug/link-cvtres.read.1.tlog
2B
TestWaitDlg/Debug/link-cvtres.write.1.tlog
2B
TestWaitDlg/Debug/link.command.1.tlog
2.06KB
TestWaitDlg/Debug/link.read.1.tlog
5.52KB
TestWaitDlg/Debug/link.write.1.tlog
1.42KB
TestWaitDlg/Debug/MainFrm.obj
31.75KB
TestWaitDlg/Debug/mt.command.1.tlog
768B
TestWaitDlg/Debug/mt.read.1.tlog
672B
TestWaitDlg/Debug/mt.write.1.tlog
490B
TestWaitDlg/Debug/rc.command.1.tlog
1.14KB
TestWaitDlg/Debug/rc.read.1.tlog
3.54KB
TestWaitDlg/Debug/rc.write.1.tlog
510B
TestWaitDlg/Debug/RunWaitWnd.obj
34.94KB
TestWaitDlg/Debug/StdAfx.obj
632.31KB
TestWaitDlg/Debug/TestWaitDlg.Build.CppClean.log
784B
TestWaitDlg/Debug/TestWaitDlg.exe
127KB
TestWaitDlg/Debug/TestWaitDlg.exe.embed.manifest
667B
TestWaitDlg/Debug/TestWaitDlg.exe.embed.manifest.res
732B
TestWaitDlg/Debug/TestWaitDlg.exe.intermediate.manifest
381B
TestWaitDlg/Debug/TestWaitDlg.ilk
1.55MB
TestWaitDlg/Debug/TestWaitDlg.lastbuildstate
64B
TestWaitDlg/Debug/TestWaitDlg.log
429B
TestWaitDlg/Debug/TestWaitDlg.obj
40.89KB
TestWaitDlg/Debug/TestWaitDlg.pch
21.94MB
TestWaitDlg/Debug/TestWaitDlg.pdb
4.53MB
TestWaitDlg/Debug/TestWaitDlg.res
7.2KB
TestWaitDlg/Debug/TestWaitDlg.write.1.tlog
-
TestWaitDlg/Debug/TestWaitDlg_manifest.rc
218B
TestWaitDlg/Debug/TestWaitDlgDoc.obj
50.48KB
TestWaitDlg/Debug/TestWaitDlgView.obj
27.15KB
TestWaitDlg/Debug/vc100.idb
1.14MB
TestWaitDlg/Debug/vc100.pdb
2.57MB
TestWaitDlg/MainFrm.cpp
2.4KB
TestWaitDlg/MainFrm.h
1.44KB
TestWaitDlg/ReadMe.txt
4.33KB
TestWaitDlg/res/
-
TestWaitDlg/res/TestWaitDlg.ico
1.05KB
TestWaitDlg/res/TestWaitDlg.rc2
403B
TestWaitDlg/res/TestWaitDlgDoc.ico
1.05KB
TestWaitDlg/res/Toolbar.bmp
1.05KB
TestWaitDlg/Resource.h
499B
TestWaitDlg/RunWaitWnd.cpp
5.39KB
TestWaitDlg/RunWaitWnd.h
1.6KB
TestWaitDlg/StdAfx.cpp
213B
TestWaitDlg/StdAfx.h
1.03KB
TestWaitDlg/TestWaitDlg.cpp
4.65KB
TestWaitDlg/TestWaitDlg.dsp
4.68KB
TestWaitDlg/TestWaitDlg.dsw
547B
TestWaitDlg/TestWaitDlg.h
1.46KB
TestWaitDlg/TestWaitDlg.rc
10.37KB
TestWaitDlg/TestWaitDlg.vcxproj
8.04KB
TestWaitDlg/TestWaitDlg.vcxproj.filters
2.67KB
TestWaitDlg/TestWaitDlg.vcxproj.user
143B
TestWaitDlg/TestWaitDlgDoc.cpp
1.8KB
TestWaitDlg/TestWaitDlgDoc.h
1.49KB
TestWaitDlg/TestWaitDlgView.cpp
2.76KB
TestWaitDlg/TestWaitDlgView.h
1.96KB

资源内容介绍

MFC项目管控的主线程是UI线程,有的操作比较费时,我们可以通过工作线程去解决,并提供界面一个等待对话框,告知用户此刻程序没有卡死,带加载完成数据之后,我们对数据进行内存级别缓存就很快了,待实践学习。
======================================================================== MICROSOFT FOUNDATION CLASS LIBRARY : TestWaitDlg========================================================================AppWizard has created this TestWaitDlg application for you. This applicationnot only demonstrates the basics of using the Microsoft Foundation classesbut is also a starting point for writing your application.This file contains a summary of what you will find in each of the files thatmake up your TestWaitDlg application.TestWaitDlg.dsp This file (the project file) contains information at the project level and is used to build a single project or subproject. Other users can share the project (.dsp) file, but they should export the makefiles locally.TestWaitDlg.h This is the main header file for the application. It includes other project specific headers (including Resource.h) and declares the CTestWaitDlgApp application class.TestWaitDlg.cpp This is the main application source file that contains the application class CTestWaitDlgApp.TestWaitDlg.rc This is a listing of all of the Microsoft Windows resources that the program uses. It includes the icons, bitmaps, and cursors that are stored in the RES subdirectory. This file can be directly edited in MicrosoftVisual C++.TestWaitDlg.clw This file contains information used by ClassWizard to edit existing classes or add new classes. ClassWizard also uses this file to store information needed to create and edit message maps and dialog data maps and to create prototype member functions.res\TestWaitDlg.ico This is an icon file, which is used as the application's icon. This icon is included by the main resource file TestWaitDlg.rc.res\TestWaitDlg.rc2 This file contains resources that are not edited by Microsoft Visual C++. You should place all resources not editable bythe resource editor in this file./////////////////////////////////////////////////////////////////////////////For the main frame window:MainFrm.h, MainFrm.cpp These files contain the frame class CMainFrame, which is derived from CFrameWnd and controls all SDI frame features.res\Toolbar.bmp This bitmap file is used to create tiled images for the toolbar. The initial toolbar and status bar are constructed in the CMainFrame class. Edit this toolbar bitmap using the resource editor, and update the IDR_MAINFRAME TOOLBAR array in TestWaitDlg.rc to add toolbar buttons./////////////////////////////////////////////////////////////////////////////AppWizard creates one document type and one view:TestWaitDlgDoc.h, TestWaitDlgDoc.cpp - the document These files contain your CTestWaitDlgDoc class. Edit these files to add your special document data and to implement file saving and loading (via CTestWaitDlgDoc::Serialize).TestWaitDlgView.h, TestWaitDlgView.cpp - the view of the document These files contain your CTestWaitDlgView class. CTestWaitDlgView objects are used to view CTestWaitDlgDoc objects./////////////////////////////////////////////////////////////////////////////Other standard files:StdAfx.h, StdAfx.cpp These files are used to build a precompiled header (PCH) file named TestWaitDlg.pch and a precompiled types file named StdAfx.obj.Resource.h This is the standard header file, which defines new resource IDs. Microsoft Visual C++ reads and updates this file./////////////////////////////////////////////////////////////////////////////Other notes:AppWizard uses "TODO:" to indicate parts of the source code youshould add to or customize.If your application uses MFC in a shared DLL, and your application is in a language other than the operating system's current language, youwill need to copy the corresponding localized resources MFC42XXX.DLLfrom the Microsoft Visual C++ CD-ROM onto the system or system32 directory,and rename it to be MFCLOC.DLL. ("XXX" stands for the language abbreviation.For example, MFC42DEU.DLL contains resources translated to German.) If youdon't do this, some of the UI elements of your application will remain in thelanguage of the operating system./////////////////////////////////////////////////////////////////////////////

用户评论 (0)

发表评论

captcha