Click here to Skip to main content
16,008,719 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Opening up Serial Ports in WinNT Pin
Joaquín M López Muñoz22-Jul-01 20:20
Joaquín M López Muñoz22-Jul-01 20:20 
GeneralNo Untitled in Title bar. Pin
Steve Klinger22-Jul-01 13:38
Steve Klinger22-Jul-01 13:38 
GeneralRe: No Untitled in Title bar. Pin
Hrishi23-Jul-01 11:20
Hrishi23-Jul-01 11:20 
QuestionCListCtrl? Pin
22-Jul-01 13:02
suss22-Jul-01 13:02 
AnswerRe: CListCtrl? Pin
Reid22-Jul-01 18:56
Reid22-Jul-01 18:56 
GeneralRe: CListCtrl? Pin
Matt Newman23-Jul-01 5:00
Matt Newman23-Jul-01 5:00 
GeneralRe: CListCtrl? Pin
23-Jul-01 5:49
suss23-Jul-01 5:49 
AnswerRe: CListCtrl? Pin
Ben Burnett22-Jul-01 19:54
Ben Burnett22-Jul-01 19:54 
You can either handle the WM_LBUTTONDOWN message in the List-View and use the folowing to get the item's text;

int nItem = GetNextItem ( -1, LVNI_SELECTED | LVNI_FOCUSED );<br />
CString sItemText = GetItemText ( nItem, 0 ); // or use GetItem to get more info


Or you can handle the List-View's NM_CLICK notification and grab the text as above, using the index given in the NMITEMACTIVATE structure.

-Ben

---------
On the topic of code with no error handling -- It's not poor coding, it's "optimistic" Wink | ;)
GeneralCreating A Bitmap Pin
AJ12322-Jul-01 12:35
AJ12322-Jul-01 12:35 
GeneralRe: Creating A Bitmap Pin
Christian Graus22-Jul-01 14:11
protectorChristian Graus22-Jul-01 14:11 
QuestionNewbie Q: Update statusbar from view? Pin
22-Jul-01 12:00
suss22-Jul-01 12:00 
AnswerRe: Newbie Q: Update statusbar from view? Pin
Michael Dunn22-Jul-01 12:24
sitebuilderMichael Dunn22-Jul-01 12:24 
Generaldocking dialogbars Pin
Peter Marino22-Jul-01 9:49
Peter Marino22-Jul-01 9:49 
GeneralRe: docking dialogbars Pin
Diarrhio22-Jul-01 20:37
Diarrhio22-Jul-01 20:37 
GeneralRe: docking dialogbars Pin
Peter Marino22-Jul-01 21:40
Peter Marino22-Jul-01 21:40 
GeneralRe: docking dialogbars Pin
Diarrhio22-Jul-01 22:31
Diarrhio22-Jul-01 22:31 
GeneralRe: docking dialogbars Pin
Diarrhio22-Jul-01 22:33
Diarrhio22-Jul-01 22:33 
GeneralRe: docking dialogbars Pin
Diarrhio22-Jul-01 22:34
Diarrhio22-Jul-01 22:34 
GeneralRe: docking dialogbars Pin
Peter Marino23-Jul-01 9:20
Peter Marino23-Jul-01 9:20 
GeneralRe: docking dialogbars Pin
Diarrhio23-Jul-01 12:07
Diarrhio23-Jul-01 12:07 
GeneralRe: docking dialogbars Pin
Peter Marino23-Jul-01 21:35
Peter Marino23-Jul-01 21:35 
GeneralRe: docking dialogbars Pin
Diarrhio23-Jul-01 22:18
Diarrhio23-Jul-01 22:18 
GeneralRe: docking dialogbars Pin
Diarrhio24-Jul-01 20:53
Diarrhio24-Jul-01 20:53 
GeneralRe: docking dialogbars Pin
Peter Marino25-Jul-01 8:11
Peter Marino25-Jul-01 8:11 
Questionwhich type of variable for exa nambers ??? Pin
22-Jul-01 9:29
suss22-Jul-01 9:29 

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.