Click here to Skip to main content
15,911,360 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SetWindowText gives me headache Pin
David Crow22-Dec-04 9:00
David Crow22-Dec-04 9:00 
GeneralRe: SetWindowText gives me headache Pin
Rick York22-Dec-04 13:05
mveRick York22-Dec-04 13:05 
GeneralRe: SetWindowText gives me headache Pin
toxcct22-Dec-04 18:43
toxcct22-Dec-04 18:43 
GeneralRe: SetWindowText gives me headache Pin
David Crow23-Dec-04 2:11
David Crow23-Dec-04 2:11 
GeneralPhone Number Format Pin
Anonymous22-Dec-04 6:31
Anonymous22-Dec-04 6:31 
GeneralRe: Phone Number Format Pin
David Crow22-Dec-04 8:13
David Crow22-Dec-04 8:13 
GeneralRe: Phone Number Format Pin
Anonymous22-Dec-04 9:36
Anonymous22-Dec-04 9:36 
GeneralScrollbar doesn't scroll all the way Pin
Budric B.22-Dec-04 4:49
Budric B.22-Dec-04 4:49 
Hi,
I'm havin a silly problem with a scroll bar. It works but it never scrolls all the way to the maximum range value.

For example here's the code:
<br />
		SCROLLINFO ScrollInfo;<br />
		ScrollInfo.cbSize = sizeof(ScrollInfo); <br />
		ScrollInfo.fMask = SIF_ALL;            <br />
		ScrollInfo.nMin = 0;                        <br />
		ScrollInfo.nMax = 125<br />
		ScrollInfo.nPage = ScrollInfo.nMax / 10;<br />
		ScrollInfo.nPos = 0;<br />
		ScrollInfo.nTrackPos = 0;				<br />
		m_ImageHorizontalScroll.SetScrollInfo(&ScrollInfo);	<br />
		int result = m_ImageHorizontalScroll.SetScrollPos(10);  //works<br />
		result = m_ImageHorizontalScroll.SetScrollPos(123);  //it appears to work<br />
		result = m_ImageHorizontalScroll.GetScrollPos();  //returns 113!!!  Where's the 123?<br />

So I have to set the nMax to my value + a fudge number? What should that number be?
Thanks.
GeneralChanging screen resolution in windows xp Pin
Mohammad A Gdeisat22-Dec-04 4:41
Mohammad A Gdeisat22-Dec-04 4:41 
GeneralRe: Changing screen resolution in windows xp Pin
David Crow22-Dec-04 5:07
David Crow22-Dec-04 5:07 
GeneralRe: Changing screen resolution in windows xp Pin
Mohammad A Gdeisat22-Dec-04 7:38
Mohammad A Gdeisat22-Dec-04 7:38 
GeneralStrange CTypedPtrArray error Pin
Polly Parrot22-Dec-04 3:31
Polly Parrot22-Dec-04 3:31 
Generalinserting bmp in file Pin
verma-rahul22-Dec-04 3:07
verma-rahul22-Dec-04 3:07 
GeneralRe: inserting bmp in file Pin
David Crow22-Dec-04 5:04
David Crow22-Dec-04 5:04 
GeneralRe: inserting bmp in file Pin
verma-rahul22-Dec-04 19:00
verma-rahul22-Dec-04 19:00 
Questionhow to prevent mfc dialog based app beign displayed on taskbar Pin
muharrem22-Dec-04 3:03
muharrem22-Dec-04 3:03 
AnswerRe: how to prevent mfc dialog based app beign displayed on taskbar Pin
Mohammad A Gdeisat22-Dec-04 8:03
Mohammad A Gdeisat22-Dec-04 8:03 
AnswerRe: how to prevent mfc dialog based app beign displayed on taskbar Pin
Mohammad A Gdeisat22-Dec-04 8:10
Mohammad A Gdeisat22-Dec-04 8:10 
QuestionSDI Project-How is a Dialog Resource loaded in a Window? Pin
jerry1211a22-Dec-04 2:32
jerry1211a22-Dec-04 2:32 
AnswerRe: SDI Project-How is a Dialog Resource loaded in a Window? Pin
Michael P Butler22-Dec-04 3:17
Michael P Butler22-Dec-04 3:17 
GeneralExport data from a process memory Pin
stumdoes22-Dec-04 1:17
stumdoes22-Dec-04 1:17 
GeneralRe: Export data from a process memory Pin
David Crow22-Dec-04 2:43
David Crow22-Dec-04 2:43 
GeneralRe: Export data from a process memory Pin
stumdoes22-Dec-04 4:45
stumdoes22-Dec-04 4:45 
GeneralRe: Export data from a process memory Pin
David Crow22-Dec-04 5:00
David Crow22-Dec-04 5:00 
GeneralRe: Export data from a process memory Pin
stumdoes22-Dec-04 5:17
stumdoes22-Dec-04 5:17 

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.