Click here to Skip to main content
15,892,927 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Loading a font from a font file Pin
rotu27-Aug-04 0:17
rotu27-Aug-04 0:17 
QuestionHow to access an URL from within VC++/VB code( Not .NET) Pin
JM9325-Aug-04 13:45
JM9325-Aug-04 13:45 
AnswerRe: How to access an URL from within VC++/VB code( Not .NET) Pin
l a u r e n25-Aug-04 15:37
l a u r e n25-Aug-04 15:37 
AnswerRe: How to access an URL from within VC++/VB code( Not .NET) Pin
palbano25-Aug-04 17:53
palbano25-Aug-04 17:53 
AnswerRe: How to access an URL from within VC++/VB code( Not .NET) Pin
Ravi Bhavnani26-Aug-04 3:18
professionalRavi Bhavnani26-Aug-04 3:18 
GeneralMFC and its BOOL type... Pin
0v3rloader25-Aug-04 13:33
0v3rloader25-Aug-04 13:33 
GeneralRe: MFC and its BOOL type... Pin
Michael Dunn25-Aug-04 14:22
sitebuilderMichael Dunn25-Aug-04 14:22 
GeneralRe: MFC and its BOOL type... Pin
palbano25-Aug-04 17:55
palbano25-Aug-04 17:55 
GeneralRe: MFC and its BOOL type... Pin
Abin26-Aug-04 1:05
Abin26-Aug-04 1:05 
GeneralRe: MFC and its BOOL type... Pin
Antony M Kancidrowski26-Aug-04 2:37
Antony M Kancidrowski26-Aug-04 2:37 
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 

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.