Click here to Skip to main content
15,914,642 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: VC# Class Library in VC# & VC++ Pin
Hamid_RT3-Jul-08 20:46
Hamid_RT3-Jul-08 20:46 
GeneralRe: VC# Class Library in VC# & VC++ Pin
Andy Rama3-Jul-08 20:51
Andy Rama3-Jul-08 20:51 
AnswerRe: VC# Class Library in VC# & VC++ Pin
CPallini3-Jul-08 21:17
mveCPallini3-Jul-08 21:17 
GeneralRe: VC# Class Library in VC# & VC++ Pin
Hamid_RT3-Jul-08 21:20
Hamid_RT3-Jul-08 21:20 
GeneralRe: VC# Class Library in VC# & VC++ Pin
CPallini3-Jul-08 21:23
mveCPallini3-Jul-08 21:23 
GeneralRe: VC# Class Library in VC# & VC++ Pin
Hamid_RT3-Jul-08 23:57
Hamid_RT3-Jul-08 23:57 
GeneralRe: VC# Class Library in VC# & VC++ Pin
CPallini4-Jul-08 0:05
mveCPallini4-Jul-08 0:05 
QuestionItems not visible in ActiveX ListCtrl Pin
thammadi3-Jul-08 20:05
thammadi3-Jul-08 20:05 
Hi All,

I have an activex control subclassed from SysListView32. I wanted it to appear and work like the property grid the we see in VS 2003/2005.
I was able to get the look right. The problem is even though I added items using ListView_InsertItem, these items are not visible on the list control.

In PreCreateWindow, I am setting the style like this:
cs.style |= LVS_REPORT | LVS_NOCOLUMNHEADER | LVS_OWNERDRAWFIXED;

In OnCreate, I am adding the columns and a single item like this:
ListView_InsertColumn(m_hWnd, 0, "Empty");
ListView_InsertColumn(m_hWnd, 1, "Property Name");
ListView_InsertColumn(m_hWnd, 2, "Property Value");

LVITEM lvItem;
lvItem.mask = LVIF_TEXT | LVIF_PARAM;
lvItem.iItem = 0;
lvItem.pszText = "";
ListView_InsertItem(m_hWnd, &lvItem);
ListView_SetItemText(m_hWnd, 0, 1, "Properties")

I also used OnCustomDraw, OnEraseBkgnd & MeasureItem methods to archive my look and feel.

Please help !
AnswerRe: Items not visible in ActiveX ListCtrl Pin
Naveen3-Jul-08 20:50
Naveen3-Jul-08 20:50 
GeneralRe: Items not visible in ActiveX ListCtrl Pin
thammadi4-Jul-08 2:03
thammadi4-Jul-08 2:03 
AnswerRe: Items not visible in ActiveX ListCtrl Pin
Hamid_RT3-Jul-08 20:54
Hamid_RT3-Jul-08 20:54 
GeneralRe: Items not visible in ActiveX ListCtrl Pin
thammadi4-Jul-08 2:04
thammadi4-Jul-08 2:04 
AnswerRe: Items not visible in ActiveX ListCtrl Pin
thammadi4-Jul-08 3:23
thammadi4-Jul-08 3:23 
Questioncreate process Vs Shell execute Pin
nisha000003-Jul-08 20:02
nisha000003-Jul-08 20:02 
AnswerRe: create process Vs Shell execute Pin
Hamid_RT3-Jul-08 20:44
Hamid_RT3-Jul-08 20:44 
AnswerRe: create process Vs Shell execute Pin
CPallini3-Jul-08 21:12
mveCPallini3-Jul-08 21:12 
JokeRe: create process Vs Shell execute Pin
Rajesh R Subramanian3-Jul-08 22:48
professionalRajesh R Subramanian3-Jul-08 22:48 
GeneralRe: create process Vs Shell execute Pin
CPallini3-Jul-08 23:16
mveCPallini3-Jul-08 23:16 
QuestionCalendar Control question Pin
monsieur_jj3-Jul-08 19:24
monsieur_jj3-Jul-08 19:24 
AnswerRe: Calendar Control question Pin
_AnsHUMAN_ 3-Jul-08 19:43
_AnsHUMAN_ 3-Jul-08 19:43 
Questionexcute code Pin
sofia_1113-Jul-08 17:56
sofia_1113-Jul-08 17:56 
QuestionRe: excute code Pin
CPallini3-Jul-08 21:16
mveCPallini3-Jul-08 21:16 
QuestionQuick question about combobox Pin
monsieur_jj3-Jul-08 15:35
monsieur_jj3-Jul-08 15:35 
AnswerRe: Quick question about combobox [modified] Pin
Nibu babu thomas3-Jul-08 17:10
Nibu babu thomas3-Jul-08 17:10 
GeneralRe: Quick question about combobox Pin
monsieur_jj3-Jul-08 17:37
monsieur_jj3-Jul-08 17:37 

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.