Click here to Skip to main content
15,887,683 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Unable to launch dialog box Pin
Wamuti19-Jun-07 3:17
Wamuti19-Jun-07 3:17 
QuestionHow to: Structure initialization Pin
Programm3r19-Jun-07 0:01
Programm3r19-Jun-07 0:01 
AnswerRe: How to: Structure initialization Pin
Rage19-Jun-07 0:27
professionalRage19-Jun-07 0:27 
GeneralRe: How to: Structure initialization Pin
Programm3r19-Jun-07 0:47
Programm3r19-Jun-07 0:47 
QuestionDifference between DLL & Process ??? Pin
amitmistry_petlad 18-Jun-07 23:45
amitmistry_petlad 18-Jun-07 23:45 
AnswerRe: Difference between DLL & Process ??? Pin
Programm3r19-Jun-07 0:05
Programm3r19-Jun-07 0:05 
AnswerRe: Difference between DLL & Process ??? Pin
karle19-Jun-07 0:08
karle19-Jun-07 0:08 
QuestionWhy can't it show a whole bitmap in listctrl in icon form Pin
Chen-XuNuo18-Jun-07 23:32
Chen-XuNuo18-Jun-07 23:32 
I want to show bitmaps in icon form as previewings,just like the example thumbnail in cp,but I found that the item is just a section of the bitmap.

1.I import a bitmap to resource,modify its ID to IDB_BITMAP1.
2.I accociate a listctrl to m_listctrl.
3.I create: CImageList m_imagelist.
4.The last I do this in OnInitDialog():
//Load a bitmap
CBitmap bitmap;
bitmap.LoadBitmap(IDB_BITMAP1);

m_imagelist->Create(200,200,ILC_COLOR24,1,4);
m_imagelist->Add(&bitmap,RGB(255,0,0));
m_listctrl.SetImageList(m_imagelist,LVSIL_NORMAL);

m_listctrl.InsertItem(0,"1",0);

The result is the item in listctrl is just section of the bitmap,why?
Thanks~
AnswerRe: Why can't it show a whole bitmap in listctrl in icon form Pin
Rage18-Jun-07 23:42
professionalRage18-Jun-07 23:42 
GeneralRe: Why can't it show a whole bitmap in listctrl in icon form Pin
Chen-XuNuo18-Jun-07 23:49
Chen-XuNuo18-Jun-07 23:49 
GeneralRe: Why can't it show a whole bitmap in listctrl in icon form Pin
Rage19-Jun-07 0:22
professionalRage19-Jun-07 0:22 
QuestionRe: Why can't it show a whole bitmap in listctrl in icon form Pin
Hamid_RT19-Jun-07 0:47
Hamid_RT19-Jun-07 0:47 
AnswerRe: Why can't it show a whole bitmap in listctrl in icon form Pin
Chen-XuNuo19-Jun-07 6:29
Chen-XuNuo19-Jun-07 6:29 
AnswerRe: Why can't it show a whole bitmap in listctrl in icon form Pin
James R. Twine19-Jun-07 4:48
James R. Twine19-Jun-07 4:48 
GeneralRe: Why can't it show a whole bitmap in listctrl in icon form Pin
Chen-XuNuo19-Jun-07 6:27
Chen-XuNuo19-Jun-07 6:27 
GeneralRe: Why can't it show a whole bitmap in listctrl in icon form Pin
James R. Twine19-Jun-07 6:56
James R. Twine19-Jun-07 6:56 
GeneralRe: Why can't it show a whole bitmap in listctrl in icon form Pin
Chen-XuNuo19-Jun-07 22:41
Chen-XuNuo19-Jun-07 22:41 
GeneralRe: Why can't it show a whole bitmap in listctrl in icon form Pin
James R. Twine20-Jun-07 0:04
James R. Twine20-Jun-07 0:04 
GeneralRe: Why can't it show a whole bitmap in listctrl in icon form Pin
Chen-XuNuo20-Jun-07 3:01
Chen-XuNuo20-Jun-07 3:01 
GeneralRe: Why can't it show a whole bitmap in listctrl in icon form Pin
Chen-XuNuo20-Jun-07 3:16
Chen-XuNuo20-Jun-07 3:16 
GeneralRe: Why can't it show a whole bitmap in listctrl in icon form Pin
Chen-XuNuo20-Jun-07 3:25
Chen-XuNuo20-Jun-07 3:25 
GeneralRe: Why can't it show a whole bitmap in listctrl in icon form Pin
James R. Twine20-Jun-07 4:55
James R. Twine20-Jun-07 4:55 
GeneralRe: Why can't it show a whole bitmap in listctrl in icon form Pin
Chen-XuNuo20-Jun-07 21:02
Chen-XuNuo20-Jun-07 21:02 
GeneralRe: Why can't it show a whole bitmap in listctrl in icon form Pin
James R. Twine21-Jun-07 1:45
James R. Twine21-Jun-07 1:45 
GeneralRe: Why can't it show a whole bitmap in listctrl in icon form Pin
Chen-XuNuo21-Jun-07 16:37
Chen-XuNuo21-Jun-07 16:37 

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.