ucgui源码解析之WM窗口结构

2019-11-1209:53:11来源:DeepBlue_T1000 评论 1,378 views

•wm核心是WM_CreateWindowAsChild(…);每个窗口和控件都是由它创建,它主要完成以下内容:
•申请内存GUI_ALLOC_AllocZero();
•链接每块分配出的内存_AddToLinList();(WM__FirstWin指向第一块内存,WM_HBKIN,即桌面窗口)
•根据控件有无父窗口,确定控件指向是否指向父窗口:WM__InsertWindowIntoList(hWin, hParent);
•根据参数无效化窗口,便于自绘。WM_InvalidateWindow(hWin);
•返回窗口句柄。即申请到内存块首地址。
file
file
file

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: