hi,all Oh, i just want to know how to and a scroolbar to the CCtrlListWnd. my ability is poor. so i want to learn. your suggestion is very useful. /********************************************************************************************/ // Author: sound_of_nature // Email: sound_of_nature@hotmail.com // Verion: 1.0 // Date: 5/12/2008 /**********************************************
Hi,all The scrollbar belong to the CCtrlListWnd class. wish someone can help me or give some suggestion. thanks very much ! the code is following. /********************************************************************************************/ // Author: sound_of_nature // Email: sound_of_nature@hotmail.com // Verion: 1.0 // Date: 5/12/2008 /******************************************
Hi ,Joseph M. Newcomer [MVP]. Thanks For your help. With your suggestion,now i change some code. i use it as following m_pWndCtrl = new CCtrlListWnd; m_pWndCtrl->Create(WS_VISIBLE|WS_VSCROLL|WS_CHILD,CRect(0,0,400,400),this,1);ITEMINFOR ItemInfo; ItemInfo.m_ctlType = EditCTL; ItemInfo.m_nStyle =ES_WANTRETURN|ES_MULTILINE|ES_AUTOVSCROLL; for(int i=0;i<10;i++) {ItemInfo.m_nPos = i; m_pWndCtrl
See below... On Mon, 12 May 2008 16:24:39 +0800, "Sunny" <sound_of_nature@hotmail.com> wrote: hello every one. I write a Ctrl,named CCtrlListWnd,which is derived from CWnd. and i want to know how to add a ScroolBar to the CCtrlListWnd. Can some one help me.Thanks for your attention and suggestion. The code is below: /********************************************************
Christof Meerwald wrote: Adding another scale method in browser/h/dlgscal.h might fix it (but this is completely untested as I am unable to build the browser project on Linux): WRect scale( const WRect & r ) { WRect res( r.x() * _average.x() / DIALOG_HORIZONTAL_SCALE, r.y() * _average.y() / DIALOG_VERTICAL_SCALE,