Click here to Skip to main content
15,887,027 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCompress short fixed length string (52 characters) down to less than 40. Pin
hatemtaleb15-May-13 2:52
hatemtaleb15-May-13 2:52 
AnswerRe: Compress short fixed length string (52 characters) down to less than 40. Pin
Jochen Arndt15-May-13 3:48
professionalJochen Arndt15-May-13 3:48 
AnswerRe: Compress short fixed length string (52 characters) down to less than 40. Pin
Joe Woodbury15-May-13 8:26
professionalJoe Woodbury15-May-13 8:26 
AnswerRe: Compress short fixed length string (52 characters) down to less than 40. Pin
David Crow15-May-13 10:38
David Crow15-May-13 10:38 
AnswerRe: Compress short fixed length string (52 characters) down to less than 40. Pin
dusty_dex17-May-13 14:47
dusty_dex17-May-13 14:47 
GeneralRe: Compress short fixed length string (52 characters) down to less than 40. Pin
hatemtaleb24-May-13 4:12
hatemtaleb24-May-13 4:12 
QuestionSetCheck on click in CListCtrl Pin
_Flaviu15-May-13 2:30
_Flaviu15-May-13 2:30 
AnswerRe: SetCheck on click in CListCtrl Pin
Jochen Arndt15-May-13 3:33
professionalJochen Arndt15-May-13 3:33 
The list control handles clicks on the check box itself. Whenever a click on the box occurs, the check is toggled. When now clicking on a check box, your handler will set the check and the default handler which is called afterwards will toggle the check so that it is removed. This can be verified when you click on a marked check box: The check marker disappears.

The solution would be to do nothing in your handler when clicking on the box. To determine the width of the check box, use ImageList_GetIconSize passing the image list returned by GetImageList(LVSIL_STATE). The check box itself is drawn with some spacing so that it may be necessary to add some pixels to the width.
GeneralRe: SetCheck on click in CListCtrl Pin
_Flaviu15-May-13 20:53
_Flaviu15-May-13 20:53 
GeneralRe: SetCheck on click in CListCtrl Pin
Jochen Arndt15-May-13 21:05
professionalJochen Arndt15-May-13 21:05 
GeneralRe: SetCheck on click in CListCtrl Pin
_Flaviu15-May-13 21:26
_Flaviu15-May-13 21:26 
GeneralRe: SetCheck on click in CListCtrl Pin
Jochen Arndt15-May-13 21:36
professionalJochen Arndt15-May-13 21:36 
GeneralRe: SetCheck on click in CListCtrl Pin
_Flaviu15-May-13 23:07
_Flaviu15-May-13 23:07 
GeneralRe: SetCheck on click in CListCtrl Pin
Jochen Arndt15-May-13 23:20
professionalJochen Arndt15-May-13 23:20 
GeneralRe: SetCheck on click in CListCtrl Pin
_Flaviu15-May-13 23:24
_Flaviu15-May-13 23:24 
QuestionWriting on BitMap by DC does not work Pin
Member 989133414-May-13 21:17
Member 989133414-May-13 21:17 
AnswerRe: Writing on BitMap by DC does not work Pin
dusty_dex17-May-13 6:26
dusty_dex17-May-13 6:26 
QuestionHow to read-write Excel using MFC, without MS Office? Pin
Caesarea14-May-13 20:03
Caesarea14-May-13 20:03 
AnswerRe: How to read-write Excel using MFC, without MS Office? Pin
Richard MacCutchan14-May-13 21:09
mveRichard MacCutchan14-May-13 21:09 
AnswerRe: How to read-write Excel using MFC, without MS Office? Pin
Member 989133414-May-13 21:14
Member 989133414-May-13 21:14 
AnswerRe: How to read-write Excel using MFC, without MS Office? Pin
Jochen Arndt14-May-13 21:14
professionalJochen Arndt14-May-13 21:14 
AnswerRe: How to read-write Excel using MFC, without MS Office? Pin
Erudite_Eric16-May-13 7:12
Erudite_Eric16-May-13 7:12 
AnswerRe: How to read-write Excel using MFC, without MS Office? Pin
Caesarea16-May-13 19:47
Caesarea16-May-13 19:47 
Questionscrollview issue on win7 environment Pin
Ghost Employee14-May-13 16:54
Ghost Employee14-May-13 16:54 
AnswerRe: scrollview issue on win7 environment Pin
Newbie0017-May-13 8:21
Newbie0017-May-13 8:21 

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.