-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
基于windows gdi+的常用自绘控件 #1
Comments
我是个菜鸡 救救我吧 |
继承自 ImageButton?可否贴出precreate里set的调用代码? |
@Qianzujin SetButtonImage有没有触发断言? |
@Qianzujin 使用gdi+库需要注意先初始化gdi+对象 2.在合适的位置初始化gdi+ -> CGdiPlusMakeUi::CGdiPlusMakeUiInit(); |
@Qianzujin 之后方可使用对应的自绘控件,另外button需要被自绘制的话,要设置button本身的属性为Owner Draw为true, |
@Qianzujin 本UI库中的所有自绘控件绘制方式,均使用Windows中的gdi+库自带的相关对象,例如gdi::image,可以看看gdi+对应的使用方式。 |
就是oninit哪里没有写 |
请问大佬还有没有别的自绘控件呀。。。。 你的控件我都用上了 都挺好用 |
木有了 |
1:通过对UI(CDialog(CWnd) -> CButton(CImageButton) -> CRaidoButton -> CCheckButton -> CSpinButton -> CComboBox -> CStatic)等的重绘,实现MFC常用控件的自定义。
The text was updated successfully, but these errors were encountered: