[求助]Dialog中添加CScrolview的问题??
<P><FONT face=宋体>我想在对话框中显示一张图,因为图比较大,需用到CScrollview,可是用下列语句实现后,滚动条不能动,为什么呢???<BR><BR>CScrollView *pView = (CScrollView* )RUNTIME_CLASS(bmp272)->CreateObject();<BR>pView->Create(NULL, NULL, AFX_WS_DEFAULT_VIEW,<BR>CRect(5,5,590,620), this, IDB_BITMAP17);<BR>pView->ShowWindow(SW_SHOW);<BR>pView->OnInitialUpdate();<BR>CSize sizeTotal;<BR>CBitmap bmp;<BR>bmp.LoadBitmap(IDB_BITMAP17);<BR>BITMAP bmpstr;<BR>bmp.GetBitmap(&bmpstr);<BR>sizeTotal.cx = bmpstr.bmWidth;<BR>sizeTotal.cy = bmpstr.bmHeight;<BR>pView->SetScrollSizes(MM_TEXT, sizeTotal);</FONT></P>
页:
[1]