Click here to Skip to main content
16,007,885 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How/Can I create an array of controls? Pin
VanHlebar23-Nov-02 6:11
VanHlebar23-Nov-02 6:11 
GeneralRe: How/Can I create an array of controls? Pin
Paul M Watt23-Nov-02 6:44
mentorPaul M Watt23-Nov-02 6:44 
GeneralRe: How/Can I create an array of controls? Pin
georgiek5023-Nov-02 6:44
georgiek5023-Nov-02 6:44 
GeneralRe: How/Can I create an array of controls? Pin
Peter Molnar23-Nov-02 7:02
Peter Molnar23-Nov-02 7:02 
Generalms word automation Pin
pnpfriend23-Nov-02 3:28
pnpfriend23-Nov-02 3:28 
QuestionHow to control a threads CPU utilization? Pin
mediamaster4023-Nov-02 3:16
mediamaster4023-Nov-02 3:16 
AnswerRe: How to control a threads CPU utilization? Pin
mediamaster4025-Nov-02 3:11
mediamaster4025-Nov-02 3:11 
GeneralCListCtrl - Selection Problem Pin
#realJSOP23-Nov-02 0:54
professional#realJSOP23-Nov-02 0:54 
VC6, SP5

I have a CListCtrl in a CDialog. In ClassWizard, I turned on "Show Selection Always", and in OnInitDialog, I've turned on the LVS_EX_FULLROWSELECT | LVS_EX_ONECLICKACTIVATE extended styles for the list control.

After clicking on an item, it highlights (as expected). When I click on an area of the listcontrol that does not have an item, the highlight goes away for the last selected item, but the program still thinks it's selected.

If I click a number of times in the empty area, the highlight comes and goes. If I click on the item again, the highlight comes back.

I want to do one of two things:

1) Do not allow the highlight to be removed from the selected item when I click on the empty control area (this is the preferred method).

2) Un-select the item when I click on the empty control area.

I'm trying to avoid subclassing the CListCtrl because there's a lot more issues involved with doing so.

Opinion - MFC's CListCtrl class SUCKS.




------- signature starts

"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

Please review the Legal Disclaimer in my bio.

------- signature ends
GeneralRe: CListCtrl - Selection Problem Pin
Gary R. Wheeler23-Nov-02 1:50
Gary R. Wheeler23-Nov-02 1:50 
GeneralRe: CListCtrl - Selection Problem Pin
#realJSOP23-Nov-02 3:22
professional#realJSOP23-Nov-02 3:22 
GeneralRe: CListCtrl - Selection Problem Pin
Jean-Marc Molina3-Oct-03 1:12
Jean-Marc Molina3-Oct-03 1:12 
GeneralDialogues en MFC Pin
bumper23-Nov-02 0:54
bumper23-Nov-02 0:54 
GeneralRe: Dialogues en MFC Pin
Gary R. Wheeler23-Nov-02 2:00
Gary R. Wheeler23-Nov-02 2:00 
GeneralRe: Dialogues en MFC Pin
bumper23-Nov-02 2:40
bumper23-Nov-02 2:40 
GeneralRe: Dialogues en MFC Pin
Maximilien24-Nov-02 16:19
Maximilien24-Nov-02 16:19 
GeneralRe: Dialogues en MFC Pin
bumper25-Nov-02 11:08
bumper25-Nov-02 11:08 
GeneralPreserving clipboard content Pin
mariuszpopiolek22-Nov-02 23:49
mariuszpopiolek22-Nov-02 23:49 
GeneralRe: Preserving clipboard content Pin
Gary R. Wheeler23-Nov-02 2:11
Gary R. Wheeler23-Nov-02 2:11 
GeneralRe: Preserving clipboard content Pin
mariuszpopiolek23-Nov-02 2:22
mariuszpopiolek23-Nov-02 2:22 
GeneralRe: Preserving clipboard content Pin
Paul M Watt23-Nov-02 6:57
mentorPaul M Watt23-Nov-02 6:57 
GeneralRe: Preserving clipboard content Pin
mariuszpopiolek23-Nov-02 13:22
mariuszpopiolek23-Nov-02 13:22 
GeneralConstants in cmath Pin
Anonymous22-Nov-02 23:22
Anonymous22-Nov-02 23:22 
GeneralConstants in <cmath> Pin
Anonymous22-Nov-02 23:21
Anonymous22-Nov-02 23:21 
QuestionHow to detect network connection? Pin
Wenrich22-Nov-02 23:06
Wenrich22-Nov-02 23:06 
AnswerRe: How to detect network connection? Pin
Gary R. Wheeler23-Nov-02 2:25
Gary R. Wheeler23-Nov-02 2:25 

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.