Click here to Skip to main content
14,689,617 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Has C++ ever considered XML style namespaces? Pin
CPallini3-May-19 5:23
mveCPallini3-May-19 5:23 
GeneralRe: Has C++ ever considered XML style namespaces? Pin
Victor Nijegorodov3-May-19 5:54
MemberVictor Nijegorodov3-May-19 5:54 
GeneralRe: Has C++ ever considered XML style namespaces? Pin
CPallini3-May-19 6:15
mveCPallini3-May-19 6:15 
GeneralRe: Has C++ ever considered XML style namespaces? Pin
Victor Nijegorodov3-May-19 9:11
MemberVictor Nijegorodov3-May-19 9:11 
GeneralRe: Has C++ ever considered XML style namespaces? Pin
Stefan_Lang6-May-19 5:41
mveStefan_Lang6-May-19 5:41 
QuestionMFC Top Level menu position. Pin
Maximilien29-Apr-19 8:50
MemberMaximilien29-Apr-19 8:50 
AnswerRe: MFC Top Level menu position. Pin
leon de boer1-May-19 1:13
Memberleon de boer1-May-19 1:13 
QuestionImage display problem in listcontrol Pin
tianzhili439925-Apr-19 17:50
Membertianzhili439925-Apr-19 17:50 
The code can correctly display the bmp image that comes with the IDE, but can't display the image I added.

The IDE is visual studio 2012 and I use mfc to display bmp pictures.

This is the first piece of code in OnInitDialog():

static CImageList imgList;
imgList.Create(48,48,ILC_COLOR32,1,1);
imgList.Add(AfxGetApp()->LoadIcon(IDR_MAINFRAME));
m_List.SetImageList(&imgList,LVSIL_NORMAL);

m_List.InsertItem(0,_T("1th Test item"));


and the result of debug ——able to display the picture

while the second piece of code in OnInitDialog():

static CImageList imgList;
imgList.Create(40,48,ILC_COLOR32,1,1);
imgList.Add(AfxGetApp()->LoadIcon(IDB_BITMAP1));
m_List.SetImageList(&imgList,LVSIL_NORMAL);

m_List.InsertItem(0,_T("1th Test item"));


and the result of debug ——unable to display the picture,only blanks are displayed.

I am really sorry that I am a new man here and I do not know how to stick debug screenshots here.
AnswerRe: Image display problem in listcontrol Pin
Victor Nijegorodov25-Apr-19 22:07
MemberVictor Nijegorodov25-Apr-19 22:07 
GeneralRe: Image display problem in listcontrol Pin
tianzhili439925-Apr-19 23:29
Membertianzhili439925-Apr-19 23:29 
GeneralRe: Image display problem in listcontrol Pin
Victor Nijegorodov26-Apr-19 3:03
MemberVictor Nijegorodov26-Apr-19 3:03 
QuestionConversion from- C++ to C-language < free(): invalid size > Pin
zak10025-Apr-19 10:14
Memberzak10025-Apr-19 10:14 
AnswerRe: Conversion from- C++ to C-language < free(): invalid size > Pin
k505425-Apr-19 11:05
mvek505425-Apr-19 11:05 
AnswerRe: Conversion from- C++ to C-language < free(): invalid size > Pin
John R. Shaw26-Apr-19 10:19
MemberJohn R. Shaw26-Apr-19 10:19 
GeneralRe: Conversion from- C++ to C-language < free(): invalid size > Pin
zak10026-Apr-19 11:22
Memberzak10026-Apr-19 11:22 
GeneralRe: Conversion from- C++ to C-language < free(): invalid size > Pin
John R. Shaw26-Apr-19 13:31
MemberJohn R. Shaw26-Apr-19 13:31 
GeneralRe: Conversion from- C++ to C-language < free(): invalid size > Pin
zak10026-Apr-19 15:57
Memberzak10026-Apr-19 15:57 
GeneralRe: Conversion from- C++ to C-language < free(): invalid size > Pin
zak10026-Apr-19 18:53
Memberzak10026-Apr-19 18:53 
GeneralRe: Conversion from- C++ to C-language < free(): invalid size > Pin
John R. Shaw30-Apr-19 5:56
MemberJohn R. Shaw30-Apr-19 5:56 
GeneralRe: Conversion from- C++ to C-language < free(): invalid size > Pin
zak10030-Apr-19 6:48
Memberzak10030-Apr-19 6:48 
QuestionPointer to Pointer: Conversion from- C++ to C-language Pin
zak10024-Apr-19 19:47
Memberzak10024-Apr-19 19:47 
AnswerRe: Pointer to Pointer: Conversion from- C++ to C-language Pin
Victor Nijegorodov24-Apr-19 21:41
MemberVictor Nijegorodov24-Apr-19 21:41 
GeneralRe: Pointer to Pointer: Conversion from- C++ to C-language Pin
leon de boer25-Apr-19 3:09
Memberleon de boer25-Apr-19 3:09 
GeneralRe: Pointer to Pointer: Conversion from- C++ to C-language Pin
k505425-Apr-19 8:16
mvek505425-Apr-19 8:16 
GeneralRe: Pointer to Pointer: Conversion from- C++ to C-language Pin
Richard MacCutchan24-Apr-19 22:36
mveRichard MacCutchan24-Apr-19 22:36 

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.