Click here to Skip to main content
15,890,370 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: computer name, motherboard sn, hard disk sn Pin
«_Superman_»28-Nov-09 19:22
professional«_Superman_»28-Nov-09 19:22 
GeneralRe: computer name, motherboard sn, hard disk sn Pin
mazizi28-Nov-09 21:31
mazizi28-Nov-09 21:31 
AnswerRe: computer name, motherboard sn, hard disk sn Pin
T210228-Nov-09 22:50
T210228-Nov-09 22:50 
AnswerRe: computer name, motherboard sn, hard disk sn Pin
Richard MacCutchan29-Nov-09 1:35
mveRichard MacCutchan29-Nov-09 1:35 
QuestionDisplay database records in listview Pin
billu 228-Nov-09 2:40
billu 228-Nov-09 2:40 
AnswerRe: Display database records in listview Pin
«_Superman_»28-Nov-09 5:47
professional«_Superman_»28-Nov-09 5:47 
AnswerRe: Display database records in listview Pin
David Crow29-Nov-09 16:04
David Crow29-Nov-09 16:04 
AnswerRe: Display database records in listview Pin
billu 229-Nov-09 18:08
billu 229-Nov-09 18:08 
M able to display sme text in the list view. M writing the code 4 that. Smebody help to modify that code to insert data from database. The code is:

CDialog::OnInitDialog();
{
LVCOLUMN lvColumn;
LVITEM lvItem;
int nItem;

m_list.SetExtendedStyle(LVS_EX_CHECKBOXES);

lvColumn.mask = LVCF_FMT | LVCF_TEXT | LVCF_WIDTH;
lvColumn.fmt = LVCFMT_LEFT;
lvColumn.cx = 100;
lvColumn.pszText = "ID";
m_list.InsertColumn(0, &lvColumn);

lvColumn.mask = LVCF_FMT | LVCF_TEXT | LVCF_WIDTH;
lvColumn.fmt = LVCFMT_LEFT;
lvColumn.cx = 150;
lvColumn.pszText = "Name";
m_list.InsertColumn(1, &lvColumn);

lvColumn.mask = LVCF_FMT | LVCF_TEXT | LVCF_WIDTH;
lvColumn.fmt = LVCFMT_LEFT;
lvColumn.cx = 200;
lvColumn.pszText = "Description";
m_list.InsertColumn(2, &lvColumn);


lvItem.mask = LVIF_TEXT;
lvItem.iItem = 0;
lvItem.iSubItem = 0;
lvItem.pszText = "Anoop";
nItem = m_list.InsertItem(&lvItem);

m_list.SetItemText(nItem, 1, "a");
m_list.SetItemText(nItem, 2, "b");

lvItem.mask = LVIF_TEXT;
lvItem.iItem = 1;
lvItem.iSubItem = 0;
lvItem.pszText = "Roger A. Miller";
nItem = m_list.InsertItem(&lvItem);

m_list.SetItemText(nItem, 1, "Footballer");
m_list.SetItemText(nItem, 2, "Tennis");


lvItem.mask = LVIF_TEXT;
lvItem.iItem = 2;
lvItem.iSubItem = 0;
lvItem.pszText = "Marie-Julie W. Gross";
nItem = m_list.InsertItem(&lvItem);

m_list.SetItemText(nItem, 1, "Student");
m_list.SetItemText(nItem, 2, "Boxing");


lvItem.mask = LVIF_TEXT;
lvItem.iItem = 3;
lvItem.iSubItem = 0;
lvItem.pszText = "Ella Pius Roger";
nItem = m_list.InsertItem(&lvItem);

m_list.SetItemText(nItem, 1, "Architect");
m_list.SetItemText(nItem, 2, "Ping-Pong");

return TRUE; // return TRUE unless you set the focus to a control

// EXCEPTION: OCX Property Pages should return FALSE
}


Thanks in advance....
Questiontopic for a research proposal! Pin
cool_joy228-Nov-09 1:56
cool_joy228-Nov-09 1:56 
AnswerRe: topic for a research proposal! Pin
Richard MacCutchan28-Nov-09 2:18
mveRichard MacCutchan28-Nov-09 2:18 
GeneralRe: topic for a research proposal! Pin
cool_joy21-Dec-09 21:11
cool_joy21-Dec-09 21:11 
GeneralRe: topic for a research proposal! Pin
Richard MacCutchan1-Dec-09 21:24
mveRichard MacCutchan1-Dec-09 21:24 
GeneralRe: topic for a research proposal! Pin
cool_joy21-Dec-09 21:51
cool_joy21-Dec-09 21:51 
GeneralRe: topic for a research proposal! Pin
Richard MacCutchan1-Dec-09 22:49
mveRichard MacCutchan1-Dec-09 22:49 
AnswerRe: topic for a research proposal! Pin
Rozis28-Nov-09 4:18
Rozis28-Nov-09 4:18 
GeneralRe: topic for a research proposal! Pin
cool_joy21-Dec-09 21:43
cool_joy21-Dec-09 21:43 
AnswerRe: topic for a research proposal! Pin
Michael Schubert29-Nov-09 7:11
Michael Schubert29-Nov-09 7:11 
GeneralRe: topic for a research proposal! Pin
cool_joy21-Dec-09 21:45
cool_joy21-Dec-09 21:45 
Questionkeeping track of users count Pin
nuttynibbles28-Nov-09 1:55
nuttynibbles28-Nov-09 1:55 
AnswerRe: keeping track of users count Pin
Richard MacCutchan28-Nov-09 2:17
mveRichard MacCutchan28-Nov-09 2:17 
GeneralRe: keeping track of users count Pin
nuttynibbles28-Nov-09 2:55
nuttynibbles28-Nov-09 2:55 
Questionerror while using fild name as timestamp Pin
thangvel27-Nov-09 22:59
thangvel27-Nov-09 22:59 
QuestionRe: error while using fild name as timestamp Pin
Richard MacCutchan28-Nov-09 1:41
mveRichard MacCutchan28-Nov-09 1:41 
QuestionRe: error while using fild name as timestamp Pin
David Crow29-Nov-09 16:28
David Crow29-Nov-09 16:28 
QuestionNeed a Similar API AudioVideoPlayback in unmanage code Pin
Shivanand Gupta27-Nov-09 19:00
Shivanand Gupta27-Nov-09 19:00 

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.