Click here to Skip to main content
15,927,213 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: REGISTRY KEY: How to read/write Pin
James R. Twine10-May-07 8:53
James R. Twine10-May-07 8:53 
QuestionRe: REGISTRY KEY: How to read/write Pin
J_E_D_I10-May-07 15:25
J_E_D_I10-May-07 15:25 
AnswerRe: REGISTRY KEY: How to read/write Pin
Richard Andrew x6410-May-07 18:11
professionalRichard Andrew x6410-May-07 18:11 
GeneralRe: REGISTRY KEY: How to read/write Pin
J_E_D_I12-May-07 7:27
J_E_D_I12-May-07 7:27 
AnswerRe: REGISTRY KEY: How to read/write Pin
ThatsAlok16-May-07 22:36
ThatsAlok16-May-07 22:36 
QuestionSelectively delete in multi column List Control Pin
ldsdbomber10-May-07 5:57
ldsdbomber10-May-07 5:57 
AnswerRe: Selectively delete in multi column List Control Pin
David Crow10-May-07 7:36
David Crow10-May-07 7:36 
AnswerRe: Selectively delete in multi column List Control Pin
Mark Salsbery10-May-07 7:38
Mark Salsbery10-May-07 7:38 
ldsdbomber wrote:
Is there an easy way to delete a specific column on a specific row?


For a row subitem to be considered "deleted", that means its text is empty, correct?
If so, the only way I see to "delete" the subitem is to set its text to "" like you are doing.

I personally prefer to use LPSTR_TEXTCALLBACK instead of storing the text in the control.
Then when a LVN_GETDISPINFO notification is received, I can supply the text for all the items
and subitems.

This allows me to store objects of any type (representing the listview items) in any container
I prefer to use (array, etc).

Then, to "delete" an item, I can set a flag indicating the item is "deleted" or actually change
the text in my list object and refresh/repaint the control. Then the updated text is changed
the next time the LVN_GETDISPINFO is received for the item/subitem. (if that makes sense Smile | :) )

ldsdbomber wrote:
1) if the table hasnt been clicked there is no selection mark.


If you aren't relying on the user to select items then you'll have to keep track of what items
are in the list yourself. Another advantage of storing the data separately as I described above.

ldsdbomber wrote:
2) you can only click on the 1st column in a particular row


Even with the LVS_EX_FULLROWSELECT extended style?

Mark




"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

GeneralRe: Selectively delete in multi column List Control Pin
ldsdbomber11-Jun-07 3:08
ldsdbomber11-Jun-07 3:08 
GeneralRe: Selectively delete in multi column List Control Pin
ldsdbomber11-Jun-07 3:13
ldsdbomber11-Jun-07 3:13 
GeneralRe: Selectively delete in multi column List Control Pin
ldsdbomber11-Jun-07 3:14
ldsdbomber11-Jun-07 3:14 
GeneralRe: Selectively delete in multi column List Control Pin
Mark Salsbery11-Jun-07 6:43
Mark Salsbery11-Jun-07 6:43 
GeneralRe: Selectively delete in multi column List Control Pin
ldsdbomber11-Jun-07 23:05
ldsdbomber11-Jun-07 23:05 
GeneralRe: Selectively delete in multi column List Control Pin
Mark Salsbery12-Jun-07 6:46
Mark Salsbery12-Jun-07 6:46 
Questioncomparison between string and int Pin
prithaa10-May-07 5:07
prithaa10-May-07 5:07 
AnswerRe: comparison between string and int Pin
led mike10-May-07 5:18
led mike10-May-07 5:18 
AnswerRe: comparison between string and int Pin
David Crow10-May-07 5:54
David Crow10-May-07 5:54 
GeneralRe: comparison between string and int Pin
prithaa11-May-07 23:53
prithaa11-May-07 23:53 
AnswerRe: comparison between string and int Pin
Nelek13-May-07 20:07
protectorNelek13-May-07 20:07 
QuestionQuestion about fonts Pin
KellyR10-May-07 4:35
KellyR10-May-07 4:35 
AnswerRe: Question about fonts Pin
Mark Salsbery10-May-07 5:37
Mark Salsbery10-May-07 5:37 
GeneralRe: Question about fonts Pin
KellyR10-May-07 7:23
KellyR10-May-07 7:23 
AnswerRe: Question about fonts Pin
James R. Twine10-May-07 8:57
James R. Twine10-May-07 8:57 
Questionsave in c++ Pin
lavy288310-May-07 3:55
lavy288310-May-07 3:55 
AnswerRe: save in c++ Pin
toxcct10-May-07 4:11
toxcct10-May-07 4:11 

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.