Click here to Skip to main content
15,923,689 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionlistbox Pin
Mohanraj D12-Jun-08 19:04
Mohanraj D12-Jun-08 19:04 
AnswerRe: listbox Pin
SandipG 12-Jun-08 19:11
SandipG 12-Jun-08 19:11 
GeneralRe: listbox Pin
Mohanraj D12-Jun-08 19:18
Mohanraj D12-Jun-08 19:18 
GeneralRe: listbox Pin
SandipG 12-Jun-08 19:25
SandipG 12-Jun-08 19:25 
GeneralRe: listbox Pin
Hamid_RT12-Jun-08 20:20
Hamid_RT12-Jun-08 20:20 
GeneralRe: listbox Pin
Nelek12-Jun-08 21:24
protectorNelek12-Jun-08 21:24 
GeneralRe: listbox Pin
Mohanraj D15-Jun-08 20:20
Mohanraj D15-Jun-08 20:20 
GeneralRe: listbox Pin
Nelek15-Jun-08 21:55
protectorNelek15-Jun-08 21:55 
Take a look into codeproject to have an idea about how it works is better than if I give you the solution.

Rows are ITEMS, columns are SUBITEMS.

You have to create the CListCtrl and determine how many columns are going to be there, for that... take a look into function SetExtendedStyle (...), struct LV_COLUMN, functions DeleteColumn (), InsertColumn ()...

then you have to insert the contents of each subitem (column) in one item (row), and when you have it, then add the row to the control, for that take a look into the struct LVITEM and function SetItem (), DeleteItem () or DeleteAllItems ().

Hope it helps

Regards.
--------
M.D.V. Wink | ;)

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Rating helpfull answers is nice, but saying thanks can be even nicer.

AnswerRe: listbox Pin
Rajesh R Subramanian12-Jun-08 19:17
professionalRajesh R Subramanian12-Jun-08 19:17 
QuestionOnTimer() in 2 seperate classes get crashed Pin
Anu_Bala12-Jun-08 19:01
Anu_Bala12-Jun-08 19:01 
QuestionRe: OnTimer() in 2 seperate classes get crashed Pin
_AnsHUMAN_ 12-Jun-08 19:11
_AnsHUMAN_ 12-Jun-08 19:11 
AnswerRe: OnTimer() in 2 seperate classes get crashed Pin
SandipG 12-Jun-08 19:13
SandipG 12-Jun-08 19:13 
GeneralRe: OnTimer() in 2 seperate classes get crashed Pin
Anu_Bala12-Jun-08 19:27
Anu_Bala12-Jun-08 19:27 
QuestionFind number of elements of an array Pin
CodingLover12-Jun-08 18:51
CodingLover12-Jun-08 18:51 
AnswerRe: Find number of elements of an array Pin
_AnsHUMAN_ 12-Jun-08 19:23
_AnsHUMAN_ 12-Jun-08 19:23 
NewsRe: Find number of elements of an array Pin
CodingLover12-Jun-08 19:28
CodingLover12-Jun-08 19:28 
AnswerRe: Find number of elements of an array Pin
Saurabh.Garg12-Jun-08 19:28
Saurabh.Garg12-Jun-08 19:28 
GeneralRe: Find number of elements of an array Pin
CodingLover12-Jun-08 19:34
CodingLover12-Jun-08 19:34 
GeneralRe: Pin
Saurabh.Garg12-Jun-08 19:38
Saurabh.Garg12-Jun-08 19:38 
GeneralRe: Pin
CodingLover12-Jun-08 19:46
CodingLover12-Jun-08 19:46 
GeneralRe: Pin
Saurabh.Garg12-Jun-08 19:56
Saurabh.Garg12-Jun-08 19:56 
AnswerRe: Find number of elements of an array Pin
Cedric Moonen12-Jun-08 20:09
Cedric Moonen12-Jun-08 20:09 
NewsRe: Find number of elements of an array Pin
CodingLover12-Jun-08 20:19
CodingLover12-Jun-08 20:19 
AnswerRe: Find number of elements of an array Pin
Michael Dunn13-Jun-08 10:45
sitebuilderMichael Dunn13-Jun-08 10:45 
QuestionGettin size of dialog template. Pin
progDes12-Jun-08 18:47
progDes12-Jun-08 18:47 

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.