Click here to Skip to main content
15,887,776 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Odd CEdit Pin
Paul Hooper12-Jan-04 21:34
Paul Hooper12-Jan-04 21:34 
GeneralModify Registry Data Pin
SiddharthAtw12-Jan-04 20:06
SiddharthAtw12-Jan-04 20:06 
Generalreferer url. Pin
murali_utr12-Jan-04 19:37
murali_utr12-Jan-04 19:37 
GeneralI Got it Pin
murali_utr12-Jan-04 20:12
murali_utr12-Jan-04 20:12 
GeneralWh_Getmessage hook Pin
percyvimal12-Jan-04 19:26
percyvimal12-Jan-04 19:26 
GeneralFace Facial Detection Pin
Goh Hui Beng12-Jan-04 19:21
Goh Hui Beng12-Jan-04 19:21 
GeneralRe: Face Facial Detection Pin
l a u r e n12-Jan-04 21:19
l a u r e n12-Jan-04 21:19 
GeneralScrollbar problems between 2K and 95/98 Pin
ithacanz12-Jan-04 18:30
ithacanz12-Jan-04 18:30 
Hi all,
I'm writing an application need to run on pretty much every version of Windows out there. The only major problem I've struck is with scrollbars. I've laid out the child windows within the parent window, calculated the range required, populated a SCROLLINFO struct and used SetScrollInfo() to pass it in. On Win98SE onwards, it all works perfectly - but on 95 and 98, no scrollbars. However, if you open a couple of files, forcing it through the process it will start working - and from then on, perfect. In case it helps, the relevant piece of code (for the vertical scrollbar. HOrziontal shows the same symptoms):

(m_ScrollableArea.Height() is a CRect, and yes, it does have valid values)

<br />
	SCROLLINFO	SI ;<br />
	SI.cbSize	= sizeof( SCROLLINFO ) ;<br />
	SI.fMask	= SIF_RANGE ;<br />
	<br />
	SI.nMin		= 0 ;<br />
	int M		= m_ScrollableArea.Height()/m_YIncrement ;<br />
	m_YRange	= ( M*m_YIncrement ) + m_YIncrement ;<br />
	SI.nMax		= m_YRange ;	 <br />
	M		= 0 ;<br />
	<br />
	SetScrollInfo( SB_VERT, &SI, TRUE ) ;<br />


Any ideas? It's like the API on 95/98 is acting unreliably, but I've got to be doing something to make it happen. Any help would be greatly appreciated - this one is driving me nuts... Confused | :confused:



--Shane
You can sometimes count every orange on a tree, but never all the treees in a single orange.

GeneralRe: Scrollbar problems between 2K and 95/98 Pin
ohadp12-Jan-04 18:57
ohadp12-Jan-04 18:57 
GeneralRe: Scrollbar problems between 2K and 95/98 Pin
ithacanz14-Jan-04 10:19
ithacanz14-Jan-04 10:19 
GeneralRe: Scrollbar problems between 2K and 95/98 Pin
ohadp14-Jan-04 20:14
ohadp14-Jan-04 20:14 
GeneralRe: Scrollbar problems between 2K and 95/98 Pin
ithacanz15-Jan-04 9:57
ithacanz15-Jan-04 9:57 
GeneralTextControl as in MSPaint Pin
swarnamanoo12-Jan-04 18:19
swarnamanoo12-Jan-04 18:19 
General(psapi.h) RemoteAdmin sample Code Pin
~Pete12-Jan-04 16:45
~Pete12-Jan-04 16:45 
GeneralRe: (psapi.h) RemoteAdmin sample Code Pin
Selvam R12-Jan-04 18:35
professionalSelvam R12-Jan-04 18:35 
GeneralRe: (psapi.h) RemoteAdmin sample Code Pin
Anonymous13-Jan-04 14:23
Anonymous13-Jan-04 14:23 
Generalstring var help Pin
trask89912-Jan-04 16:01
trask89912-Jan-04 16:01 
GeneralRe: string var help Pin
trask89912-Jan-04 16:04
trask89912-Jan-04 16:04 
GeneralRe: string var help Pin
bryce12-Jan-04 16:24
bryce12-Jan-04 16:24 
GeneralRe: string var help Pin
Jijo.Raj12-Jan-04 17:53
Jijo.Raj12-Jan-04 17:53 
GeneralRe: string var help Pin
ZoogieZork12-Jan-04 17:31
ZoogieZork12-Jan-04 17:31 
GeneralRe: string var help Pin
trask89913-Jan-04 9:14
trask89913-Jan-04 9:14 
GeneralCDWordArray and sort Pin
pranavamhari12-Jan-04 16:00
pranavamhari12-Jan-04 16:00 
GeneralRe: CDWordArray and sort Pin
bryce12-Jan-04 17:52
bryce12-Jan-04 17:52 
GeneralRe: CDWordArray and sort Pin
pranavamhari12-Jan-04 20:20
pranavamhari12-Jan-04 20:20 

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.