|
|
I have no idea how did you find it. I was searching for it from the page 1 to page 10 and I guess I missed it. I apologize for wrong accusation.
Regards,
Marko Kukovec
Rostfrei
|
|
|
|
|
Maybe you couldn't find the thread since the thread starter (you?) is "MeNot", and then you replies as "Rostfrei"
Just a thought.
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
I will be more cautious next time. I posted the question from coworkers computer and continue replying from mine.
Rostfrei
|
|
|
|
|
Rostfrei wrote: I was searching for it from the page 1 to page 10 and I guess I missed it.
No way. As of now, it is in the 5th page. I am not sure if you surfed through all the 10 pages from the beginning.
Rostfrei wrote: I apologize for wrong accusation.
Don't worry, such things do happen. Just exercise more caution in the future, that should help.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
Hi ,
I want to retrieve the parent of a selected item in a tree control.
I am using
Selected=(HTREEITEM)SendDlgItemMessage(hWnd,
IDC_TREE1,TVM_GETNEXTITEM,TVGN_CARET,(LPARAM)Selected);
Element = (HTREEITEM)SendDlgItemMessage(hWnd,IDC_TREE1,
TVM_SELECTITEM,TVGN_CARET,(LPARAM)Selected);
SendDlgItemMessage(hWnd,IDC_TREE1,
TVM_GETITEM,TVGN_CARET,(LPARAM)&tvi));
and then
i am using
Parent = (HTREEITEM)SendDlgItemMessage(hWnd,IDC_TREE1,
TVM_SELECTITEM,TVGN_PAREN,(LPARAM)Element );
but i am getting NULL value for Parent.
can any one help me with the problem
|
|
|
|
|
It's hard to read that unformatted code!
What about something like this:
HWND hwndTree = ::GetDlgItem(hWnd, IDC_TREE1);
HTREEITEM Selected = TreeView_GetSelection(hwndTree);
if (NULL != Selected)
{
HTREEITEM Parent = TreeView_GetParent(hwndTree, Selected);
if (NULL != Parent)
{
...
}
}
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi,
I want to dismount the physical disk but DeviceIoControl()function with FSCTL_DISMOUNT_VOLUME control code is not work on physical disk handle.
Is FSCTL_DISMOUNT_VOLUME only used with logical drive handle?
|
|
|
|
|
From the documentation: If the operation fails or is pending, DeviceIoControl returns zero (0). To get extended error information, call GetLastError.
Did you try to find out what went wrong by calling GetLastError() ?
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
I have a dialog with a radio button on it. This dialog is modeless and child of CView class. Can I handle the dialog messages like radio button ON_COMMAND in my view class? I am not receiving these messages in my view class. However, if I add a separate class for dialog, then messages are properly received there.
the fruits of your success will be in direct ratio to the honesty and sincerity of your own efforts in keeping your own records, doing your own thinking and, reaching your own conclusions.
..surviving in autumn..in love with spring..
|
|
|
|
|
modeless dialogs don't have a message loop. so if you want to process the messages than you need a second GUI thread to launch and show the dialog!
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Sorry Message is deleted..
I have a MDI Application(class is view,mainframe and extra class is data).ANd i add dailog(class testdlg) and call it as a domodel.I add list box in dialog and add variable m_add.These m_add variable i want to call data.cpp.
Plz help me
modified on Tuesday, September 2, 2008 4:19 AM
|
|
|
|
|
If your dialog is modal, you can't. But as I suggested yesterday, read a good book on MFC because you are really missing out fundamuntal concepts.
|
|
|
|
|
It's realy not possible...
|
|
|
|
|
MsmVc wrote: It's realy not possible...
To buy a book ? Well, then try to find some good tutorials about MFC on the net (e.g. google[^]). I think you really need to understand the basics before trying to go any further.
|
|
|
|
|
|
|
Hi All
I did it.Thx's for help..
|
|
|
|
|
The callback function is always used,but I wanna know its definition,function and so on.Can you give me some examples about it?
Thanks.
|
|
|
|
|
Have you seen here[^]?
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
|
I use CToolBarCtrl to create a toolbar in the dialog.
There are 5 buttons in the toolbar.
Initially I set the 3rd button checked.
But it always make the left most button focus.(Highlightly?)I don't want this.
|
|
|
|
|
Hope somebody help me solve this.
|
|
|
|
|
hi every one
how can i declare Default parameter in ActiveX methodes?
with special thanks
|
|
|
|
|
hi
in my application i have one dll ,and 3 views.
when user clicks on one view --dll function is called(mapped to dll fun)
from that all function to i nead to send message to that view..how to doit can any one give hint....
|
|
|
|