Click here to Skip to main content
15,888,521 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: #defines in a static library Pin
Albert Holguin29-Oct-11 9:56
professionalAlbert Holguin29-Oct-11 9:56 
GeneralRe: #defines in a static library Pin
Erudite_Eric29-Oct-11 22:49
Erudite_Eric29-Oct-11 22:49 
GeneralRe: #defines in a static library Pin
Albert Holguin30-Oct-11 10:43
professionalAlbert Holguin30-Oct-11 10:43 
GeneralRe: #defines in a static library Pin
Erudite_Eric30-Oct-11 21:42
Erudite_Eric30-Oct-11 21:42 
GeneralRe: #defines in a static library Pin
Albert Holguin2-Nov-11 4:30
professionalAlbert Holguin2-Nov-11 4:30 
AnswerRe: #defines in a static library Pin
User 5838521-Nov-11 18:47
User 5838521-Nov-11 18:47 
GeneralRe: #defines in a static library Pin
Albert Holguin2-Nov-11 1:02
professionalAlbert Holguin2-Nov-11 1:02 
QuestionOverlay icon in CListView Pin
Dialecticus28-Oct-11 7:46
Dialecticus28-Oct-11 7:46 
I have MFC SDI project and CListView inside. I would like to have overlay images in my list control. In image list I have some images set with SetOverlayImage, and I use CListCtrl::SetItemState with LVIS_OVERLAYMASK and INDEXTOOVERLAYMASK. Overlay images are still not shown, just the main image. This is cleansed code:

C++
extern CListView* pLV;
CListCtrl* pLC = pLV->GetListCtrl();

imageList.Add((HICON)LoadImage(GetModuleHandle(NULL), MAKEINTRESOURCE(IDI_MAIN_IMAGE), IMAGE_ICON, 32, 32, 0));
imageList.Add((HICON)LoadImage(GetModuleHandle(NULL), MAKEINTRESOURCE(IDI_OVERLAY_IMAGE), IMAGE_ICON, 32, 32, 0));

imageList.SetOverlayImage(1, 1);
pLC->SetImageList(&imageList, LVSIL_NORMAL);

pLC->InsertItem(0, _T("Testing"), 0);
pLC->SetItemState(0, INDEXTOOVERLAYMASK(1), LVIS_OVERLAYMASK);


What am I doing wrong?
QuestionReading a UNICODE text file backwards in VC++ Pin
Manikkuttan28-Oct-11 2:17
Manikkuttan28-Oct-11 2:17 
AnswerRe: Reading a UNICODE text file backwards in VC++ Pin
«_Superman_»28-Oct-11 2:27
professional«_Superman_»28-Oct-11 2:27 
AnswerRe: Reading a UNICODE text file backwards in VC++ Pin
Erudite_Eric28-Oct-11 2:55
Erudite_Eric28-Oct-11 2:55 
GeneralRe: Reading a UNICODE text file backwards in VC++ Pin
David Crow28-Oct-11 3:05
David Crow28-Oct-11 3:05 
GeneralRe: Reading a UNICODE text file backwards in VC++ Pin
enhzflep28-Oct-11 4:26
enhzflep28-Oct-11 4:26 
AnswerRe: Reading a UNICODE text file backwards in VC++ Pin
jschell28-Oct-11 9:53
jschell28-Oct-11 9:53 
QuestionCommand is not firing in Owner Draw menu in MFC Dilaog Pin
Manikkuttan28-Oct-11 2:14
Manikkuttan28-Oct-11 2:14 
AnswerRe: Command is not firing in Owner Draw menu in MFC Dilaog Pin
Richard MacCutchan28-Oct-11 2:32
mveRichard MacCutchan28-Oct-11 2:32 
AnswerRe: Command is not firing in Owner Draw menu in MFC Dilaog Pin
Albert Holguin28-Oct-11 4:57
professionalAlbert Holguin28-Oct-11 4:57 
AnswerRe: Command is not firing in Owner Draw menu in MFC Dilaog Pin
Manikkuttan31-Oct-11 1:35
Manikkuttan31-Oct-11 1:35 
QuestionCreating icon in taskbar Pin
Pranit Kothari27-Oct-11 19:09
Pranit Kothari27-Oct-11 19:09 
AnswerRe: Creating icon in taskbar Pin
Chandrasekharan P27-Oct-11 20:03
Chandrasekharan P27-Oct-11 20:03 
AnswerRe: my two cents Pin
Software_Developer28-Oct-11 0:00
Software_Developer28-Oct-11 0:00 
AnswerRe: C# code: Creating icon in taskbar Pin
Goto_Label_28-Oct-11 0:08
Goto_Label_28-Oct-11 0:08 
QuestionQuickWin Compile Errors in Visual Studio 2008 Pin
oldbritthumper27-Oct-11 11:40
oldbritthumper27-Oct-11 11:40 
AnswerRe: QuickWin Compile Errors in Visual Studio 2008 Pin
«_Superman_»27-Oct-11 16:47
professional«_Superman_»27-Oct-11 16:47 
GeneralRe: QuickWin Compile Errors in Visual Studio 2008 Pin
Albert Holguin28-Oct-11 4:54
professionalAlbert Holguin28-Oct-11 4:54 

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.