Click here to Skip to main content
15,885,757 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: beginner, simple c question. [modified] Pin
Richard MacCutchan15-Jan-10 5:38
mveRichard MacCutchan15-Jan-10 5:38 
JokeRe: beginner, simple c question. Pin
loyal ginger15-Jan-10 4:58
loyal ginger15-Jan-10 4:58 
GeneralRe: beginner, simple c question. Pin
dxlee15-Jan-10 5:13
dxlee15-Jan-10 5:13 
AnswerRe: beginner, simple c question. Pin
CPallini15-Jan-10 5:05
mveCPallini15-Jan-10 5:05 
AnswerRe: beginner, simple c question. Pin
Chris Losinger15-Jan-10 5:07
professionalChris Losinger15-Jan-10 5:07 
GeneralRe: beginner, simple c question. Pin
Richard MacCutchan15-Jan-10 6:55
mveRichard MacCutchan15-Jan-10 6:55 
JokeRe: beginner, simple c question. Pin
CPallini15-Jan-10 8:36
mveCPallini15-Jan-10 8:36 
QuestionIndex of rows in report view list control with groups enabled is random order Pin
Keith Worden15-Jan-10 2:49
Keith Worden15-Jan-10 2:49 
I use custom draw in report view list controls to alternate the background colour of each row to make it easier to read. This works fine. I've just started an application which would benefit from using groups in list controls. Ok, didn't take too much effort to get this working. The only problem now though is that the row background colours don't alternate any more - I get the same colour together for some adjacent rows.

I have found that in group mode the index of each row no longer refers to the physical position on the screen, the index of each row can in fact be anything! [within the total number] So I can no longer use the index to work out which background colour each row should be.

For example, with 5 items in a group of 4 and a group of 1, when I load the data the indexes are 0, 1, 2, 3, 4. When I sort the first column in reverse order the indexes become 1, 2, 3, 4, 0. The more rows I have the more random it gets.

Any ideas how I can work out what is the visible index?
AnswerRe: Index of rows in report view list control with groups enabled is random order Pin
Richard MacCutchan15-Jan-10 4:50
mveRichard MacCutchan15-Jan-10 4:50 
GeneralRe: Index of rows in report view list control with groups enabled is random order Pin
Keith Worden15-Jan-10 5:29
Keith Worden15-Jan-10 5:29 
GeneralRe: Index of rows in report view list control with groups enabled is random order Pin
Richard MacCutchan15-Jan-10 6:48
mveRichard MacCutchan15-Jan-10 6:48 
GeneralRe: Index of rows in report view list control with groups enabled is random order Pin
Keith Worden15-Jan-10 7:00
Keith Worden15-Jan-10 7:00 
GeneralRe: Index of rows in report view list control with groups enabled is random order Pin
Richard MacCutchan15-Jan-10 7:21
mveRichard MacCutchan15-Jan-10 7:21 
GeneralRe: Index of rows in report view list control with groups enabled is random order Pin
Keith Worden15-Jan-10 7:31
Keith Worden15-Jan-10 7:31 
QuestionOne Doubt Pin
ashwath197915-Jan-10 2:48
ashwath197915-Jan-10 2:48 
AnswerRe: One Doubt Pin
Maximilien15-Jan-10 2:55
Maximilien15-Jan-10 2:55 
GeneralRe: One Doubt Pin
ashwath197915-Jan-10 17:23
ashwath197915-Jan-10 17:23 
AnswerRe: One Doubt Pin
CPallini15-Jan-10 2:56
mveCPallini15-Jan-10 2:56 
AnswerRe: One Doubt Pin
LunaticFringe15-Jan-10 2:58
LunaticFringe15-Jan-10 2:58 
AnswerRe: One Doubt Pin
CODEPC15-Jan-10 5:16
CODEPC15-Jan-10 5:16 
QuestionExtracting information from Win32 Dll in C/C++ Pin
glitteringsound15-Jan-10 1:28
glitteringsound15-Jan-10 1:28 
AnswerRe: Extracting information from Win32 Dll in C/C++ [modified] Pin
Adam Roderick J15-Jan-10 1:37
Adam Roderick J15-Jan-10 1:37 
GeneralRe: Extracting information from Win32 Dll in C/C++ Pin
glitteringsound15-Jan-10 2:03
glitteringsound15-Jan-10 2:03 
GeneralRe: Extracting information from Win32 Dll in C/C++ Pin
CPallini15-Jan-10 2:10
mveCPallini15-Jan-10 2:10 
GeneralRe: Extracting information from Win32 Dll in C/C++ Pin
Adam Roderick J15-Jan-10 2:28
Adam Roderick J15-Jan-10 2:28 

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.