|
If you want someone to even try to look at your code, read the posting guidelines at the top of the forum, They're there for a good reason.
Hint: pre tag.
Also, choosing an actual name, rather than a number helps.
Lastly, a bit more of a question please! What have you tried? Etc. Have you looked for CP articles that may help? Examples on MSDN? etc.
Iain.
Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.
|
|
|
|
|
I need to write a console application which would get me the list of users in a particular system and their corresponding user account privilege (Administrator, Guest, User, etc.). How could I do this ?
Thanks in advance.
|
|
|
|
|
See GetUserNameEx and LookupAccountName .
|
|
|
|
|
Hi all,
i want to know how can i use Enter key in TreeCtrl?
i want to use this same as LButtonDown function.
i m using Lbuttondown like this.
void CMyTree::OnLButtonDown(UINT nFlags, CPoint point)
{
CTreeView::OnLButtonDown(nFlags, point);
CTreeCtrl& tc = GetTreeCtrl();
UINT uFlags = 0;
HTREEITEM hItem = tc.HitTest(point, &uFlags);
if(!hItem)
return;
tc.SelectItem(hItem);
tc.SetFocus();
CString Previous_File;
CString Tree_str = tc.GetItemText(hItem);
CMainFrame *pMainFrame=(CMainFrame*)AfxGetMainWnd();
if (Tree_str==_T("Str"))
{
AfxMessageBox(Tree_str);
}
please anybody can tell me how can i do this.
Thanks in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
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
|
|
|
|