Click here to Skip to main content
15,909,897 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Change menu name on run-time Pin
Renjith Ramachandran10-Mar-03 7:49
Renjith Ramachandran10-Mar-03 7:49 
Generalnew comer Pin
Mr. Andrea10-Mar-03 5:16
Mr. Andrea10-Mar-03 5:16 
GeneralRe: new comer Pin
Maximilien10-Mar-03 5:29
Maximilien10-Mar-03 5:29 
GeneralRe: new comer Pin
Alvaro Mendez10-Mar-03 7:37
Alvaro Mendez10-Mar-03 7:37 
Generalsave increment filenames... Pin
macmac3810-Mar-03 5:10
macmac3810-Mar-03 5:10 
GeneralRe: save increment filenames... Pin
Maximilien10-Mar-03 5:24
Maximilien10-Mar-03 5:24 
GeneralRe: save increment filenames... Pin
Renjith Ramachandran10-Mar-03 7:54
Renjith Ramachandran10-Mar-03 7:54 
GeneralAdding icons to an imagelist that is used in a listctrl Pin
Jochem10-Mar-03 5:01
Jochem10-Mar-03 5:01 
I use a CListCtrl on a dialog. The problem is that the background of the icons is somehow changed to black when the dialog pops up. But the background is supposed to be transparent.

Who knows how to prevent this?

This is the code that i use:

CMyDlg::OnInitDialog()<br />
{<br />
   m_imageList.Create(32, 32, ILC_COLOR4, 2, 2);<br />
<br />
//adding the icons<br />
   for(int i=0; i<2; i++)<br />
   {<br />
      int nID = GetIconID( i );<br />
<br />
      //code taken from CWinApp::LoadIcon(int nID )<br />
      HICON hIcon = ::LoadIcon(AfxFindResourceHandle(MAKEINTRESOURCE(nID),<br />
                                RT_GROUP_ICON), MAKEINTRESOURCE(nID));<br />
<br />
      m_imageList.Add(hIcon);<br />
   }<br />
<br />
   m_listCtrl.SetImageList(&m_imageList, LVSIL_NORMAL);<br />
<br />
//inserting items in the listctrl<br />
   for(int nIndex=0; nIndex<2; nIndex++)<br />
   {<br />
      m_type.InsertItem(nIndex, "some text", nIndex);<br />
<br />
      nIndex++;<br />
   }<br />
}


Thanks in advance,

Jochem
GeneralRe: Adding icons to an imagelist that is used in a listctrl Pin
RobJones10-Mar-03 6:27
RobJones10-Mar-03 6:27 
GeneralRe: Adding icons to an imagelist that is used in a listctrl Pin
Jochem11-Mar-03 1:15
Jochem11-Mar-03 1:15 
QuestionHow to store a set of data while each data has several kinds of type ? Pin
adapterJohn10-Mar-03 4:56
adapterJohn10-Mar-03 4:56 
AnswerRe: How to store a set of data while each data has several kinds of type ? Pin
Tim Smith10-Mar-03 5:08
Tim Smith10-Mar-03 5:08 
AnswerRe: How to store a set of data while each data has several kinds of type ? Pin
valikac10-Mar-03 11:26
valikac10-Mar-03 11:26 
GeneralRe: How to store a set of data while each data has several kinds of type ? Pin
adapterJohn10-Mar-03 11:36
adapterJohn10-Mar-03 11:36 
GeneralRe: How to store a set of data while each data has several kinds of type ? Pin
valikac10-Mar-03 12:39
valikac10-Mar-03 12:39 
Generalclass template declaration in seperate files Pin
Julian Churchill10-Mar-03 4:51
Julian Churchill10-Mar-03 4:51 
GeneralRe: class template declaration in seperate files Pin
Tim Smith10-Mar-03 5:11
Tim Smith10-Mar-03 5:11 
GeneralProblem with string limitation Pin
Andrea Ferraro10-Mar-03 4:32
Andrea Ferraro10-Mar-03 4:32 
GeneralRe: Problem with string limitation Pin
AlexO10-Mar-03 4:42
AlexO10-Mar-03 4:42 
GeneralRe: Problem with string limitation Pin
Tim Smith10-Mar-03 4:43
Tim Smith10-Mar-03 4:43 
GeneralRe: Problem with string limitation Pin
Andrea Ferraro10-Mar-03 5:52
Andrea Ferraro10-Mar-03 5:52 
GeneralRe: Problem with string limitation Pin
Tim Smith10-Mar-03 6:26
Tim Smith10-Mar-03 6:26 
GeneralRe: Problem with string limitation Pin
dlhson210-Mar-03 7:09
dlhson210-Mar-03 7:09 
GeneralBitmap to Icon Pin
Jason Hooper10-Mar-03 4:27
Jason Hooper10-Mar-03 4:27 
GeneralRe: Bitmap to Icon Pin
Baris Kurtlutepe10-Mar-03 5:16
Baris Kurtlutepe10-Mar-03 5:16 

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.