已阅读5页,还剩14页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1 WINDOWS zt 1 1 Windows Windows Windows Windows Windows Windows Windows Windows Windows 1 2 Windows Windows Microsoft 1983 11 1985 11 1 01 1 01 1987 11 Window s 2 0 1 3 1 3 1 1 3 2 1 3 3 1 3 4 Windows 1 3 5 Windows 98 Windows NT 1 3 6 1 3 7 1 3 8 1 3 9 ALT File F 1 3 10 1 4 functionName id arg1 arg2 functionName id Windows arg1 Windows Windows 1 5 Windows Windows Windows NULL Windows 32 Windows 32 HANDLE Windows 3 1 Windows 3 1 Windows 3 1 HANDLE HANDLE HWND HDC HMENU HICON HCURSOR HBRUSH HPEN HFONT HINSTANCE HLOCAL HGLOBAL 1 6 Windows Windows C C Windows Windows 1 6 API Application Program Interface Windows 32 API HANDLE 32 16 API Window s 32 API 32 API Windows Windows h define PASCAL pascal define NEAR near define FAR far typedef unsigned char BYTE typedef unsigned short Word typedef unsigned long DWORD typedef long LONG typedef char PSTR typedef char NEAR NPSTR typedef char FAR LPSTR typedef void VOID typedef int LPINT typedef LONG PASCAL FAR FARPROC Windows h typedef MSG WNDCLASS PAINTSTRUCT POINT RECT MSG MSG typedef struct tagMSG HWND hWnd UINT message WPARAM wParam 16 LPARAM lParam 32 DWORD time POINT pt MSG typedef MSG FAR LPMSG POINT typedef struct tagPOINT int x X int y Y POINT typedef POINT FAR LPPOINT Windows h LPPOINT LPMSG LP NP P Windows h LPRECT RECT Windows h C C const LPC NPC PC C typedef const POINT FAR LPCPOINT typedef const REC FAR LPCRECT const const const const const const POINT pt LPCPOINT lpPoint LPPOINT lpPoint void fun LPPOINT lppt LPCPOINT lpPoint fun lpPoint const const Windows h const Windows h denfine WM QUIT 0X0012 WM QUIT 0X0012 CS Class Style IDI IDentity of Icon IDC IDentity of Cursor WS Windows Style CW Create Windows WM Windows Message DT Drawing Text Windows WORD wOffset w WORD DWORD dwValue dw DWORD Windows b BOOL by BYTE c char dw DWORD fn i l LONG lp long pointer n np near pointer p s sz 0 w WORD x short X y short Y Windows Windows 2 3 CreateWindow 1 7 Winodws 1 7 1 Windows EXE DLL Dynamic Linking Library DLL Windows Windows API Windows USER EXE KERNEL EXE GDI EXE 1 7 2 Windows Windows Windows C DLL Windows Windows Windows MS DOS MS DOS Windows Windows Windows Windows 1 7 3 Windows Windows Windows Windows Windows Wi ndows Windows Windows 1 7 4 DLL MS DOS C DLL DLL MS DOS Windows DLL DLL Windows DLL 1 7 5 API Windows API 600 Windows API 1 7 6 Windows Windows Windows DLL DLL DLL DLL DLL DLL Windows API Windows API IMPORT LIB DLL DLL Windows IMPORT LIB Windows API D LL Windows Windows Windows Windo ws Windows Windows Windows Win dows Windows Pascal C Pascal C Pascal C C Windows h WINAPI FAR PASCAL DLL DLL CALLBACK FAR PASCAL 1 8 Windows Windo ws Windows Windows 1 Windows 2 Windows 3 DDE Wi ndows 4 Windows Windows MSG msg while GetMessage DispatchMessage GetMessage MSG TranslateMessage DispatchMessage 1 10 1 9 Windows Windows 1 9 1 Windows WNDCLASS Windows h WNDCLASS typedef struct tagWNDCLASS DWORD style WNDPROC lpfnWndProc int cbClsExtra int cbWndExtra HINSTANCE hinstance HICON hicon HCURSOR hCursor HBRUSH hbrBackground LPCSTR lpszMenuName LPCSTR lpszClassName WNDCLASS WNDCLASS lpszClassName lpfnWndProc LRESULT CALLBACK WndProc HWND hWnd UINT message WPARAM wParam LPARAM lParam CALLLBACK hWnd message wParam lParam hIcon hCursor hbrBackground style CS HREDRAW CS VREDRAW CS BYTEALIGNCLIENT X CS BYTEALIGNWINDOW X CS DBLCLKS CS GLOBALCLASS CS NOCLOSE Close 14 WINDOWS zt lpszMenuName 0 NULL NU LL hInstance DLL DLL WNDCLASS cbClsExtra cbWndExtra cbClsExtra cbWndExtra SetClassWord SetCl assLong GetClassWord GetClassLong SetWindowWor d SetWindowLong GetWindowWord GetWindowLong WNDCLASS RegisterClas s Windows Regi sterClass BOOL RegisterClass LPWNDCLASS lpWndClass WNDCLASS Windows lpszCla ssName WNDCLASS wndclass wndclass style CS HREDRAWCS VREDRAW wndclass lpfnWndProc WndProc wndclass cbClsExtra 0 wndclass cbWndExtra 0 wndclass hInstance hInstance wndclass hIcon LoadIcon NULL IDI APPLICATION wndclass hCursor LoadCursor NULL IDC ARROW wndclass hbrBackground HBRUSH GetStockObject BLACK BRUSH wndclass lpszMenuName NULL wndclass lpszClassName Window if RegisterClass NULL CreateWindow 1 2 Windows h 1 2 WS BORDER WS CAPTION WS CHILDWINDOW or WS CHILD WS POPUP WS CLIPCHILDREN WS CLIPSIBLINGS WS CHI LD WS DISABLED WS DLGFRAME WS HSCROLL WS VSCROLL WS ICONIC WS OVERLAPPEDWINDOWS WS MAXIMIZE WS MINIMIZE WS MAXIMIZEBOX WS MINIMIZEBOX WS OVERLAPPED WS POPUP WS CHILD WS SYSMENU WS THICKFRAME WS VISIBLE Windows h WS OVERLAPPEDWINDOW WS POPUPWIND OW WS OVERLAPPEDWINDOW define WS OVERLAPPEDWINDOW WS OVERLAPPED WS CAPTION WS SYSMENU WS THICKFRAME WS MINIMIZEBOX WS MAXIMIZEBOX WS POPUPWINDW define WS POPUPWINDOW WS BORDER WS POPUP WS SYSMENU WS POPUPWINDOW WS CAPTION WS SYSMENU WS GROUP WS TABSTOP CreateWindow x y CW USEDFAULT Wind ows nWindth nHeight CW USEDEFAULT Windows Windows 1 9 1 Window HWND hWnd hWnd CreateWindow Windows Sample Program WS OVERLAPPEDWINDOW CW USEDEFAULT CW USEDEFAULT CW USEDEFAULT CW USEDEFAULT NULL NULL hInstance hInstance NULL 1 9 3 LRESULT CALLBACK WndProc HWND hwnd UNIT message WPARAM wParam LPARAM lParam return DefWindowProc hwnd message wParam lParam Windows DefWindowProc Windows Windows Windows hWnd return Windows 1 9 4 message wParam lParam wParam lPara m 32 switch 0 DefWindowProc DefWindowProc LRESULT CALLBACK WndProc HWND hwnd UINT message WPARAM wParam LPARAM lParam switch message case 1 1 return 1 case 2 2 return 2 case n n return n return DefWindowProc hwnd message wParam lParam Windows WM Window Message WM DESTROY LRESULT CALLBACK WndProc HWND hwnd UINT message WPARAM wParam LPARAM lParam switch message case WM DESTROY PostQuitMessage 0 return 0 return DefWindowProc hwnd message wParam lParam 1 11 Windows WM DESTROY 1 10 Windows C SamllTalk Windows Windows Wind ows Windows C switch Windows Windows Windows Windows WM KEYDOW N WM MOUSEMOVE WM PAINT Windows WM KEY DOWN Windows Windo ws MS DOS MS DOS DefWindowProc DefWindowP roc DefWindowProc DefWindowProc DefWindowProc DefWindowProc CreateWindow Windows Windows GetWindowWord GetWindowLong Windows C C Windows Windows Windows C C DefWindowProc Windows 32 LRESULT C C S endMessage Windows SendMessage hwnd WM USER WPARAM 5 MAKELPARAM 89 3267 LPARAM MAKEPARAM 32 MAKEPARAM LPARAM LOWORD HIWORD WM USE R WORD wStart LOWORD lParam WORD wStart LOWORD lParam MAKELRESULT MAKELPARAM LRESULT MAKELONG LONG LRESULT LONG HIWORD LOWORD Windows Windows Win dows MS DOS 1 1 1 1 Windows MS DOS 1 1 DOS Windows 1 11 Windows 1 9 C C Wi ndows Windows WinMain 1 1 c include LRESULT CALLBACK WndProc HWND UINT WPARAM LPARAM int PASCAL WinMain HINSTANCE hInstance HINSTANCE hPrevInstance LPSTR lpszCmdLine int nCmdShow char szAppName Window HWND hwnd MSG msg WNDCLASS wndclass if hPrevInstance wndclass style CS VREDRAW CS HREDRAW wndclass lpfnWndProc WndProc wndclass cbClsExtra 0 wndclass cbWndExtra 0 wndclass hInstance hInstance wndclass hIcon LoadIcon hInstance IDI APPLICATION wndclass hCursor LoadCursor NULL IDC ARROW wndclass hbrBackground HBRUSH GetStockObject BLACK BRUSH wndclass lpszMenuName NULL wndclass lpszClassName szAppName if RegisterClass hwnd CreateWindow szAppName Sample Program WS OVERLAPPEDWINDOW CW USEDEFAULT CW USEDEFAULT CW USEDEFAULT CW USEDEFAULT NULL NULL hInstance NULL ShowWindow hwnd nCmdShow UpdateWindow hwnd while GetMessage DispatchMessage return msg wParam WinMain Windows in t WinMain MS DOS C main WinMain hInstance hPrevInstance Windows hInstance NULL Windows hPrevInstace Windows hPrevInstance NULL Windows hPrevInstance NULL Windows lpszCmdLine Sample exe Programming Windows lpszCmdLine Programming Windows nCmdShow int Windows SW SHOWNORMAL SW SHOWMINNOACTIVE SW Show Window Sample CPP 1 3 1 3 1 ShowWindow BOOL ShowWindow HWND hWnd int nCmdShow nCmdShow SW HIDE SW MINIMIZE SW SHOW SW SHOWMAXIMIZED SW SHOWMINIMIZED SW SHOWMINNOACTIVE SW
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- T/CSPIA 005-2021公共安全视频图像分析多算法应用技术要求
- T/YYHG 0006-2023注射剂配液分配自控系统实施规范
- T/HAEPCI 45-2022农田土壤重金属污染修复与管控方案编制规范
- T/CIE 207-2024Linux操作系统内核接口调用参考规范
- T/CAOE 47-2023大洋多金属结核资源量估算技术指南
- T/CSAE 465-2025乘用车智能底盘矢量控制及舒适加减速控制道路测试方法
- 2025-2026学年黑龙江省鸡西市初中数学九年级期末上册模考能力提升卷详细参考解析
- PHP 初级面试题及详细答案(真实企业版)
- 2026年教育系统后备干部笔试试题及答案
- PET-CT物理师专业考核试题及详细答案
- 2026年建筑安全员C证考试真题及答案
- 2026年纪检监察案件查办政策考试题及答案
- 2026年江苏省粮食集团有限责任公司人员招聘笔试备考题库及详细答案解析
- 2026年普法考试题目(+答案解析)
- 《物流场所消防安全管理》XFT 3026-2026
- 2026年秋新版道德与法治(道法)六年级上册全册分课时作业附答案
- 2025年县属国有企业招聘考试笔试试题(含答案)
- 可压缩流体管道阻力降计算表
- 分布式光伏发电系统建设规范
- 企业商业秘密保护技术应用调研报告
- 物业服务满意度调研问卷设计
评论
0/150
提交评论