Click here to Skip to main content
15,914,500 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Window Style Pin
Leyu3-Nov-04 6:05
Leyu3-Nov-04 6:05 
GeneralBuilding own String class Pin
KernKraft3330-Oct-04 18:53
KernKraft3330-Oct-04 18:53 
GeneralRe: Building own String class Pin
Andrew Peace31-Oct-04 3:18
Andrew Peace31-Oct-04 3:18 
QuestionHow to get the image from a clistctrl? Pin
shibble30-Oct-04 13:00
shibble30-Oct-04 13:00 
AnswerRe: How to get the image from a clistctrl? Pin
Ravi Bhavnani30-Oct-04 15:39
professionalRavi Bhavnani30-Oct-04 15:39 
GeneralRe: How to get the image from a clistctrl? Pin
shibble30-Oct-04 23:16
shibble30-Oct-04 23:16 
GeneralRe: How to get the image from a clistctrl? Pin
Ravi Bhavnani31-Oct-04 6:02
professionalRavi Bhavnani31-Oct-04 6:02 
GeneralRe: How to get the image from a clistctrl? Pin
shibble31-Oct-04 7:02
shibble31-Oct-04 7:02 
Yeah it works fine! thx!
I got a new problem. I Fill a list control with stuff which is todo, i call it todolist.
The size of the ctrl displays 3 items without scrolling (item count varies).
I want to scroll to the current proccess item.
I´ve tried alot but didnt get any good result.
Here´s a code snipped:
<br />
			m_nTodoItem=nitem;<br />
			//Scrolling<br />
			m_pCtlListTodo->GetItemRect(0,rect,LVIR_ICON);<br />
			size.cy=0;<br />
			//m_pCtlListTodo->Scroll(-5000);<br />
			size.cy=nitem * rect.Height();<br />
			//scrollpos=m_pCtlListTodo->GetScrollPos(SB_VERT);<br />
			//size.cy-=scrollpos;<br />
			m_pCtlListTodo->SetScrollPos(SB_VERT,0);<br />
			m_pCtlListTodo->Scroll(size);<br />
			//scrollpos=rect.Height();<br />
	<br />
			m_pCtlListTodo->Scroll(size);<br />
			//m_pCtlListTodo->SetScrollPos(SB_VERT,scrollpos);<br />
			m_pCtlListTodo->SetSelectionMark(nitem);<br />

Sometimes just the bars scroll without the content.
How to scroll dynamicly with considering user actions.
Thx alot for help and sorry for bad english.
GeneralRe: How to get the image from a clistctrl? Pin
Ravi Bhavnani31-Oct-04 7:06
professionalRavi Bhavnani31-Oct-04 7:06 
GeneralRe: How to get the image from a clistctrl? Pin
shibble31-Oct-04 7:12
shibble31-Oct-04 7:12 
Questionhow to Pass arguments to main and returning values from a program... Pin
Kiran Satish30-Oct-04 11:08
Kiran Satish30-Oct-04 11:08 
AnswerRe: how to Pass arguments to main and returning values from a program... Pin
Ravi Bhavnani30-Oct-04 15:41
professionalRavi Bhavnani30-Oct-04 15:41 
GeneralDoing a program compares bubble sort and multithread sort... Pin
30-Oct-04 10:45
suss30-Oct-04 10:45 
GeneralYABQ (Yet Another Beginner Question) Pin
BeerFizz30-Oct-04 8:47
BeerFizz30-Oct-04 8:47 
Questionevent programming? Pin
Setesh8230-Oct-04 7:15
Setesh8230-Oct-04 7:15 
General2 MFC Questions from a newbie. Help please. Pin
Member 148206230-Oct-04 5:01
Member 148206230-Oct-04 5:01 
GeneralRe: 2 MFC Questions from a newbie. Help please. Pin
Member 148206230-Oct-04 5:04
Member 148206230-Oct-04 5:04 
GeneralRe: 2 MFC Questions from a newbie. Help please. Pin
Natural_Demon31-Oct-04 5:02
Natural_Demon31-Oct-04 5:02 
GeneralRe: 2 MFC Questions from a newbie. Help please. Pin
31-Oct-04 10:50
suss31-Oct-04 10:50 
GeneralRe: 2 MFC Questions from a newbie. Help please. Pin
Natural_Demon31-Oct-04 10:59
Natural_Demon31-Oct-04 10:59 
GeneralEdge Linking Algorithm Pin
gilazilla30-Oct-04 5:01
gilazilla30-Oct-04 5:01 
Generaldebugging dll's Pin
ddskid30-Oct-04 3:53
ddskid30-Oct-04 3:53 
GeneralRe: debugging dll's Pin
Member 148206231-Oct-04 11:31
Member 148206231-Oct-04 11:31 
QuestionMemory Leak...Any Help ? Pin
Amarelia30-Oct-04 1:10
Amarelia30-Oct-04 1:10 
AnswerRe: Memory Leak...Any Help ? Pin
BeerFizz30-Oct-04 5:48
BeerFizz30-Oct-04 5:48 

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.