Click here to Skip to main content
15,900,511 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDSW file format? Pin
Member 12782624-Aug-04 22:45
Member 12782624-Aug-04 22:45 
AnswerRe: DSW file format? Pin
David Crow5-Aug-04 2:42
David Crow5-Aug-04 2:42 
GeneralRe: DSW file format? Pin
Member 12782625-Aug-04 3:08
Member 12782625-Aug-04 3:08 
QuestionHow to write Custom GINA.dll Pin
anshums4-Aug-04 22:27
anshums4-Aug-04 22:27 
GeneralHai Pin
Asha Rams4-Aug-04 22:18
Asha Rams4-Aug-04 22:18 
GeneralRe: Hai Pin
David Crow5-Aug-04 2:44
David Crow5-Aug-04 2:44 
GeneralRe: Hai Pin
Anonymous9-Aug-04 0:17
Anonymous9-Aug-04 0:17 
GeneralRe: Hai Pin
David Crow9-Aug-04 2:18
David Crow9-Aug-04 2:18 
GeneralRe: Hai Pin
Asha Rams11-Aug-04 22:02
Asha Rams11-Aug-04 22:02 
GeneralRe: Hai Pin
David Crow12-Aug-04 2:52
David Crow12-Aug-04 2:52 
GeneralGetting HDN_ITEMDBLCLICK to work for ListCtrl Pin
Eldon Zacek4-Aug-04 21:51
Eldon Zacek4-Aug-04 21:51 
GeneralAdd encoding in xml file Pin
JensB4-Aug-04 21:31
JensB4-Aug-04 21:31 
QuestionHow to remove flickering of a window Pin
nnvidya4-Aug-04 21:09
nnvidya4-Aug-04 21:09 
AnswerRe: How to remove flickering of a window Pin
Antti Keskinen4-Aug-04 22:03
Antti Keskinen4-Aug-04 22:03 
AnswerRe: How to remove flickering of a window Pin
mickelliot5-Aug-04 5:58
mickelliot5-Aug-04 5:58 
Generalautomating CreateMsgService in MAPI Pin
kanetheterrible14-Aug-04 20:58
kanetheterrible14-Aug-04 20:58 
QuestionHow to communicate with Parallel Port Pin
Zeeshan Bilal4-Aug-04 19:53
Zeeshan Bilal4-Aug-04 19:53 
AnswerRe: How to communicate with Parallel Port Pin
Cohen6-Aug-04 0:35
Cohen6-Aug-04 0:35 
QuestionWhy do MS prefer to provide a new function, CWnd::CreateEx, rather than override CWnd::Create? Pin
bloggs19744-Aug-04 19:52
bloggs19744-Aug-04 19:52 
AnswerRe: Why do MS prefer to provide a new function, CWnd::CreateEx, rather than override CWnd::Create? Pin
Antti Keskinen4-Aug-04 22:12
Antti Keskinen4-Aug-04 22:12 
GeneralGetItemText returns bad CString & can't change subitem color in CustomDraw Pin
Mike Landis4-Aug-04 19:34
Mike Landis4-Aug-04 19:34 
GeneralRe: GetItemText returns bad CString & can't change subitem color in CustomDraw Pin
Tomasz Sowinski5-Aug-04 0:15
Tomasz Sowinski5-Aug-04 0:15 
GeneralRe: GetItemText returns bad CString & can't change subitem color in CustomDraw Pin
Mike Landis5-Aug-04 1:40
Mike Landis5-Aug-04 1:40 
GeneralRe: GetItemText returns bad CString & can't change subitem color in CustomDraw Pin
Tomasz Sowinski5-Aug-04 1:51
Tomasz Sowinski5-Aug-04 1:51 
Mike Landis wrote:
appreciate the fast reply, but I'm fairly certain the dialog's
ON_NOTIFY( NM_CUSTOMDRAW, IDC_PosList, OnCustDrwPosLst )
effectively filters out messages meant for controls other than PosList


Yes, I realized this right after posting the reply. Just to be 102% sure, check if you don't have duplicate control IDs in your dialog. This would screw notification routing.

At this point, I'd resort to basic debugging tricks. What are the contents of pCustomDraw structure - are members looking 'normally' or rather it's random data?

Also, according to comments in the code your program crashes when you're accessing the 0th element of the string. Maybe GetItemText returns empty one?

Tomasz Sowinski -- http://www.shooltz.com

Alika masiaka!

GeneralRe: GetItemText returns bad CString & can't change subitem color in CustomDraw Pin
Mike Landis5-Aug-04 6:33
Mike Landis5-Aug-04 6:33 

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.