Click here to Skip to main content
15,907,913 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How i use GetLenght() , GetAt() functions? Pin
NiceNaidu18-May-06 3:08
NiceNaidu18-May-06 3:08 
AnswerRe: How i use GetLenght() , GetAt() functions? Pin
ThatsAlok18-May-06 2:50
ThatsAlok18-May-06 2:50 
AnswerRe: How i use GetLenght() , GetAt() functions? Pin
#realJSOP18-May-06 3:27
professional#realJSOP18-May-06 3:27 
GeneralRe: How i use GetLenght() , GetAt() functions? Pin
Rage18-May-06 4:43
professionalRage18-May-06 4:43 
QuestionProblem with CListCtrl::InsertColumn Pin
Naveen18-May-06 2:15
Naveen18-May-06 2:15 
AnswerRe: Problem with CListCtrl::InsertColumn Pin
Laxman Auti18-May-06 2:29
Laxman Auti18-May-06 2:29 
GeneralRe: Problem with CListCtrl::InsertColumn Pin
Naveen18-May-06 2:35
Naveen18-May-06 2:35 
AnswerRe: Problem with CListCtrl::InsertColumn Pin
Ganesh_T18-May-06 2:45
Ganesh_T18-May-06 2:45 
Try Using this:



<br />
CImageList *ImgHeaders = new CImageList;	ImgHeaders->Create(Bitmap ID, 16, 3, RGB(255, 0, 255));<br />
// iterate through header items and attach the image list<br />
HDITEM hditem;<br />
CHeaderCtrl *headerCtrl;<br />
headerCtrl = new CHeaderCtrl();<br />
headerCtrl = m_pScanList.GetHeaderCtrl();<br />
headerCtrl->SetImageList(ImgHeaders);<br />
<br />
<br />
for (int i = 0; i < headerCtrl->GetItemCount(); i++)<br />
	{<br />
		hditem.mask = HDI_IMAGE | HDI_FORMAT;<br />
		headerCtrl->GetItem(i, &hditem);<br />
		hditem.fmt |=  HDF_IMAGE;<br />
		if (i == 0 )<br />
		     hditem.iImage = Image ID;<br />
		else<br />
		     hditem.iImage = Image ID;<br />
<br />
		headerCtrl->SetItem(i, &hditem);<br />
	}	




Cheers
"Peace of mind through Technology"
GeneralRe: Problem with CListCtrl::InsertColumn Pin
Naveen18-May-06 2:49
Naveen18-May-06 2:49 
QuestionClone(..., PixelFormat) function doesn't change PixelFormat of the image Pin
1980soyo18-May-06 2:12
1980soyo18-May-06 2:12 
Questiona question abt DispatchMessage Pin
namaskaaram18-May-06 1:52
namaskaaram18-May-06 1:52 
AnswerRe: a question abt DispatchMessage Pin
voorugonda prashanth18-May-06 2:02
voorugonda prashanth18-May-06 2:02 
GeneralRe: a question abt DispatchMessage Pin
namaskaaram18-May-06 4:43
namaskaaram18-May-06 4:43 
AnswerRe: a question abt DispatchMessage Pin
NiceNaidu18-May-06 2:44
NiceNaidu18-May-06 2:44 
GeneralRe: a question abt DispatchMessage Pin
namaskaaram18-May-06 4:42
namaskaaram18-May-06 4:42 
QuestionHow to extract all text in current command prompt window Pin
kflrei18-May-06 1:33
kflrei18-May-06 1:33 
AnswerRe: How to extract all text in current command prompt window Pin
NiceNaidu18-May-06 2:02
NiceNaidu18-May-06 2:02 
GeneralRe: How to extract all text in current command prompt window Pin
kflrei20-May-06 23:06
kflrei20-May-06 23:06 
AnswerRe: How to extract all text in current command prompt window Pin
Eytukan18-May-06 4:27
Eytukan18-May-06 4:27 
GeneralRe: How to extract all text in current command prompt window Pin
kflrei20-May-06 23:08
kflrei20-May-06 23:08 
QuestionFlat Scrollbars Pin
Sarath C18-May-06 1:17
Sarath C18-May-06 1:17 
AnswerRe: Flat Scrollbars Pin
Laxman Auti18-May-06 1:36
Laxman Auti18-May-06 1:36 
GeneralRe: Flat Scrollbars Pin
Sarath C18-May-06 1:41
Sarath C18-May-06 1:41 
GeneralRe: Flat Scrollbars Pin
Laxman Auti18-May-06 2:08
Laxman Auti18-May-06 2:08 
QuestionStart console application in background Pin
GDavy18-May-06 1:15
GDavy18-May-06 1:15 

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.