Click here to Skip to main content
15,567,466 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC and its BOOL type... Pin
Tim Smith26-Aug-04 4:01
Tim Smith26-Aug-04 4:01 
GeneralRe: MFC and its BOOL type... Pin
Henry miller26-Aug-04 8:53
Henry miller26-Aug-04 8:53 
GeneralStatically Link ActiveX control Pin
Aaron Schaefer25-Aug-04 14:27
Aaron Schaefer25-Aug-04 14:27 
Generalcscrollview snaps back to zero when you scroll past 32760 pixels Pin
mickelliot25-Aug-04 13:35
mickelliot25-Aug-04 13:35 
GeneralRe: cscrollview snaps back to zero when you scroll past 32760 pixels Pin
mickelliot25-Aug-04 13:41
mickelliot25-Aug-04 13:41 
GeneralRe: cscrollview snaps back to zero when you scroll past 32760 pixels Pin
Joaquín M López Muñoz25-Aug-04 14:03
Joaquín M López Muñoz25-Aug-04 14:03 
GeneralRe: cscrollview snaps back to zero when you scroll past 32760 pixels Pin
mickelliot29-Aug-04 9:44
mickelliot29-Aug-04 9:44 
Generalsolution to this problem Pin
mickelliot31-Aug-04 12:08
mickelliot31-Aug-04 12:08 
Wink | ;) Just in case anybody finds this post doing a google search or something, I found a solution to the problem at codeguru (http://www.codeguru.com/Cpp/W-D/doc_view/scrolling/comments.php/c3299/?thread=41682)

You just have to override onscroll as shown below:

BOOL <br />
CMyiew::OnScroll(UINT nScrollCode, UINT nPos, BOOL bDoScroll)<br />
{<br />
	if (GetTotalSize().cx >= SHRT_MAX || GetTotalSize().cy >= SHRT_MAX )<br />
	{	<br />
		SCROLLINFO info;<br />
		info.cbSize = sizeof(SCROLLINFO);<br />
		info.fMask = SIF_TRACKPOS;<br />
<br />
		//nPos is valid only is scroll code is SB_THUMBTRACK<br />
		if (LOBYTE(nScrollCode) == SB_THUMBTRACK)<br />
		{<br />
			GetScrollInfo(SB_HORZ, &info);<br />
			nPos = info.nTrackPos;<br />
		}<br />
		else if (HIBYTE(nScrollCode) == SB_THUMBTRACK)<br />
		{<br />
			GetScrollInfo(SB_VERT, &info);<br />
			nPos = info.nTrackPos;<br />
		}<br />
	}<br />
<br />
	BOOL ret = CScrollView::OnScroll(nScrollCode, nPos, bDoScroll);<br />
<br />
<br />
	return ret;<br />
}

GeneralAccessing a Class Variable Using A Void Pointer Pin
Anonymous25-Aug-04 11:47
Anonymous25-Aug-04 11:47 
GeneralRe: Accessing a Class Variable Using A Void Pointer Pin
Doug Mitchell25-Aug-04 12:21
Doug Mitchell25-Aug-04 12:21 
GeneralRe: Accessing a Class Variable Using A Void Pointer Pin
Joaquín M López Muñoz25-Aug-04 13:40
Joaquín M López Muñoz25-Aug-04 13:40 
GeneralRe: Accessing a Class Variable Using A Void Pointer Pin
Anonymous25-Aug-04 13:42
Anonymous25-Aug-04 13:42 
GeneralRe: Accessing a Class Variable Using A Void Pointer Pin
Joaquín M López Muñoz25-Aug-04 13:49
Joaquín M López Muñoz25-Aug-04 13:49 
GeneralRe: Accessing a Class Variable Using A Void Pointer Pin
Anonymous25-Aug-04 15:12
Anonymous25-Aug-04 15:12 
GeneralRe: Accessing a Class Variable Using A Void Pointer Pin
DRHuff25-Aug-04 18:14
DRHuff25-Aug-04 18:14 
GeneralRe: Accessing a Class Variable Using A Void Pointer Pin
Anonymous25-Aug-04 19:11
Anonymous25-Aug-04 19:11 
GeneralButting in... Pin
palbano25-Aug-04 19:06
palbano25-Aug-04 19:06 
Generaldumb command line question Pin
kfaday25-Aug-04 10:55
kfaday25-Aug-04 10:55 
GeneralRe: dumb command line question Pin
David Crow25-Aug-04 11:10
David Crow25-Aug-04 11:10 
GeneralRe: dumb command line question Pin
DRHuff25-Aug-04 11:13
DRHuff25-Aug-04 11:13 
GeneralBolding dates in CDateTimeCtrl Pin
DRHuff25-Aug-04 10:42
DRHuff25-Aug-04 10:42 
GeneralRe: Bolding dates in CDateTimeCtrl Pin
David Crow25-Aug-04 11:17
David Crow25-Aug-04 11:17 
GeneralRe: Bolding dates in CDateTimeCtrl Pin
DRHuff25-Aug-04 11:38
DRHuff25-Aug-04 11:38 
GeneralStop removal of null characters Pin
Tom Wright25-Aug-04 10:18
Tom Wright25-Aug-04 10:18 
GeneralRe: Stop removal of null characters Pin
David Crow25-Aug-04 11:14
David Crow25-Aug-04 11:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.