freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

計(jì)算機(jī)專業(yè)中英文翻譯---windows編程模式-展示頁

2025-05-26 17:59本頁面
  

【正文】 g out a dialog box, for example, you select elements (buttons, list boxes, and so forth) from an array of icons called a control palette, and you position and size the elements with the mouse. Microsoft Visual C++ has graphics resource editors for all standard resource formats. Memory Management With each new version of Windows, memory management gets easier. If you39。t need to know the type of video board and printer attached to the system. Instead of addressing the hardware, your program calls GDI functions that reference a data structure called a device context. Windows maps the device context structure to a physical device and issues the appropriate input/output instructions. The GDI is almost as fast as direct video access, and it allows different applications written for Windows to share the display. ResourceBased Programming To do datadriven programming in MSDOS, you must either code the data as initialization constants or provide separate data files for your program to read. When you program for Windows, you store data in a resource file using a number of established formats. The linker bines this binary resource file with the C++ piler39。s the job of the application framework. Be aware, though, that the Windows message processing requirement imposes a lot of structure on your program. Don39。s menu layout. You can define your own messages, which your program can send to any window on the desktop. These userdefined messages actually make C++ look a little like Smalltalk. Don39。s WinMain function. Somewhere your application must have WinMain, which performs some specific tasks. Its most important task is creating the application39。t currently program for plain MSDOS, you39。附錄 1 外文原文 [8] The Windows Programming Model No matter which development tools you use, programming for Windows is different from oldstyle batchoriented or transactionoriented programming. To get started, you need to know some Windows fundamentals. As a frame of reference, we39。ll use the wellknown MSDOS programming model. Even if you don39。re probably familiar with it. Message Processing When you write an MSDOSbased application in C, the only absolute requirement is a function named main. The operating system calls main when the user runs the program, and from that point on, you can use any programming structure you want. If your program needs to get user keystrokes or otherwise use operating system services, it calls an appropriate function, such as getchar, or perhaps uses a characterbased windowing library. When the Windows operating system launches a program, it calls the program39。s main window, which must have its own code to process messages that Windows sends it. An essential difference between a program written for MSDOS and a program written for Windows is that an MSDOSbased program calls the operating system to get user input, but a Windowsbased program processes user input via messages from the operating system. NOTE Many development environments for Windows, including Microsoft Visual C++ version with the Microsoft Foundation Class (MFC) Library version , simplify programming by hiding the WinMain function and structuring the messagehandling process. When you use the MFC library, you need not write a WinMain function but it is essential that you understand the link between the operating system and your programs. Most messages in Windo
點(diǎn)擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計(jì)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1