急:在线等!子窗口如何不停的更新mdi主窗口的statusbar.text??

johnzhuking 2004-11-04 05:30:31
急:在线等!子窗口如何不停的更新mdi主窗口的statusbar.text
...全文
183 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
freedomjim 2004-11-18
  • 打赏
  • 举报
回复
用delegate
johnzhuking 2004-11-18
  • 打赏
  • 举报
回复
to :hbxtlhx(下着春雨的天)
那你总可以把主窗体的实例引用传到你的子窗体吧.
如何传呢?说明一下方法就可以了
to :sarcophile(食肉动物)
好像用事件机制比较好一些吧,让子窗口把事件(内容变化,或定时)发送到父窗口,像控件的事件一样
我是通过子窗口的鼠标移动实时更新父窗口的statusbar.text,我不明白怎么通过你讲的来实现.能否详细点?
fellowcheng 2004-11-17
  • 打赏
  • 举报
回复
同意 sarcophile(食肉动物)
sarcophile 2004-11-17
  • 打赏
  • 举报
回复
好像用事件机制比较好一些吧,让子窗口把事件(内容变化,或定时)发送到父窗口,像控件的事件一样
北京的雾霾天 2004-11-17
  • 打赏
  • 举报
回复
那你总可以把主窗体的实例引用传到你的子窗体吧.
johnzhuking 2004-11-17
  • 打赏
  • 举报
回复
this.MdiParent as MDIParentFrom????????????
当MDIParentFrom和子窗口在不同的项目里,而且MDIParentFrom所在的项目不能被子窗口所在的项目所引用.因为子窗口所在的项目已经被MDIParentFrom所在的项目引用了.
如何在子项目里引用MDIParentFrom这个类????
一半乐事 2004-11-04
  • 打赏
  • 举报
回复
UP楼上
北京的雾霾天 2004-11-04
  • 打赏
  • 举报
回复
上面有误,如下使用:
(this.MdiParent as MDIParentFrom).RefreshStatusBar(string MessageStr);

MDIParentFrom为MDI的主窗口的类.
北京的雾霾天 2004-11-04
  • 打赏
  • 举报
回复
你可以在你的mdi主窗体上加一个public的方法来刷新StatusBar.Text,然后,用this.MdiParent来访问这个方法,如:

this.MdiParent.RefreshStatusBar(string MessageStr);
xming076 2004-11-04
  • 打赏
  • 举报
回复
问题可以再具体一点吗?不明白你的意思!
1,01.zipMFC Extension LibraryMFC扩展界面库, 使用Visual C++ 6.0(15KB)2,02.zipVisual Studio style UIVisual Studio风格的界面效果(15KB)3,03.zipInternet Explorer 4 style UIIE4.0风格的界面效果(29KB)4,04.zipOutlook Style UIOutlook风格的界面效果(16KB)5,05.zipDynamic child window repositioning动态改变对话框的大小, 对话框中的控件相应改变(15KB)6,06.zipEnhanced list control增强的List控件(43KB)7,07.zipCDialog using animated control在CDialog中使用动画(12KB)8,08.zipOpen Dialog with Bitmap Preview位图预览的打开文件对话框(43KB)9,09.zipStandard file open dialog with preview标准位图预览的打开文件对话框(24KB)10,10.zipBitmap Dialog Class位图对话框类(13KB)11,11.zipClass for Browsing shell namespace with your own dialog显示目录的树型结构, 可用于目录的选择(31KB)12,12.zipUsing ON_UPDATE_COMMAND_UI with dialogs在对话框中使用ON_UPDATE_COMMAND_UI(13KB)13,13.zipUsing ON_UPDATE_COMMAND_UI with dialogs (2)使用ON_UPDATE_COMMAND_UI(11KB)14,14.zipModeless child dialog in a Main Dialog with corrected tab order非模式对话框在对话框中的TAB顺序(21KB)15,15.zipCostumizing CFileDialog定制的CFileDialog(22KB)16,16.zipAttaching Elements to Borders一个可以在对话框中改变按纽位置、大小的容器(26KB)17,17.zipScrolling credits dialog滚动信用对话框(12KB)18,18.zipColor Dialog with Persistent Custom Colors对话框继承了上一次的颜色风格(12KB)19,19.zipA Base Dialog Class for Modal/Modeless Dialog with Custom Background Color自定义背景的对话框(13KB)20,20.zipParse IP addresses解析IP地址(12KB)21,21.zipParse phone fields解析电话区域(11KB)22,22.zipChanging the default file open/save dialogs in an MFC doc/view application初始化对话框和支持动态数据交换(DDX)(15KB)23,23.zipDialog with Splash Screen Example Code...Splash对话框的例(18KB)24,24.zipClass to select directory选择目录的类(13KB)25,25.zipClass to select directory (Enhancements)增强的选择目录的类(12KB)26,26.zipDirectory Picker Dialog目录采集对话框(42KB)27,27.zipSimple way to change dialog's background and text colors改变对话框背景颜色和文字颜色的简单途径(11KB)28,28.zipA Simple Dialog Layout Manager一个简单的对话框设计管理器(19KB)29,29.zipUsing Buttons on a Dialog Bar with CCmdUI通过CCmdUI在对话框条中使用按纽(19KB)30,30.zipDisplay help for dialog controls on the status bar在状态条中显示对话框中控件的帮助信息(12KB)31,31.zipDragging a dialog by clicking anywhere on it点击任何地方拖动对话框(11KB)32,32.zipSplash screen with text on it that uses its own thread通过自己的线程在Splash对话框中显示文字(136KB)33,33.zipCreating an expanding dialog创建一个可扩展的对话框(15KB)34,34.zipExpanding/Contracting Dialog Box扩展/缩小对话框(24KB)35,35.zipCFileDialog class that only displays folders让CFileDialog只显示目录(很有用)(2KB)36,36.zipFolder Browsing Dialog目录浏览对话框(3KB)37,37.zipFont dialog with custom text preview & color字体对话框中增加字体和颜色的预览(12KB)38,38.zipEmbedding an HTML Help window into a dialog嵌入一个超文本(HTML)的帮助窗口到对话框中(22KB)39,39.zipDialog which can be used as MDI child window使用MDI窗口的对话框(13KB)40,40.zipConvert modal dialogs to modeless将模式对话框转换成非模式对话框(12KB)41,41.zipNetscape 4.x Preferences Dialog类似Netscape 4.x参数选择的对话框(7KB)42,42.zipHandling OnUpdate() processing for menu itemsOnUpdate()处理菜单项(5KB)43,43.zipOptions Tree Dialog树状的配置对话框(25KB)44,44.zipCustomizing the font dialog定制的字体对话框(4KB)45,45.zipSizable dialogs at its easiest轻松改变对话框的大小(5KB)46,46.zipA Snap Size Dialog Class一个捕获对话框大小的类(5KB)47,47.zipCSplitterWnd in a Dialog based Application一个基于对话框的应用(6KB)48,48.zipSplash Screen with 256 color support支持256色的Splash对话框(7KB)49,49.zipSubselection Dialog 项选择的对话框(5KB)50,50.zipSwitching dialog boxes in a dialog-based application在基于对话框应用中切换对话框(5KB)51,51.zipBetter Tip of the Day dialog典型的Did you konw...对话框(26KB)52,52.zipToolbars and Statusbars on Dialogs在对话框中增加工具条和状态条(7KB)53,53.zipTooltips in modal dialog boxes在模式对话框中实现工具提示(6KB)54,54.zipTooltips for dialog controls实现对话框控件的工具提示(4KB)55,55.zipTransparent Dialog透明的对话框(5KB)56,56.zipViewing Dialog Template Resources at Runtime运行时看对话框模板资源(5KB)57,57.zipAlternative Wizard Dialog一个Wizard对话框, 在安装程序中也有用(5KB)58,58.zipAVLTree实现AVL(Addison-Velski and Landis)树结构(5KB)59,59.zipTemplate class to manipulate bits of undefined type一个操作未知类型的模板库(5KB)60,60.zipBlowfish EncryptionBlowfish加密算法加密(4KB)61,61.zipBlowfish encryption classBlowfish加密类(5KB)62,62.zipExpression Evaluation数学公式识别类(5KB)63,63.zipA Y2.038K-Safe Replacement for CTimeCTime的替换类(5KB)64,64.zipIterating through List Containers关于List容器的话题(5KB)65,65.zipLexical Analyser词汇分析(8KB)66,66.zipLocales and Facets in Visual C++VC++的许多细节话题(10KB)67,67.zipA Generalized Parsing Class for MFC一个普通的MFC解析类(5KB)68,69.zipCreating Singleton Objects using Visual C++使用VC++创建一个单独的对象(9KB)69,69.zipSmart Pointers and other Pointer classes指针类(5KB)70,70.zipSortable CObArray class对CObArray类排序(5KB)71,71.zipSortable CObList class对CObList类排序(6KB)72,72.zipExtension to the STL find_if and for_each扩充STL库(5KB)73,73.zipChange from child window to popup window (and back) 将一个窗口改成弹出式窗口(5KB)74,74.zipRestoring Window Position With Multiple Monitors在多层监视器中恢复窗口的位置(5KB)75,75.zipTransparent Window透明的窗口(6KB)76,CenterMDIWnd_demo.zipCenter CMDIChildWnds in the client area of the main frame window(151KB)77,TabbedMDI.zipA variation on the MDI that indicates the open child windows in a tab control. (400KB)78,AdvancedPrev.zipA simple class that helps provide faster Print Preview within MFC Doc/View applications(38KB)79,mditab.zipA dockable bar containing a tabbed list of open windows(91KB)80,CloseUnusedDocs_src.zipClosing unused MDI documents with 1 line of code(2KB)81,graphfx_demo.zipA Doc/View framework for displaying graphical data(192KB)82,WindowsManager.zipImplementing "Windows..." dialog(39KB)83,MultiMRUList_src.zipThis article describes how to maintain the separate MRU list for each document type that is needed in some applications(26KB)84,MultiTop.zipAllows an application to have multiple top-level windows. (22KB)85,PersistFrames.zipA collection of classes that allows MFC SDI and MDI applications to remember the positions and sizes of their main frame and child frame windows. (71KB)86,step0.zipA series of articles that resulted from experimenting with adding Drag and Drop features to my existing application. (16KB)87,undo.zipEasily add Undo/Redo to your CDocument/CView Based Applciation(2KB)88,PropertyView.zipA "Property Sheet"-like view class for MFC (108KB)89,DocViewWTL.zipA library that provides the easiest way to get loosely coupled components. (156KB)90,Dialog2.zipA step by step tutorial showing how to create your first windows program using MFC(112KB)91,MyMDIApp.zipA brief step-by-step tutorial that demonstrates creating an SDI and MDI based applications using the MFC Doc/View architecture.(54KB)92,sditutorial_demo.zipA brief step-by-step tutorial that demonstrates creating an SDI based application that does not use the MFC Doc/View architecture.(15KB)93,QuickWin.zipRedirect stdin, stdout and stderr into a window(125KB)94,GradientTitleBar.zipThis article shows you how to give your Win95/NT4 modeless dialogs a Win98/W2K like gradient title bar.(42KB)95,MsgBoxDemo.zipThe system Message Box that is closed atuomatically after some time(21KB)96,step1.zipSimple step by step article explaining how to create a modeless dialog box as child window.(21KB)97,step2.zipSimple step by step article explaining how to create a modeless dialog box as sibling of the app's main window.(22KB)98,ResizableDialog.zipA CDialog derived class to implement resizable dialogs with MFC (98KB)99,CenterAnywhere_demo.zipThis is a good replacement for CWnd::CenterWindow() that works. (43KB)100,CardDialog.zipA auto-sizing dialog used to store and display smaller child dialogs(22KB)101,scrolling_credits.zipA Scrolling Credits Dialog(209KB)102,snapdialog.zipDialog class that implement a snap-to-screen-border feature like Winamp(16KB)103,messagebox.zipA class which encapsulates MessageBoxIndirect.(18KB)104,rfldlg.zipThis article demonstrates how to add a recent file list to a dialog based application(25KB)105,dialogspl_demo.zipSplash screens are not only for Doc/View based applications(142KB)106,CClockCtrl_src.zipA Freeware MFC class to display an analog clock.(17KB)107,ChildDlg.zipChild Dialog (Sub Forms)(29KB)108,CIconDialog_src.zipA Freeware MFC dialog class to select an icon.(12KB)109,CPushPinFrame_src.zipA Freeware MFC PushPin property page dialog class.(19KB)110,showhide.zipA neat way to show/hide groups of related controls(13KB)111,ResizeCtrl.zipA resize control to implement resizable dialogs with MFC(38KB)112,DDXFile_src.zipA Freeware DDX routine for selecting a filename.(29KB)113,DynWindow_src.zipDescribes a method to implement resizable child windows.(108KB)114,DynamicDialog.zipCreate dialogs dynamically, and easily, without the need for a dialog resource script.(40KB)115,DlgExpand.zipThis article shows gives you the ability to make your dialogs expand or contract, depending on how much information the user wishes to view(15KB)116,TipDemo.zipImproved Tip-of-the-Day Dialog(149KB)117,layoutmgr.zipA framework to provide automatic layout control for dialogs and forms(101KB)118,MainWndPlacement.zipSave/restore the main window size at application exit/startup with a single function call in MDI, SDI and dialog based applications.(29KB)119,sizer_demo.zipAn article on extendable layout management classes(27KB)120,Splasher_src.zipAn improved splash screen component for MFC.(62KB)121,StackDialog.zipCreating a stacked dialog such as Netscape's 'Preferences' dialog(22KB)122,bitmappreviewdialog_src.zipThis article describes a completely object oriented standard file open dialog with preview.(12KB)123,subselect_dialog.zipSubselection Dialog(123KB)124,TabDialog.zipA docking dialog that auto-expands when the mouse passes over it(35KB)125,TcxMsgBox.zipTCX Message Box (derived from CWnd)(35KB)126,ToolTips.zipA demonstration of how to show tooltips in modal dialog bozes(23KB)127,UpdateModalDlg_demo.zipHow to update a modal dialog contents using a callback function(17KB)128,WinampWnd_demo.zipAn article discussing a Plugin for Nullsoft Winamp which looks and behaves like the Winamp UI.(43KB)129,Skins.zipA mini library to build Bitmap based skinnable apps.(174KB)130,FaderWnd_demo.zipAn MFC class to fade any window with only one line of code.(28KB)131,Win2kFileDlg.zipEver wanted to use the new Office 2000 file dialogs on Win 95/98/NT/Me, including the file previewing? Well now you can.(76KB)132,win2000fd.zipHow to show the new Common File Dialog in MFC Apps in Windows 2000(36KB)133,Wizard2000.zipCreate Windows 2000 style Wizards with white backgrounds(109KB)134,FileExportDialog.zipAdding filters to the Open File dialog(24KB)135,customize_dialog.zipCustomizing the Windows Common File Open Dialog(15KB)136,SelectFolder.zipThe windows 'Select Folder' dialog with some extra functionality(41KB)137,animate_dlg.zipAnimated Icon on Titlebar of a Dialog based Application(34KB)138,BmpDlg.zipBitmap Dialog Class(52KB)139,namespace.zipClass for Browsing shell namespace with your own dialog(78KB)140,OnUpdate_demo.zipHandling OnUpdate() processing for menu items(10KB)141,DialogUpdates.zipUsing ON_UPDATE_COMMAND_UI with all controls in a Dialog(18KB)142,override.zipCustomizing the font dialog(4KB)143,cmdlg.zipCostumizing CFileDialog(31KB)144,custom_open.zipCustom Open File or Save as Dialog(25KB)145,ColorFormView.zipCFormView Class with Custom Background Color(33KB)146,Banner.zipAnimated Background Banner(88KB)147,MDIClient.zipA Custom MDI Client Class(42KB)148,html_help_view.zipHTML Help In CView Window(5KB)149,MDIPreview_demo.zipPrint Preview in MDI Frame(20KB)150,zoom_scale.zipAdd Zoom and Scale Capabilities to CScrollView(338KB)151,autopan.zipAuto-Panning Windows(44KB)152,autopan2.zipMicrosoft Internet Explorer like Intellimouse AutoScroll(42KB)153,intellipan.zipIntellimouse panning (improved Auto-Panning Windows)(5KB)154,intellipan2.zipIntellimouse panning 2 (A universal Auto-Panning solution)(12KB)155,bigscroll.zipBreaking the CScrollView 32768 size limitation with CBigScrollView(90KB)156,variable_splitter.zipVariable splitter views(58KB)157,TabbedViews_src.zipTabbed Views(78KB)158,animate_icon_src.zipAnimated Icon on Titlebar of a window(48KB)159,msdi1632.zipMultiSingle (MSDI) Document interface(77KB)160,msdidao.zipMultiSingle (MSDI) Document interface with DAO doc(508KB)161,ScreenSwitch_demo.zipMultiple Views Using SDI(26KB)162,multiview.zipMultiple views for a single document (MDI) 3(86KB)163,WinMenu_demo.zipHome made MDI windows list in Window menu(21KB)164,SdiMulti.zipSDI Interface with Multi-Views and Multi-Splitters(88KB)165,DocViewInDll_demo.zipSeparating the views of an MDI application into different DLLs(60KB)166,MultiFrame_demo.zipMultiple frame windows in SDI application(76KB)167,mrcext.zipResizable Docking Window(862KB)168,sizing.zipSizing TabControlBar(46KB)169,devstudio.zipAnother DevStudio-alike DialogBar(43KB)170,docking.zipResizable Docking Window 2(98KB)171,simple_splitter.zipGeneral Purpose Splitter Class(43KB)172,cxysplitter.zipA pair of splitter classes used in dialogbox(21KB)173,dynamic_splitter.zipSplitter Window - "True" dynamic splitter window(52KB)174,outlook_style.zipOutook Style Splitter Bar(59KB)175,minsplit.zipMinimum size splitter(36KB)176,scrbsplt.zipRemoving and reapplying splitter windows on-the-fly in Scribble with a custom splitter window class(157KB)177,switchviews_in_splitter.zipSwitching views in splitter panes (SDI)(44KB)178,rulers_src.zipImplementing Rulers inside of Splitter Panes(5KB)179,dynamic1.zipDifferent Views In Dynamic Splitter(202KB)180,dialogstartupanimation.zipThis sample shows you how to create dialog startup animation like that of Window 98'menu(18KB)181,yqeditgridcontrol.zipa grid control that enable keyboard input. That is to say, you can write data in it. (31KB)182,switchmdiviews.zipThis sample shows you how to switch from one view to the other in a MDI splitter window application(31KB) 183,yqmdireplaceview.zipThis sample shows you how to replace different views in a MDI splitter window application(36KB) 184,switchview.zipThis sample shows you how to switch from one MDI window to another by using the "Ctrl Tab" key.(29KB) 185,filterreturnkey.zipThis sample shows you how to trap, filter the ENTER and ESCAPE key of a dialog box (17KB)186,filterkey.zipThis sample shows you how to filter a certain key and mask that key(18KB)187,editenter.zipThis sample shows you how to use RETURN key to switch among edit controls of a dialog box(18KB)188,dialoghook.zipThis sample shows you how to set keyboard hook function of a dialog box to trap RETURN ,ESCAPE key.(17KB) 189,contexthelp.zipThis sample shows you how to create context sensitive help of a control of a dialog box(26KB) 190,traparrokey.zipThis sample describes how to trap arrow keys in an control of a dialog box (18KB)191,yqadvancedbtn.zipOwner draw hot button support both bitmap and icon, with flat, gripper property. (108KB)192,drawlistbo.zipOwner draw CTabCtrl with flat gripper property (40KB)193,startupanimation.zipCreate Window startup animation, including several kind of animation style, very interesting(23KB) 194,flatlistbox.zipusing a unique way to implement flat attribute( other than those published on the codegurn), as well as hot ,gripper attribute.(21KB) 195,yqhoteditctrl.zipCreate edit control with Hot , flat, gripper. separator attributes (21KB)196,3dmdishadow.zipCreate 3D shadow of a MDI frame windows(32KB) 197,3dsdishadow.zipCreate 3D shadow of a SDI frame windows(29KB)198,getfile.zipA DDX routine for MFC to retrieve filenames(29KB)199,splasher.zipAn improved splash screen component for MFC(62KB)200,pushpin.zipA pushpin button MFC class(12KB)201,getfolder.zipA DDX routine for MFC to retrieve folders(30KB)202,ntray.zipAn MFC class to manipulate tray icons(17KB)203,hlinkctrl.zipAn MFC class to support hyperlinks on windows and dialogs(16KB)204,icondialog.zipAn icon selection dialog class for MFC(12KB)205,pushpinframe.zipAn MFC class to provide property dialogs ala Developer Studio(16KB)206,mappin.zipAn MFC class to implement map pins(286KB)207,iconcombobox.zip2 MFC classes to implement icon selection combo boxes(19KB)208,menuex_demo.zipImplementing an Ownerdrawn menu (35KB)209,bcmenu261.zipCool Owner Drawn Menus with BitmapsVersion 2.61(70KB)210,dynmenu.zipSome handy functions for adding and deleting submenus and menuitems in runtime (16KB)211,gradientmenu.zipCreate Popup menus in MFC with a gradient and text on the left side (89KB)212,menuicon_demo.zipGive your apps a unique look by adding a logo to your menu(48KB)213,bcgbappwizard.zipBCGControlBar library version 4.6(2121KB)214,mpcstatusbar.zipAn enhanced CStatusBar to easily and dynamically add/remove controls on a status bar (48KB)215,textonlystatusbar.zipAn easy to use and implement Text Only Status Bar with Tool tip text extracted from the status bar panes. (39KB)216,progressbar.zipShowing progress bar in a status bar pane(33KB)217,sizecbar_src.zipDevStudio-like docking window (64KB)218,sizing_tabct1_demo.zipCreates a dockable and resizable control bar. (46KB)219,dockview.zipA fairly simple way to incoporate views into sizing control bars(69KB)220,spin_slide_toolbar.zipHow to create toolbars with spinners and/or sliders(48KB)221,tearoffrebars_prj.zipThis article Implements the functionality similar to the Office 2000 toolbars(26KB)222,flatbar.zipA flat toolbar implementation that does not require the updated common controls library from Internet Explorer. (197KB)223,toolbar_droparrow_demo.zipDemonstrates how to use the new toolbar styles to add dropdown arrows to toolbar buttons (28KB)224,dynamictb.zipA simple tutorial that shows how to dynamically replace toolbars at runtime (35KB)225,toolbar_docking_demo.zipDemonstrates how to dock toolbars side-by-side (29KB)226,tapetoolbar.zipA spectacular variation on toolbars (35KB)227,chevions.zipAn introduction to using the cool new toolbar chevrons (18KB)228,toolgroupmanager.zipA reusable template class for managing multiple toolbars, only one of which is displayed at a time(30KB)229,toolbar_hotbuttons_demo.zipDemonstrates how to add rollover buttons to your toolbar(30KB)230,toolbar.zipWTL Tool Bar Drop-Down Extension(64KB)231,win95asm.zipIntroduction to Menus(113KB)232,outbar.zipCGfxOutBarCtrl, an Outlook98 bar-like control(163KB)233,tabstatus.zipAdvanced UI - MDI list in the status bar (and a custom Window List dialog)(62KB)234,gfxlist.zipList Control - Enhanced list control(1544KB)235,maillook.zipInternet Mail Look(42KB)236,cdxcdynamic.zipDynamic child window repositioning for dialogs, property sheets, form views and any other CWnd derived classes. (227KB)237,voicecmd.zipVoice Command Enabling Your Software (27KB)238,cj60lib.zipMFC Extension Library - CJ60 Version 6.07(1100KB)239,infobar.zipInformation Bar (62KB)240,switcher.zipA Switcher Control (like the Windows Task Bar) (40KB)
* 讀者來函 / 1 * 第㆓版序 / 5 第㆒版序/ 7 目錄/ 13 第0章 你㆒定要知道(導讀) / 27 這本書適合誰/ 27 你需要什麼技術基礎/ 29 你需要什麼軟硬體環境/ 29 讓我們使用同㆒種語言/ 30 本書符號習慣/ 34 磁片內容與安裝/ 34 範例程式說明/ 34 與前版本之差異/ 39 如何聯絡作者/ 40 第㆒篇 勿在浮砂築高臺 - 本書技術前提/ 001 第1章 Win32 程式基本觀念/ 003 Win32 程式開發流程/ 005 需要什麼函式庫(.LIB) / 005 需要什麼表頭檔(.H) / 006 深入淺出 MFC 14 以訊息為基礎,以事件驅動之/ 007 ㆒個具體而微的 Win32 程式/ 009 程式進入點 WinMain / 015 視窗類別之註冊與視窗之誕生/ 016 訊息迴路/ 018 視窗的生命㆗樞 - 視窗函式/ 019 訊息映射(Message Map)雛形/ 020 對話盒的運作/ 022 模組定義檔(.DEF) / 024 資源描述檔(.RC) / 024 Windows 程式的生與死/ 025 閒置時間的處理:OnIdle / 027 * Console 程式 / 028 * Console 程式與DOS 程式的差別/ 029 * Console 程式的編譯聯結/ 031 * JBACKUP:Win32 Console 程式設計/ 032 * MFCCON:MFC Console 程式設計/ 035 * 什麼是 C Runtime Library 的多緒版本/ 038 行程與執行緒(Process and Thread) / 039 核心物件/ 039 ㆒個行程的誕生與死亡/ 040 產生行程/ 041 ㆒個執行緒的誕生與死亡/ 044 * 以 _beginthreadex 取代CreateThread / 046 執行緒優先權(Priority) / 048 * 多緒程式設計實例/ 050 目 錄 15 第2章 C++ 的重要性質/ 055 類別及其成員 - 談封裝(encapsulation) / 056 基礎類別與衍生類別 - 談繼承(Inheritance)/ 057 this 指標/ 061 虛擬函式與多型(Polymorphism) / 062 類別與物件大解剖/ 077 Object slicing 與虛擬函式/ 082 靜態成員(變數與函式) / 085 C++ 程式的生與死:兼談建構式與解構式/ 088 * ㆕種不同的物件生存方式/ 090 * 所謂 "Unwinding" / 092 執行時期型別資訊(RTTI) / 092 動態生成(Dynamic Creation) / 095 異常處理(Exception Handling) / 096 Template / 100 Template Functions / 101 Template Classes / 104 Templates 的編譯與聯結/ 106 第3章 MFC 六大關鍵技術之模擬/ 109 MFC 類別階層/ 111 Frame1 範例程式/ 111 MFC 程式的初始化過程/ 115 Frame2 範例程式/ 118 RTTI(執行時期型別辨識) / 122 CRuntimeClass 與類別型錄網/ 123 DECLARE_DYNAMIC / IMPLEMENT_DYNAMIC 巨集/ 125 Frame3 範例程式/ 132 深入淺出 MFC 16 IsKindOf(型別辨識) / 140 Frame4 範例程式/ 141 Dynamic Creation(動態生成) / 143 DECLARE_DYNCREATE / IMPLEMENT_DYNCREATE 巨集/ 144 Frame6 範例程式/ 151 Persistence(永續生存)機制/ 160 Serialize(資料讀寫) / 161 DECLARE_SERIAL/IMPLEMENT_SERIAL 巨集/ 167 沒有範例程式/ 170 Message Mapping(訊息映射) / 170 Frame7 範例程式/ 181 Command Routing(命令繞行) / 191 Frame8 範例程式/ 203 * 本章回顧/ 216 第㆓篇 欲善工事先利其器- Visual C++ 5.0 開發工具 / 217 第4章 Visual C++ - 整合性軟體開發環境/ 219 安裝與組成/ 220 ㆕個重要的工具/ 234 內務府總管:Visual C++ 整合開發環境/ 236 關於project / 237 關於工具設定/ 241 Source Browser / 243 Online Help / 247 除錯工具/ 249 VC++ 除錯器/ 251 Exception Handling / 255 目 錄 17 程式碼產生器 - AppWizard / 257 東圈西點完成MFC 程式骨幹/ 258 Scribble Step0 / 270 威力強大的資源編輯器 / 294 Icon 編輯器/ 295 Cursor 編輯器/ 296 Bitmap 編輯器/ 297 ToolBar 編輯器/ 297 VERSIONINFO 資源編輯器/ 299 String Table 編輯器/ 300 Menu 編輯器/ 301 Accelerator 編輯器/ 303 Dialog 編輯器/ 304 * Console 程式的專案管理 / 305 第㆔篇 淺出 MFC 程式設計/ 309 第5章 總觀 Application Framework / 311 什麼是 Application Framework / 311 侯捷怎麼說/ 312 我怎麼說/ 314 別㆟怎麼說 / 317 為什麼使用 Application Framework / 321 Microsoft Foundation Class(MFC) / 324 白頭宮女話㆝寶:Visual C++ 與MFC / 327 縱覽MFC / 329 General Purpose classes / 330 Windows API classes / 333 深入淺出 MFC 18 Application framework classes / 334 High level abstractions / 334 Afx 全域函式/ 335 * MFC 巨集(macros) / 335 * MFC 資料型態(data type) / 338 第6章 MFC 程式設計導論 - MFC 程式的生死因果/ 343 不㆓法門:熟記 MFC 類別的階層架構/ 346 需要什麼函式庫(.LIB) / 347 需要什麼含入檔(.H) / 349 簡化的 MFC 程式架構 - 以Hello MFC 為例/ 351 Hello 程式原始碼/ 352 MFC 程式的來龍去脈/ 357 我只借用兩個類別:CWinApp 和CFrameWnd / 358 CWinApp - 取代 WinMain 的㆞位/ 359 CFrameWnd - 取代WndProc 的㆞位/ 362 引爆器 - Application object / 364 隱晦不明的WinMain / 366 AfxWinInit - AFX 內部初始化動作/ 370 CWinApp::InitApplication / 372 CMyWinApp::InitInstance / 374 CFrameWnd::Create 產生視窗(並註冊視窗類別) / 376      * 奇怪的視窗類別名稱 Afx:b:14ae:6:3e8f / 387 視窗顯示與更新/ 389 CWinApp::Run - 程式生命的活水源頭/ 390 把訊息與處理函式串接在㆒起:Message Map 機制/394 來龍去脈總整理/ 397 Callback 函式/ 398 目 錄 19 * 閒置時間(idle time)的處理:OnIdle / 403 Dialog 與Control / 406 通用對話盒(Common Controls) / 407 本章回顧/ 409 第7章 簡單而完整:MFC 骨幹程式/ 411 不㆓法門:熟記 MFC 類別的階層架構/ 411 MFC 程式的 UI 新風貌/ 412 Document/View支撐你的應用程式/ 419 利用 Visual C++ 工具完成 Scribble step0 / 423 骨幹程式使用哪些 MFC 類別? / 423 Document Template 的意義/ 430 Scribble 的 Document/View 設計/ 436 視窗的誕生/ 438 工具列和狀態列的誕生(Toolbar & Status bar) / 440 滑鼠拖放(Drag and Drop) / 442 訊息映射(Message Map) / 445 標準選單 File/Edit/View/Window/Help / 446 對話盒/ 449 改用CEditView / 450 第㆕篇 深入 MFC 程式設計/ 453 第8章 Document-View 深入探討/ 455 為什麼需要 Document-View(形而㆖)/ 455 Document / 457 View / 458 Document Frame(View Frame) / 459 深入淺出 MFC 20 Document Template / 459 CDocTemplate 管理 CDocument / CView / CFrameWnd / 460 Scribble Step1 的 Document(資料結構設計) / 468 MFC Collection Classes 的選用/ 469 Template-Based Classes / 471 Template-Based Classes 的使用方法/ 471 CScribbleDoc 的修改/ 473 SCRIBBLEDOC.H / 475 SCRIBBLEDOC.CPP / 477 文件:㆒連串的線條/ 481 CScribbleDoc 的成員變數/ 481 CObList / 481 CScribbleDoc 的成員函式/ 482 線條與座標點/ 484 CStroke 的成員變數/ 484 CArray / 484 CStroke 的成員函式/ 484 Scribble Step1 的View:資料重繪與編輯/ 487 CScribbleView 的修改/ 488 SCRIBBLEVIEW.H / 488 SCRIBBLEVIEW.CPP / 489 View 的重繪動作 - GetDocument 和OnDraw / 493 CScribbleView 的成員變數/ 493 CScribbleView 的成員函式/ 493 View 與使用者的交談(滑鼠訊息處理實例) / 495 ClassWizard 的輔佐/ 496 WizardBar 的輔佐/ 498 Serialize:物件的檔案讀寫/ 498 目 錄 21 Serialization 以外的檔案讀寫動作/ 499 檯面㆖的 Serialize 動作/ 501 檯面㆘的 Serialize 寫檔奧秘/ 507 檯面㆘的 Serialize 讀檔奧秘/ 514 DYNAMIC / DYNCREATE / SERIAL ㆔巨集/ 522 Serializable 的必要條件/ 527 CObject 類別/ 529 IsKindOf / 529 IsSerializable / 530 CObject::Serialize / 531 CArchive 類別/ 531 operator<< 和 operator>> / 532 效率考量/ 536 自定 SERIAL 巨集給抽象類別使用/ 537 在 CObList ㆗加入 CStroke 以外的類別/ 537 Document 與 View 交流 - 為 Scribble Step4 做準備/ 543 第9章 訊息映射與命令繞行/ 547 到底要解決什麼/ 547 訊息分類/ 549 萬流歸宗 Command Target(CCmdTarget) / 550 ㆔個奇怪的巨集,㆒張巨大的網/ 551 DECLARE_MESSAGE_MAP 巨集/ 552 訊息映射網的形成:BEGIN_/ON_/END_ 巨集/ 544 米諾托斯(Minotauros)與西修斯(Theseus) / 560 兩萬五千里長征 - 訊息的流竄/ 566 直線㆖溯(㆒般 Windows 訊息) / 567 拐彎㆖溯(WM_COMMAND 命令訊息) / 572 深入淺出 MFC 22 羅塞達碑石:AfxSig_xx 的秘密/ 580 Scribble Step2:UI 物件的變化/ 585 改變選單/ 585 改變工具列/ 588 利用 ClassWizard 連接命令項識別碼與命令處理函式/ 590 維護 UI 物件狀態(UPDATE_COMMAND_UI) / 594 本章回顧/ 599 第10 章 MFC 與對話盒/ 601 對話盒編輯器/ 602 利用 ClassWizard 連接對話盒與其專屬類別/ 606 PENDLG.H / 610 PENDLG.CPP / 610 對話盒的訊息處理函式/ 613 MFC ㆗各式各樣的MAP / 615 對話盒資料交換與查核(DDX & DDV) / 617 MFC ㆗各式各樣的DDx_ 函式/ 621 如何喚起對話盒/ 622 本章回顧/ 625 第11 章 View功能之加強與重繪效率之提昇/ 627 同時修改多個Views:UpdateAllViews 和OnUpdate / 629 在 View ㆗定義㆒個hint / 631 把 hint 傳給OnUpdate / 635 利用 hint 增加重繪效率/ 637 可捲動的視窗:CScrollView / 640 大視窗㆗的小窗口:Splitter / 650 分裂視窗的功能/ 650 目 錄 23 分裂視窗的程式概念/ 651 分裂視窗之實作/ 653 本章回顧/ 657 第12 章 印表與預覽/ 659 概觀/ 659 列印動作的背景原理/ 663 MFC 預設的印表機制/ 669 Scribble 列印機制的補強/ 685 印表機的頁和文件的頁/ 685 配置 GDI 繪圖工具/ 687 尺寸與方向:關於映像模式(座標系統) / 688 分頁/ 693 表頭(Header)與表尾(Footer)/ 695 動態計算頁碼/ 696 列印預覽(Print Preview) / 697 本章回顧/ 698 第13 章 多重文件與多重顯示/ 701 MDI 和SDI / 701 多重顯像(Multiple Views) / 703 視窗的動態分裂/ 704 視窗的靜態分裂/ 707    CreateStatic 和CreateView / 709 視窗的靜態㆔叉分裂/ 711 Graph 範例程式/ 713 靜態分裂視窗之觀念整理/ 724 同源視窗/ 725 深入淺出 MFC 24 CMDIFrameWnd::OnWindowNew / 726 Text 範例程式/ 727 非制式作法的缺點/ 734 多重文件/ 736 新的 Document 類別/ 736 新的 Document Template / 739 新的 UI 系統/ 740 新文件的檔案讀寫動作/ 742 * 第14 章 MFC 多緒程式設計(Multi-threaded Programming in MFC) / 745 從作業系統層面看執行緒/ 745 ㆔個觀念:模組、行程、執行緒/ 746 執行緒優先權(Priority) / 748 執行緒排程(Scheduling) / 751 Thread Context / 751 從程式設計層面看執行緒/ 752 Worker Threads 和 UI Threads / 754 錯誤觀念/ 754 正確態度/ 755 MFC 多緒程式設計/ 755 探索CWinThread / 755 產生㆒個 Worker Thread / 759 產生㆒個 UI Thread / 761 執行緒的結束/ 763 執行緒與同步控制/ 763 MFC 多緒程式實例/ 766 目 錄 25 * 第15 章 定製㆒個AppWizard / 771 到底 Wizard 是什麼? / 733 Custom AppWizard 的基本操作/ 774 剖析 AppWizard Components / 779 Dialog Templates 和 Dialog Classes / 780 Macros / 781 Directives / 783 動手修改 Top Studio AppWizard / 784 利用資源編輯器修改 IDD_CUSTOM1 對話窗畫面 / 785 利用 ClassWizard 修改 CCustom1Dlg 類別/ 785 改寫 OnDismiss 虛擬函式,在其㆗定義macros / 787 修改 text template / 788 Top Studio AppWizard 執行結果/789 更多的資訊/ 790 * 第16 章 站㆖眾㆟的肩膀 - 使用 Components 和 ActiveX Controls / 791 什麼是 Component Gallery / 792 使用Components / 795 Splash screen / 795 System Info for About Dlg / 797 Tips of the Day / 798 Components 實際運用:ComTest 程式/ 799 修改 ComTest 程式內容/ 818 使用 ActiveX Controls / 822 ActiveX Control 基礎觀念:Properties、Methods、Events / 823 ActiveX Controls 的五大使用步驟/ 825 使用 "Grid" ActiveX Control:OcxTest 程式 / 827 深入淺出 MFC 26 第五篇 附錄/ 843 附錄A 無責任書評:從搖籃到墳墓 - Windows 的完全學習/ 845 * 無責任書評:MFC ㆕大㆝王/ 856 附錄B Scribble Step5 程式原始碼列表/ 873 附錄C Visual C++ 5.0 MFC 範例程式總覽/ 915 * 附錄D 以 MFC 重建 Debug Window(DBWIN) / 921 第

111,115

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • AIGC Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

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