Click here to Skip to main content
15,910,358 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDynamicly create controls in dialog + scroll bar? Pin
anonimous25-Nov-02 21:53
anonimous25-Nov-02 21:53 
AnswerRe: Dynamicly create controls in dialog + scroll bar? Pin
Anonymous26-Nov-02 11:23
Anonymous26-Nov-02 11:23 
QuestionHow to get NT group name from Windows 9x/ME client? Pin
Ruxo Zheng25-Nov-02 20:15
Ruxo Zheng25-Nov-02 20:15 
Generalhelp: ODBC CRecordSet update delay.. Pin
trustno125-Nov-02 18:42
trustno125-Nov-02 18:42 
GeneralSetItemText Pin
David Kadish25-Nov-02 18:33
David Kadish25-Nov-02 18:33 
GeneralRe: SetItemText Pin
Roman Fadeyev25-Nov-02 18:57
Roman Fadeyev25-Nov-02 18:57 
GeneralRe: SetItemText Pin
perlmunger25-Nov-02 19:39
perlmunger25-Nov-02 19:39 
GeneralRe: SetItemText Pin
Rage25-Nov-02 20:16
professionalRage25-Nov-02 20:16 
GeneralRe: SetItemText Pin
perlmunger26-Nov-02 3:52
perlmunger26-Nov-02 3:52 
GeneralMake programme identify multi-display Pin
TianYang25-Nov-02 17:56
TianYang25-Nov-02 17:56 
GeneralRe: Make programme identify multi-display Pin
Scott H. Settlemier26-Nov-02 6:50
Scott H. Settlemier26-Nov-02 6:50 
GeneralADO Field names Pin
devvvy25-Nov-02 16:44
devvvy25-Nov-02 16:44 
GeneralRe: ADO Field names Pin
perlmunger25-Nov-02 19:04
perlmunger25-Nov-02 19:04 
Generalthanks but.... Pin
devvvy25-Nov-02 20:33
devvvy25-Nov-02 20:33 
GeneralRe: thanks but.... Pin
Alexandru Savescu25-Nov-02 21:43
Alexandru Savescu25-Nov-02 21:43 
Generalhelp! ADO - how to determine if a field is PK/FK Pin
devvvy25-Nov-02 23:22
devvvy25-Nov-02 23:22 
Generalany ADO/C++ solution? Pin
devvvy26-Nov-02 7:58
devvvy26-Nov-02 7:58 
GeneralCreate a font from the resource file Pin
Hernan Breinbauer25-Nov-02 16:16
Hernan Breinbauer25-Nov-02 16:16 
GeneralRe: Create a font from the resource file Pin
Scott H. Settlemier26-Nov-02 8:10
Scott H. Settlemier26-Nov-02 8:10 
Questionhow do you kill a dialog? Pin
trustno125-Nov-02 14:53
trustno125-Nov-02 14:53 
AnswerRe: how do you kill a dialog? Pin
Chris Losinger25-Nov-02 15:01
professionalChris Losinger25-Nov-02 15:01 
GeneralRe: how do you kill a dialog? Pin
trustno125-Nov-02 21:03
trustno125-Nov-02 21:03 
GeneralListview images in LVS_REPORT mode Pin
trimtrom25-Nov-02 13:37
trimtrom25-Nov-02 13:37 
GeneralRe: Listview images in LVS_REPORT mode Pin
Roman Fadeyev25-Nov-02 18:24
Roman Fadeyev25-Nov-02 18:24 
GeneralRe: Listview images in LVS_REPORT mode Pin
trimtrom26-Nov-02 9:27
trimtrom26-Nov-02 9:27 
Thanks for your reply, Roman.

By adding LVSIL_SMALL
(ctlList.SetImageList(&m_ctlImage1,LVSIL_SMALL);)
I got the listview to display the first loaded icon. (In the imagelist there are two different icons.) But the strange thing is that I have to put -1 in the actual line where I add the listitem, as follows:

ctlList.AddItem(nItem,NULL,CCrack::strVARIANT(var),-1);

If I put anything else, the icon disappears!!

As I have two icons in the imagelist, I should have thought I should put 0 or 1 in, and I should be able to vary which icon appears. (The -1 entry is the default.)

I would be most grateful for help as to why this is happening.

Thanks,
trimtrom

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.