Click here to Skip to main content
15,911,848 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Can you solve this? Pin
Chris Losinger24-May-02 9:28
professionalChris Losinger24-May-02 9:28 
GeneralRe: Can you solve this? Pin
24-May-02 9:39
suss24-May-02 9:39 
GeneralRe: Can you solve this? Pin
Chris Losinger24-May-02 9:53
professionalChris Losinger24-May-02 9:53 
GeneralRe: Can you solve this? Pin
25-May-02 15:45
suss25-May-02 15:45 
Generalkeystroke tracker Pin
Jimmy9514824-May-02 8:47
Jimmy9514824-May-02 8:47 
GeneralRe: keystroke tracker Pin
Dana Holt24-May-02 10:27
Dana Holt24-May-02 10:27 
GeneralEditable CListCtrl Problems Pin
Anton A. Loukine24-May-02 8:38
Anton A. Loukine24-May-02 8:38 
GeneralRe: Editable CListCtrl Problems Pin
laphijia24-May-02 22:33
laphijia24-May-02 22:33 
Anton A. Loukine wrote:
Hi:

There are two things that I am trying to achieve:
1) the default behaviour of the CListCtrl is that the user clicks the item he/she desires to edit once (to give it focus). Waits a little bit, and then clicks it again to start editing it. It the user simply double clicks on the unfocused item, it doesn't work. Any ideas how I can override this behaviour?


Hi,
I think that you mean this:

void CMyDlg::OnLbnDblclkList()
{
int nCurSel = m_listBox.GetCurSel();
CString szCurSel;
m_listBox.GetText(nCurSel, szCurSel);
AfxMessageBox(szCurSel);
}

When a user doubleclicks an item in the list, a message box displays the selection.

After you should change the AfxMessageBox that is only for dimostrative purposes to something that fits your needs.

I hope this helps.


"Nelle cose del mondo non e' il sapere ma il volere che puo'."
GeneralChange BG colour of a button Pin
Nnamdi Onyeyiri24-May-02 8:01
Nnamdi Onyeyiri24-May-02 8:01 
GeneralRe: Change BG colour of a button Pin
Ravi Bhavnani24-May-02 8:25
professionalRavi Bhavnani24-May-02 8:25 
GeneralRe: Change BG colour of a button Pin
Mazdak24-May-02 8:47
Mazdak24-May-02 8:47 
GeneralRe: Change BG colour of a button Pin
Alexandru Savescu25-May-02 2:44
Alexandru Savescu25-May-02 2:44 
GeneralRe: Change BG colour of a button Pin
Michael P Butler25-May-02 11:00
Michael P Butler25-May-02 11:00 
GeneralRe: Change BG colour of a button Pin
Nnamdi Onyeyiri25-May-02 11:25
Nnamdi Onyeyiri25-May-02 11:25 
GeneralUpdating Sw components on the fly through network Pin
auroch24-May-02 7:28
auroch24-May-02 7:28 
GeneralRe: Updating Sw components on the fly through network Pin
Ravi Bhavnani24-May-02 8:21
professionalRavi Bhavnani24-May-02 8:21 
GeneralRe: Updating Sw components on the fly through network Pin
auroch25-May-02 12:03
auroch25-May-02 12:03 
GeneralRe: Updating Sw components on the fly through network Pin
Ravi Bhavnani25-May-02 13:12
professionalRavi Bhavnani25-May-02 13:12 
GeneralCArray question Pin
Jason Hihn24-May-02 6:44
Jason Hihn24-May-02 6:44 
GeneralRe: CArray question Pin
Joaquín M López Muñoz24-May-02 6:59
Joaquín M López Muñoz24-May-02 6:59 
GeneralRe: CArray question Pin
Joel Matthias24-May-02 7:32
Joel Matthias24-May-02 7:32 
GeneralRe: CArray question Pin
Joel Matthias24-May-02 7:36
Joel Matthias24-May-02 7:36 
GeneralRe: CArray question Pin
Dean Michaud24-May-02 8:00
Dean Michaud24-May-02 8:00 
GeneralRe: CArray question Pin
Joel Matthias24-May-02 8:07
Joel Matthias24-May-02 8:07 
GeneralRe: CArray question Pin
Ravi Bhavnani24-May-02 8:19
professionalRavi Bhavnani24-May-02 8:19 

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.