Click here to Skip to main content
15,924,679 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: About memory allocations Pin
Roger Stoltz17-May-07 22:33
Roger Stoltz17-May-07 22:33 
GeneralRe: About memory allocations Pin
Arman S.17-May-07 22:44
Arman S.17-May-07 22:44 
GeneralRe: About memory allocations Pin
Roger Stoltz17-May-07 23:03
Roger Stoltz17-May-07 23:03 
AnswerRe: About memory allocations Pin
Arman S.17-May-07 22:58
Arman S.17-May-07 22:58 
GeneralRe: About memory allocations Pin
Sethuraman.K18-May-07 0:11
Sethuraman.K18-May-07 0:11 
QuestionDebug Assertion Failure Pin
jannathali17-May-07 20:16
jannathali17-May-07 20:16 
AnswerRe: Debug Assertion Failure Pin
Stephen Hewitt17-May-07 20:29
Stephen Hewitt17-May-07 20:29 
GeneralRe: Debug Assertion Failure Pin
jannathali17-May-07 20:59
jannathali17-May-07 20:59 
BOOL Dialogfinal::OnInitDialog()
{

HIMAGELIST hList = ImageList_Create(16,16, ILC_COLOR8 |ILC_MASK , 8, 1);

hList = ImageList_Create(16, 16, ILC_COLOR8 | ILC_MASK, 8, 1);
m_cImageListSmall.Attach(hList);

CFinalDlg* m_final= (CFinalDlg*)GetParent();


CBitmap cBmp;



cBmp.LoadBitmap(IDB_BITMAP1);
m_cImageListSmall.Add(&cBmp, RGB(255,0, 255));



OnCreate();
return true;
}


void Dialogfinal::OnCreate()
{
int r=0;
CFinalDlg* m_final= (CFinalDlg*)GetParent();
m_final->k[m_final->f]=t;

//Here It is Showing Debug failure UpdateData(); m_list.SetImageList(&m_cImageListSmall, LVSIL_SMALL);

m_list.DeleteAllItems();

LVITEM lvi;
CString strItem;
for (int i = 0; i<m_final->ii; i++)
{
// Insert the first item
lvi.mask = LVIF_IMAGE | LVIF_TEXT;
strItem.Format(_T(m_final->s[i]), i);

lvi.iItem = i;
lvi.iSubItem = 0;
lvi.pszText = (LPTSTR)(LPCTSTR)(strItem);

if(i>2)
{
//m_final->f--;
lvi.iImage = m_final->k[r];
// m_final->f++;
r++;
}
else
lvi.iImage=i;
m_list.InsertItem(&lvi);

// Set subitem 1
strItem.Format(_T("%d"), 10*i);
lvi.iSubItem =1;
lvi.pszText = (LPTSTR)(LPCTSTR)(strItem);
m_list.SetItem(&lvi);

}
// if(m_final->ii>3)

// GraphMenu.CreateMenu();
UpdateData();
}
if i am removing the update data(), no error is ther. but it is not displaying images
GeneralRe: Debug Assertion Failure Pin
Stephen Hewitt17-May-07 21:05
Stephen Hewitt17-May-07 21:05 
GeneralRe: Debug Assertion Failure Pin
jannathali17-May-07 21:14
jannathali17-May-07 21:14 
GeneralRe: Debug Assertion Failure Pin
cp987617-May-07 21:17
cp987617-May-07 21:17 
GeneralRe: Debug Assertion Failure Pin
Stephen Hewitt17-May-07 21:18
Stephen Hewitt17-May-07 21:18 
GeneralRe: Debug Assertion Failure Pin
jannathali17-May-07 21:24
jannathali17-May-07 21:24 
GeneralRe: Debug Assertion Failure Pin
Stephen Hewitt17-May-07 21:33
Stephen Hewitt17-May-07 21:33 
GeneralRe: Debug Assertion Failure Pin
Stephen Hewitt17-May-07 21:23
Stephen Hewitt17-May-07 21:23 
QuestionSorting Error in CListCtrl Pin
pc_dev17-May-07 20:00
pc_dev17-May-07 20:00 
AnswerRe: Sorting Error in CListCtrl Pin
prasad_som17-May-07 21:21
prasad_som17-May-07 21:21 
GeneralRe: Sorting Error in CListCtrl Pin
pc_dev22-May-07 0:46
pc_dev22-May-07 0:46 
QuestionScrollbar range Pin
Aint17-May-07 16:53
Aint17-May-07 16:53 
AnswerRe: Scrollbar range Pin
Nelek17-May-07 20:31
protectorNelek17-May-07 20:31 
GeneralRe: Scrollbar range Pin
Aint17-May-07 22:08
Aint17-May-07 22:08 
GeneralRe: Scrollbar range Pin
Nelek18-May-07 1:06
protectorNelek18-May-07 1:06 
Question3-dimession image show and processing Pin
gentleguy17-May-07 16:53
gentleguy17-May-07 16:53 
AnswerRe: 3-dimession image show and processing Pin
Hamid_RT17-May-07 19:21
Hamid_RT17-May-07 19:21 
QuestionProgress Bar Range Question Pin
JBAK_CP17-May-07 13:47
JBAK_CP17-May-07 13:47 

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.