humorly / windows-ui Goto Github PK
View Code? Open in Web Editor NEW基于windows gdi+的,常用的自绘MFC窗体、控件;可满足公司软件界面需求。
License: MIT License
基于windows gdi+的,常用的自绘MFC窗体、控件;可满足公司软件界面需求。
License: MIT License
因为想用来美化一下公司MFC软件,所以问一下开源协议。是属于作者免责,使用随意?
1:通过对UI(CDialog(CWnd) -> CButton(CImageButton) -> CRaidoButton -> CCheckButton -> CSpinButton -> CComboBox -> CStatic)等的重绘,实现MFC常用控件的自定义。
并在vs中将.h .cpp添加至工程
如果vs提示未包含pch.h,将全部stdafx.h替换成pch.h(vs版本导致预编译头名字不同)。
提示某些cpp文件不明错误的点出菜单[高级保存选项]修改格式:
将原先对话框继承的父类CDialogEx替换成COwnerDrawWindowDlg
[注意:对话框.cpp中的全部基于CDialogEx的调用过程也需要替换至COwnerDrawWindowDlg,且此时应当将ui中的img文件夹拷贝至程序当前所在目录
,否则没有对应的绘图效果];
COwnerDrawWindowDlg中OnInitDialog对gdi+进行了初始化,其他地方无需初始化,若工程没有任何对象继承至此,则需要寻找合适地方初始化gdi+,参考 #1 问题解决方案;
1 为控件添加变量
2 修改其所绑定变量类型
将原有的CCheckBox类型替换至COwnerDrawCheckButton,在此处须先包含OwnerDrawCheckButton.h
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.