03 2009 档案
摘要:Animal.h#ifndef ANIMAL_H_H#define ANIMAL_H_Hclass Animal{public:Animal(int height,int weight);void eat();void sleep();virtual void breathe();//=0;};#endifAnimal.cpp#include "Animal.h"#include <iost...
阅读全文
摘要:操作系统是通过消息机制(Message)来实现的。操作系统将每个事件都包装成一个称为消息的结构体MSG来传递给应用程序,参看MSDN。MSG结构定义如下: typedef struct tagMSG { HWND hwnd; UINT message; WPARAM wParam; LPARAM lParam; DWORD time; POINT pt;} MSG; 句柄(HANDLE),资源...
阅读全文