本文介绍了将控件放置在对话框上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

CButton* btnApply = new CButton;
CRect recto;
GetClientRect(&recto);
ScreenToClient(&recto);
btnApply->Create((LPCTSTR)"Apply", WS_CHILD | WS_VISIBLE, recto,this, 1234);
btnApply->ShowWindow(SW_SHOW);



不显示按钮控件.上面的代码是什么问题?



The button control is not displayed. What is the problem in the above code?

推荐答案


这篇关于将控件放置在对话框上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-17 14:18