Click here to Skip to main content
15,886,519 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC and its BOOL type... Pin
Tim Smith26-Aug-04 3:01
Tim Smith26-Aug-04 3:01 
GeneralRe: MFC and its BOOL type... Pin
Henry miller26-Aug-04 7:53
Henry miller26-Aug-04 7:53 
GeneralStatically Link ActiveX control Pin
Aaron Schaefer25-Aug-04 13:27
Aaron Schaefer25-Aug-04 13:27 
Generalcscrollview snaps back to zero when you scroll past 32760 pixels Pin
mickelliot25-Aug-04 12:35
mickelliot25-Aug-04 12:35 
GeneralRe: cscrollview snaps back to zero when you scroll past 32760 pixels Pin
mickelliot25-Aug-04 12:41
mickelliot25-Aug-04 12:41 
GeneralRe: cscrollview snaps back to zero when you scroll past 32760 pixels Pin
Joaquín M López Muñoz25-Aug-04 13:03
Joaquín M López Muñoz25-Aug-04 13:03 
GeneralRe: cscrollview snaps back to zero when you scroll past 32760 pixels Pin
mickelliot29-Aug-04 8:44
mickelliot29-Aug-04 8:44 
Generalsolution to this problem Pin
mickelliot31-Aug-04 11:08
mickelliot31-Aug-04 11: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 10:47
Anonymous25-Aug-04 10:47 
GeneralRe: Accessing a Class Variable Using A Void Pointer Pin
Doug Mitchell25-Aug-04 11:21
Doug Mitchell25-Aug-04 11:21 
GeneralRe: Accessing a Class Variable Using A Void Pointer Pin
Joaquín M López Muñoz25-Aug-04 12:40
Joaquín M López Muñoz25-Aug-04 12:40 
GeneralRe: Accessing a Class Variable Using A Void Pointer Pin
Anonymous25-Aug-04 12:42
Anonymous25-Aug-04 12:42 
GeneralRe: Accessing a Class Variable Using A Void Pointer Pin
Joaquín M López Muñoz25-Aug-04 12:49
Joaquín M López Muñoz25-Aug-04 12:49 
GeneralRe: Accessing a Class Variable Using A Void Pointer Pin
Anonymous25-Aug-04 14:12
Anonymous25-Aug-04 14:12 
GeneralRe: Accessing a Class Variable Using A Void Pointer Pin
DRHuff25-Aug-04 17:14
DRHuff25-Aug-04 17:14 
GeneralRe: Accessing a Class Variable Using A Void Pointer Pin
Anonymous25-Aug-04 18:11
Anonymous25-Aug-04 18:11 
GeneralButting in... Pin
palbano25-Aug-04 18:06
palbano25-Aug-04 18:06 
Generaldumb command line question Pin
kfaday25-Aug-04 9:55
kfaday25-Aug-04 9:55 
GeneralRe: dumb command line question Pin
David Crow25-Aug-04 10:10
David Crow25-Aug-04 10:10 
GeneralRe: dumb command line question Pin
DRHuff25-Aug-04 10:13
DRHuff25-Aug-04 10:13 
GeneralBolding dates in CDateTimeCtrl Pin
DRHuff25-Aug-04 9:42
DRHuff25-Aug-04 9:42 
GeneralRe: Bolding dates in CDateTimeCtrl Pin
David Crow25-Aug-04 10:17
David Crow25-Aug-04 10:17 
GeneralRe: Bolding dates in CDateTimeCtrl Pin
DRHuff25-Aug-04 10:38
DRHuff25-Aug-04 10:38 
GeneralStop removal of null characters Pin
Tom Wright25-Aug-04 9:18
Tom Wright25-Aug-04 9:18 
GeneralRe: Stop removal of null characters Pin
David Crow25-Aug-04 10:14
David Crow25-Aug-04 10: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.