Click here to Skip to main content
15,902,938 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: AVI Player Pin
tanmay.kol11-Nov-08 23:42
tanmay.kol11-Nov-08 23:42 
GeneralRe: AVI Player Pin
Hamid_RT12-Nov-08 5:49
Hamid_RT12-Nov-08 5:49 
QuestionCRichEditCtrl Problem of displaying text as hyperlink Pin
Dhiraj kumar Saini10-Nov-08 22:40
Dhiraj kumar Saini10-Nov-08 22:40 
QuestionRe: CRichEditCtrl Problem of displaying text as hyperlink Pin
David Crow11-Nov-08 3:17
David Crow11-Nov-08 3:17 
QuestionExecuting Sort.exe using ShellExecute()... etc Pin
Mick Leong10-Nov-08 21:22
Mick Leong10-Nov-08 21:22 
QuestionRe: Executing Sort.exe using ShellExecute()... etc Pin
CPallini10-Nov-08 22:33
mveCPallini10-Nov-08 22:33 
AnswerRe: Executing Sort.exe using ShellExecute()... etc Pin
David Crow11-Nov-08 3:20
David Crow11-Nov-08 3:20 
Questionproblem creating a colored icon Pin
tudorbalan10-Nov-08 21:19
tudorbalan10-Nov-08 21:19 
I need to insert an icon for every item in a CListControl , but whatever I do I can'y make the icon (or bitmap )colored , it's just black and white.


here' s my code:

HICON icon;
hList = ImageList_Create( 16, 16, ILC_COLOR32|ILC_MASK , 1, 1);
m_cImageListSmall.Attach(hList);

for( int i=0; i<64; i++ )
{
AND[i] = 0xFF0000;//I'm trying to make it RED colored
XOR[i] = 0x000000;
}

icon = CreateIcon(NULL,16,16,2,8,AND,XOR);


m_cImageListSmall.Add(icon);

m_cListCtrl.SetImageList(&m_cImageListSmall, LVSIL_SMALL);


pDlg->m_listFolders.InsertItem(LVIF_IMAGE|LVIF_TEXT, iIndex, StrPath,0,0,0,NULL );

It's my first post ever , so please forgive my mistakes.
Please help me, I've searched the web for a week, and didn't find the solution.

I tried this example: http://msdn.microsoft.com/en-us/library/ms648051(VS.85).aspx ( and many others ) and it shows me the icon with the drawing ( the yang symbol ) , but it's all black and white, and whatever hex colors I put in those BYTE arrays ( and whatever combination of parameters ( on CreateIcon ) that I don't get how work( like BYTE cPlanes, BYTE cBitsPixel ) ), it's still black and white.

AnswerRe: problem creating a colored icon [modified] Pin
Mark Salsbery11-Nov-08 6:56
Mark Salsbery11-Nov-08 6:56 
GeneralRe: problem creating a colored icon Pin
tudorbalan11-Nov-08 10:34
tudorbalan11-Nov-08 10:34 
GeneralRe: problem creating a colored icon Pin
Mark Salsbery11-Nov-08 11:28
Mark Salsbery11-Nov-08 11:28 
GeneralRe: problem creating a colored icon Pin
tudorbalan12-Nov-08 0:16
tudorbalan12-Nov-08 0:16 
GeneralRe: problem creating a colored icon Pin
Mark Salsbery12-Nov-08 6:58
Mark Salsbery12-Nov-08 6:58 
GeneralRe: problem creating a colored icon Pin
tudorbalan12-Nov-08 8:52
tudorbalan12-Nov-08 8:52 
GeneralRe: problem creating a colored icon Pin
Mark Salsbery12-Nov-08 8:58
Mark Salsbery12-Nov-08 8:58 
Questionproblem in retriving values from recordset Pin
tasumisra10-Nov-08 20:47
tasumisra10-Nov-08 20:47 
AnswerRe: problem in retriving values from recordset Pin
CPallini10-Nov-08 21:14
mveCPallini10-Nov-08 21:14 
GeneralRe: problem in retriving values from recordset Pin
tasumisra10-Nov-08 21:23
tasumisra10-Nov-08 21:23 
GeneralRe: problem in retriving values from recordset Pin
CPallini10-Nov-08 21:48
mveCPallini10-Nov-08 21:48 
QuestionText Color Change for CRichEditCtrl on a CMdiChildWnd Pin
prithaa10-Nov-08 20:44
prithaa10-Nov-08 20:44 
AnswerRe: Text Color Change for CRichEditCtrl on a CMdiChildWnd Pin
Dhiraj kumar Saini10-Nov-08 22:33
Dhiraj kumar Saini10-Nov-08 22:33 
GeneralRe: Text Color Change for CRichEditCtrl on a CMdiChildWnd Pin
prithaa11-Nov-08 1:10
prithaa11-Nov-08 1:10 
QuestionIs there any API for Data? Pin
Nandu_77b10-Nov-08 20:20
Nandu_77b10-Nov-08 20:20 
AnswerRe: Is there any API for Data? Pin
_AnsHUMAN_ 10-Nov-08 20:39
_AnsHUMAN_ 10-Nov-08 20:39 
GeneralRe: Is there any API for Data? Pin
kevinmengmsn10-Nov-08 22:10
kevinmengmsn10-Nov-08 22:10 

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.