2013年6月7日

Dialog上添加ScrollView

摘要: 主要步骤如下: 继承CScrollView,生成CMyScrollView。 在CMyScrollView中添加一个变量和一个函数:声明如下:public: void SetTotalSizes(int nWidth, int nHeight);private: CSize m_nScrollSize;实现如下:当然要注意变量的初始化 void CMyScrollView::SetTotalSizes(int nWidth, int nHeight) { m_nScrollSize.cx = nWidth; m_nScrollSize.cy = nHeight; ... 阅读全文

posted @ 2013-06-07 23:40 Waaaaaall-E 阅读(846) 评论(0) 推荐(0)

导航