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

C / C++ / MFC

 
GeneralRe: How can I get the ID code for Pin
Hamid_RT11-Nov-07 7:29
Hamid_RT11-Nov-07 7:29 
AnswerRe: How can I get the ID code for Pin
Roger Broomfield11-Nov-07 14:54
Roger Broomfield11-Nov-07 14:54 
QuestionA SQL statement with TOP Pin
followait10-Nov-07 23:02
followait10-Nov-07 23:02 
AnswerRe: A SQL statement with TOP [modified] Pin
toxcct11-Nov-07 4:47
toxcct11-Nov-07 4:47 
GeneralRe: A SQL statement with TOP Pin
followait11-Nov-07 15:12
followait11-Nov-07 15:12 
QuestionRe: A SQL statement with TOP Pin
David Crow11-Nov-07 17:07
David Crow11-Nov-07 17:07 
QuestionHow to recieve the message of the CTreeCtrl,"TVN_ITEMEXPANDED" Pin
chenlei811010-Nov-07 21:40
chenlei811010-Nov-07 21:40 
AnswerRe: How to recieve the message of the CTreeCtrl,"TVN_ITEMEXPANDED" Pin
bob1697211-Nov-07 5:25
bob1697211-Nov-07 5:25 
If your using a CView derived class to host this in, you would want to make your code look something like the following...

//////////////////////////////////////////////////
// Generated message map functions
protected:
CTreeCtrl* m_pTreeCtrl;
//{{AFX_MSG(CTest234View)
//}}AFX_MSG
afx_msg void OnItemexpandingTreeDocuments(NMHDR* pNMHDR, LRESULT* pResult);
DECLARE_MESSAGE_MAP()

/////////////////////////////////////////////////////////
BEGIN_MESSAGE_MAP(CTest234View, CView)
//{{AFX_MSG_MAP(CTest234View)
//}}AFX_MSG_MAP
ON_NOTIFY(TVN_ITEMEXPANDING, IDC_DROP_TREE, OnItemexpandingTreeDocuments)
END_MESSAGE_MAP()

////////////////////////////////////////////////////
void CTest234View::OnInitialUpdate()
{
CView::OnInitialUpdate();

// TODO: Add your specialized code here and/or call the base class
m_pTreeCtrl=new CTreeCtrl();

if (m_pTreeCtrl) {
m_pTreeCtrl->Create(TVS_HASBUTTONS |
TVS_HASLINES | TVS_LINESATROOT | TVS_FULLROWSELECT |
WS_TABSTOP|WS_CHILD|WS_VISIBLE|WS_BORDER|TVS_SINGLEEXPAND ,
CRect(0,0,200,200),
this,IDC_DROP_TREE);

HTREEITEM hFirst=m_pTreeCtrl->InsertItem("First",NULL,NULL,NULL,TVI_SORT);

if (hFirst) {
HTREEITEM hSecond=m_pTreeCtrl->InsertItem("Second",NULL,NULL,hFirst,TVI_LAST);
}
}
}

void CTest234View::OnItemexpandingTreeDocuments(NMHDR* pNMHDR, LRESULT* pResult)
{
TRACE("Got here\n");
}
GeneralRe: How to recieve the message of the CTreeCtrl,"TVN_ITEMEXPANDED" Pin
bob1697211-Nov-07 5:35
bob1697211-Nov-07 5:35 
GeneralRe: How to recieve the message of the CTreeCtrl,"TVN_ITEMEXPANDED" Pin
chenlei811011-Nov-07 15:48
chenlei811011-Nov-07 15:48 
AnswerRe: How to recieve the message of the CTreeCtrl,"TVN_ITEMEXPANDED" Pin
chenlei811012-Nov-07 21:35
chenlei811012-Nov-07 21:35 
QuestionVC ADO Recordset, How to use the paging facility? [modified] Pin
followait10-Nov-07 21:30
followait10-Nov-07 21:30 
Questionchange main window?? Pin
srvsah10-Nov-07 21:16
srvsah10-Nov-07 21:16 
AnswerRe: change main window?? Pin
Hamid_RT10-Nov-07 23:09
Hamid_RT10-Nov-07 23:09 
AnswerRe: change main window?? Pin
bob1697211-Nov-07 4:45
bob1697211-Nov-07 4:45 
Questionchange main window?? Pin
srvsah10-Nov-07 20:29
srvsah10-Nov-07 20:29 
AnswerRe: change main window?? Pin
Hamid_RT10-Nov-07 23:09
Hamid_RT10-Nov-07 23:09 
QuestionScope of pointer to class instance Pin
Oliver12310-Nov-07 18:31
Oliver12310-Nov-07 18:31 
AnswerRe: Scope of pointer to class instance Pin
Rajasekharan Vengalil10-Nov-07 18:45
Rajasekharan Vengalil10-Nov-07 18:45 
QuestionDetect MAC address in C++ Pin
Kogee San10-Nov-07 17:38
Kogee San10-Nov-07 17:38 
AnswerRe: Detect MAC address in C++ Pin
Rajasekharan Vengalil10-Nov-07 18:42
Rajasekharan Vengalil10-Nov-07 18:42 
GeneralRe: Detect MAC address in C++ Pin
Kogee San10-Nov-07 20:58
Kogee San10-Nov-07 20:58 
AnswerRe: Detect MAC address in C++ Pin
Bram van Kampen11-Nov-07 6:20
Bram van Kampen11-Nov-07 6:20 
GeneralRe: Detect MAC address in C++ Pin
Rajasekharan Vengalil11-Nov-07 22:05
Rajasekharan Vengalil11-Nov-07 22:05 
GeneralRe: Detect MAC address in C++ Pin
Kogee San12-Nov-07 8:36
Kogee San12-Nov-07 8:36 

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.