Click here to Skip to main content
15,895,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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
GeneralPhone Bill Pin
Autunmsky25-Nov-02 13:28
Autunmsky25-Nov-02 13:28 
GeneralRe: Phone Bill Pin
Christian Graus25-Nov-02 14:46
protectorChristian Graus25-Nov-02 14:46 
GeneralRe: Phone Bill Pin
Autunmsky25-Nov-02 14:59
Autunmsky25-Nov-02 14:59 
GeneralRe: Phone Bill Pin
Christian Graus25-Nov-02 15:06
protectorChristian Graus25-Nov-02 15:06 
GeneralRe: Phone Bill Pin
Autunmsky25-Nov-02 15:31
Autunmsky25-Nov-02 15:31 
GeneralRe: Phone Bill Pin
Christian Graus25-Nov-02 15:39
protectorChristian Graus25-Nov-02 15:39 
GeneralRe: Phone Bill Pin
Autunmsky25-Nov-02 15:48
Autunmsky25-Nov-02 15:48 
GeneralRe: Phone Bill Pin
Christian Graus25-Nov-02 15:57
protectorChristian Graus25-Nov-02 15:57 
GeneralRe: Phone Bill Pin
Autunmsky25-Nov-02 16:09
Autunmsky25-Nov-02 16:09 
GeneralRe: Phone Bill Pin
Christian Graus25-Nov-02 16:15
protectorChristian Graus25-Nov-02 16:15 
GeneralRe: Phone Bill Pin
Autunmsky25-Nov-02 16:27
Autunmsky25-Nov-02 16:27 
GeneralRe: Phone Bill Pin
Autunmsky25-Nov-02 16:34
Autunmsky25-Nov-02 16:34 
GeneralRe: Phone Bill Pin
Christian Graus25-Nov-02 16:40
protectorChristian Graus25-Nov-02 16:40 
GeneralRe: Phone Bill Pin
Autunmsky25-Nov-02 16:44
Autunmsky25-Nov-02 16:44 
GeneralRe: Phone Bill Pin
Christian Graus25-Nov-02 16:48
protectorChristian Graus25-Nov-02 16:48 
GeneralCreateBitmap problem Pin
Anonymous25-Nov-02 13:16
Anonymous25-Nov-02 13:16 
GeneralRe: CreateBitmap problem Pin
Christian Graus25-Nov-02 13:26
protectorChristian Graus25-Nov-02 13:26 

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.