Click here to Skip to main content
15,885,546 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Convert CString to double Pin
Nelek21-Jun-08 9:40
protectorNelek21-Jun-08 9:40 
QuestionRe: Convert CString to double Pin
David Crow21-Jun-08 12:51
David Crow21-Jun-08 12:51 
Questionproblem with status,progressbar [modified] Pin
sanjayvenkat20-Jun-08 23:18
sanjayvenkat20-Jun-08 23:18 
AnswerRe: problem with status,progressbar Pin
Nibu babu thomas21-Jun-08 2:07
Nibu babu thomas21-Jun-08 2:07 
QuestionHow to change width of a combo box at run time Pin
sheshidar20-Jun-08 23:11
sheshidar20-Jun-08 23:11 
AnswerRe: How to change width of a combo box at run time Pin
Hamid_RT20-Jun-08 23:44
Hamid_RT20-Jun-08 23:44 
AnswerRe: How to change width of a combo box at run time Pin
Ștefan-Mihai MOGA21-Jun-08 4:23
professionalȘtefan-Mihai MOGA21-Jun-08 4:23 
QuestionCTreeCtrl image set issue Pin
Abyss20-Jun-08 22:16
Abyss20-Jun-08 22:16 
I have a CTreeCtrl object in my dialog, this control is initialized as follows:

m_imgList.Create(16, 16, ILC_COLOR32, 1, 4);

CBitmap bitmap;
bitmap.LoadBitmap(IDB_BITMAP1);
m_imgList.Add(&bitmap, RGB(0, 0, 0));
bitmap.DeleteObject();

bitmap.LoadBitmap(IDB_BITMAP2);
m_nFolderImgNdx = m_imgList.Add(&bitmap, RGB(0, 0, 0));
bitmap.DeleteObject();

m_wndTree.SetImageList(&m_imgList, TVSIL_STATE);

hNewItem = m_wndTree.InsertItem(
   TVIF_IMAGE | TVIF_PARAM | TVIF_STATE | TVIF_TEXT,
   _T(""), 1, -1, nState,
   TVIS_EXPANDED | TVIS_STATEIMAGEMASK,
   (LPARAM)pData, hItem, TVI_LAST);

Later in the code I update each item of the tree control - text and image.
m_wndTree.SetItemImage(hItem, 0, -1);


However the tree control item does not update its image icon. It always display's its 1st image even I set the 0th image during the update. Any idea what is the problem Confused | :confused: ?

Thanks,
Abyss
QuestionDecompressing NTFS Compressed RAW Data Pin
Member 147600120-Jun-08 20:30
Member 147600120-Jun-08 20:30 
QuestionAbout position of AfxMessageBox OK button Pin
Mushtaque Nizamani20-Jun-08 18:55
Mushtaque Nizamani20-Jun-08 18:55 
AnswerRe: About position of AfxMessageBox OK button Pin
zafersavas20-Jun-08 19:28
zafersavas20-Jun-08 19:28 
AnswerRe: About position of AfxMessageBox OK button Pin
Ștefan-Mihai MOGA21-Jun-08 10:43
professionalȘtefan-Mihai MOGA21-Jun-08 10:43 
GeneralDisable Minimize and Maximize Box Pin
cb0206120-Jun-08 16:49
cb0206120-Jun-08 16:49 
GeneralRe: Disable Minimize and Maximize Box Pin
Jagdish V. Bhimbha20-Jun-08 19:13
Jagdish V. Bhimbha20-Jun-08 19:13 
GeneralRe: Disable Minimize and Maximize Box Pin
cb0206122-Jun-08 14:54
cb0206122-Jun-08 14:54 
GeneralRe: Disable Minimize and Maximize Box Pin
Jagdish V. Bhimbha22-Jun-08 20:28
Jagdish V. Bhimbha22-Jun-08 20:28 
GeneralRe: Disable Minimize and Maximize Box Pin
Christian Kleinheinz26-Jan-09 12:26
Christian Kleinheinz26-Jan-09 12:26 
QuestionEditing boot.ini programatically Pin
Sameer Naik20-Jun-08 4:45
Sameer Naik20-Jun-08 4:45 
AnswerRe: Editing boot.ini programatically Pin
Randor 20-Jun-08 5:07
professional Randor 20-Jun-08 5:07 
AnswerRe: Editing boot.ini programatically [modified] Pin
Saurabh.Garg20-Jun-08 5:10
Saurabh.Garg20-Jun-08 5:10 
GeneralRe: Editing boot.ini programatically Pin
Sameer Naik20-Jun-08 19:41
Sameer Naik20-Jun-08 19:41 
GeneralRe: Editing boot.ini programatically Pin
Saurabh.Garg20-Jun-08 23:05
Saurabh.Garg20-Jun-08 23:05 
Questionhow to obtain data from other member function? Pin
gentleguy20-Jun-08 3:02
gentleguy20-Jun-08 3:02 
AnswerRe: how to obtain data from other member function? Pin
Cedric Moonen20-Jun-08 3:07
Cedric Moonen20-Jun-08 3:07 
GeneralRe: how to obtain data from other member function? Pin
gentleguy20-Jun-08 3:11
gentleguy20-Jun-08 3:11 

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.