Search found 6 matches

by Melvin0619
2004-08-08 12:33
Forum: Feature Discussion (Archived)
Topic: 0.307 don't support Chinese file name
Replies: 64
Views: 19040

likewise i add proportion=((float)cur+(float)page)/(float)max; if(proportion>=m_AutoScrollLevel || MDIGetActive() != m_hWnd) to the addline function. m_AutoScrollLevel ranges from 0.0 to infinite ,which means the autoscroll degree. if it is 0,it always scroll wherever the scrollbar is. if it is grea...
by Melvin0619
2004-08-08 12:18
Forum: Feature Discussion (Archived)
Topic: 0.307 don't support Chinese file name
Replies: 64
Views: 19040

hehe,i try the proportion idea,and it is really valid. here is my code LRESULT onSetFocus(UINT /* uMsg */, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/) { int max,cur,page; SCROLLINFO info; info.cbSize=sizeof(info); info.fMask=SIF_ALL; ctrlClient.GetScrollInfo(SB_VERT,&info); max=info.nM...
by Melvin0619
2004-08-08 11:29
Forum: Feature Discussion (Archived)
Topic: 0.307 don't support Chinese file name
Replies: 64
Views: 19040

such as the trouble of scroll position restoring when switching hub window yes.. that was a harder nut to crack I did this (excerpts from BCDC++ svn 413:414): yeah,this check do make sure the scrollbar is at the bottom if it was. but how about the position which is 10 pixels far from the bottom,the...
by Melvin0619
2004-08-07 06:47
Forum: Feature Discussion (Archived)
Topic: 0.307 don't support Chinese file name
Replies: 64
Views: 19040

hehe, it now is patched by ourselves which is provided at http://fenxiang.3322.net/p2p/
,and tested by many people.

I think the scroll problem is not well solved because of something else.

such as the trouble of scroll position restoring when switching hub window
by Melvin0619
2004-08-03 10:59
Forum: Feature Discussion (Archived)
Topic: 0.307 don't support Chinese file name
Replies: 64
Views: 19040

IIRC, cur+page didn't always work correctly, so in BCDC++ we used: ye,i tried the function you provided,but failed. the function always returned true. after debugging,i found that (sbi.rcScrollBar.bottom - sbi.rcScrollBar.top) + si.nPos > si.nMax was always true when the scroll was at the top,i got...
by Melvin0619
2004-08-03 00:12
Forum: Feature Discussion (Archived)
Topic: 0.307 don't support Chinese file name
Replies: 64
Views: 19040

:) hehe, the next problem waiting to be solved is auto scrolling in the mainchat, like the way it scrolls in "private chat". ye,i had looked over the addline function in hubframe.cpp,and found that ctrlClient.PosFromChar always returns P(-1,-1),that's why r.PtInRect(p) is always false.I suppose the...