|
ThatsMe. wrote: i want to use this same as LButtonDown function.
Handle WM_KEYDOWN message and inside the message check the key pressed is enter.
void CMyTree::OnKeyDown( UINT nChar, UINT nRepCnt, UINT nFlags )
{
if( nChar == VK_RETURN )
{
}
|
|
|
|
|
how can i get the string of treectrl on which i enter the key?
thanks
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
You can use of CTreeCtrl::GetItemText for get string of an item.
|
|
|
|
|
this is right syntax;
CString GetItemText( HTREEITEM hItem ) ;
how can i enter HTREEITEM hItem ,on enter the key,
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
Did you see MSDN see an example of MSDN:
HTREEITEM hCurSel = m_TreeCtrl.GetNextItem(TVI_ROOT, TVGN_CARET);
// report it to the user
if (hCurSel == NULL)
{
AfxMessageBox(_T("There is no selected item"));
}
else
{
CString str;
str.Format(_T("The currently selected item is \"%s\""),
(LPCTSTR)m_TreeCtrl.GetItemText(hCurSel));
AfxMessageBox((LPCTSTR)str);
}
|
|
|
|
|
Thanks now it is working.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
Very good.
|
|
|
|
|
Given a stack S and a queue Q, write a program in OOP (C++)that have 2 procedures FILLQ_WITHS will empty the contents of the stack S and insert them into the Queue Q and FillS_WithQ which will fill the stack S with the elements deleted from the queue Q. Impliment the procedure with S and having an array representation.
plz do this as soon as possible
|
|
|
|
|
|
|
That so should be a site. Maybe pointing to CPallini's freesoftware site?
Iain.
Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.
|
|
|
|
|
|
Qasimsha wrote: plz do this as soon as possible
You dont need to request. just order..
"DO THIS AS SOON AS POSSIBLE"
|
|
|
|
|
You can write your program and ask of us your problem but you wrote your question and then you said "plz do this as soon as possible".
please read "How to get an answer to your question " first post at this forum.
BTW you are lucky toxcct isnt here,now.
|
|
|
|
|
Hamid. wrote: BTW you are lucky toxcct isnt here,now.
|
|
|
|
|
Hamid. wrote: BTW you are lucky toxcct isnt here,now.
You are bad :P
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
mwhawhaahaahaha!
[soft voice] <small> bloood... bloooooooood... </small> [/soft voice]
Wait, give me your address, I'll come to help you... personally... I promise...
|
|
|
|
|
c++ vampire
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Done buddy. Next task?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Like yesterday.
|
|
|
|
|
Oh, yes, the usual quality.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
void FILLQ_WITHS(Queue& Q, const Stack& S)
{
S.FillFrom(Q);
}
void FillS_WithQ(Stack& S, const Queue& Q)
{
Q.FillFrom(S);
}
There you go. Writing classes Stack and Queue are left as an exercise
Graham
My signature is not black, just a very, very dark blue
|
|
|
|
|
Hi everyone,
I am using Microsoft Comm control ActiveX control in My program.I am not getting How to use that in proper way.Isearched in net i am not getting on VC++.
when i inserted com control into my program Two files are added they are mscomm.cpp and mscomm.h.I dont know the events of mscomm.In vb we have events like
commEvRecv and send.But i am not getting like that events in VC++ please tell me How To do that..I am in tension.Please help me.please give me some VC++ examples or articles in VC++.
Please...
Thanks in Advance,
Savitri.
|
|
|
|
|
|