Click here to Skip to main content
15,905,607 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Cant rebuild ClassView file Pin
Wheatbread19-May-04 5:06
Wheatbread19-May-04 5:06 
GeneralRe: Cant rebuild ClassView file Pin
jmkhael19-May-04 5:03
jmkhael19-May-04 5:03 
GeneralRe: Cant rebuild ClassView file Pin
Wheatbread19-May-04 5:07
Wheatbread19-May-04 5:07 
GeneralRe: Cant rebuild ClassView file Pin
bikram singh19-May-04 5:55
bikram singh19-May-04 5:55 
GeneralRe: Cant rebuild ClassView file Pin
*Dreamz20-May-04 19:28
*Dreamz20-May-04 19:28 
GeneralCustomDraw and ClistCtrl's SubItem Pin
amit_k_gupta19-May-04 4:41
amit_k_gupta19-May-04 4:41 
GeneralRe: CustomDraw and ClistCtrl's SubItem Pin
valikac19-May-04 5:07
valikac19-May-04 5:07 
GeneralRe: CustomDraw and ClistCtrl's SubItem Pin
amit_k_gupta19-May-04 20:42
amit_k_gupta19-May-04 20:42 
Instead of setting Item properties through SetItemData, i set the property through LVITEM structure and removed SendMessage as suggested by you but still not successful. Here is the code

void CTestListCtrlView::OnPopupRed()
{
LVITEM *Item = new LVITEM;
Item->iItem = 2;
m_ListCtrl.GetItem(Item);
Item->mask = LVIF_PARAM;
Item->lParam = 1; // 1 mean red
m_ListCtrl.SetItemData(iItemIndex,(DWORD&)*Item);
m_ListCtrl.Invalidate();
m_ListCtrl.UpdateWindow();
}

I included Invalidate() and UpdateWindow() so that my custom draw method OnCustomdrawMyList() could be called but still i am not getting the lparam value as 1 in my custom draw method. Please help.

Thanks for the reply.
GeneralRe: CustomDraw and ClistCtrl's SubItem Pin
valikac20-May-04 5:13
valikac20-May-04 5:13 
GeneralDisplaying a short movie in same window over 3D display - need an advice Pin
robert_s19-May-04 3:50
robert_s19-May-04 3:50 
GeneralStatusbox and toolbar overwritten Pin
Wigwog19-May-04 2:42
Wigwog19-May-04 2:42 
GeneralFilling the Clipboard using the CDC Pin
Cedar Sith19-May-04 2:36
Cedar Sith19-May-04 2:36 
GeneralRe: Filling the Clipboard using the CDC Pin
ohadp19-May-04 3:09
ohadp19-May-04 3:09 
GeneralRe: Filling the Clipboard using the CDC Pin
Cedar Sith19-May-04 4:02
Cedar Sith19-May-04 4:02 
GeneralRe: Filling the Clipboard using the CDC Pin
Maximilien19-May-04 4:36
Maximilien19-May-04 4:36 
GeneralRe: Filling the Clipboard using the CDC Pin
Cedar Sith19-May-04 5:07
Cedar Sith19-May-04 5:07 
GeneralRe: Filling the Clipboard using the CDC Pin
Maximilien19-May-04 5:23
Maximilien19-May-04 5:23 
GeneralRe: Filling the Clipboard using the CDC Pin
John R. Shaw19-May-04 12:46
John R. Shaw19-May-04 12:46 
GeneralGlobal Variables Pin
asv19-May-04 2:32
asv19-May-04 2:32 
GeneralRe: Global Variables Pin
valikac19-May-04 5:09
valikac19-May-04 5:09 
GeneralRe: Global Variables Pin
asv19-May-04 6:26
asv19-May-04 6:26 
GeneralRe: Global Variables Pin
Andrew Quinn AUS19-May-04 6:06
Andrew Quinn AUS19-May-04 6:06 
GeneralRe: Global Variables Pin
asv19-May-04 6:36
asv19-May-04 6:36 
GeneralRe: Global Variables Pin
Andrew Quinn AUS19-May-04 6:52
Andrew Quinn AUS19-May-04 6:52 
GeneralRe: Global Variables Pin
asv19-May-04 21:56
asv19-May-04 21:56 

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.