I am creating one mdi application, which has say 5 forms(like employee management, leave management, etc.). these forms are derived from CFormView. What i want is if user clicks one of 5 menus the corresponding form should be shown as child window. I want know how to create an instance for these forms. How to make this for as a child window and how to show it? that is my problem.
I would like to develop a Remote Task Manager utility, which reads the Tasks running on a remote machine(s). Does anybody give me a hint, how it can be done in C++/MFC.
Thanks in Advance
I am making an application for Pocket PC using dialog based MFC on embedded VC++.
I try to attach an application like Word, Excel on dialog.
I used "SetParent" to attach the application on dialog.
The code is like this.
"dlg.m_hSWnd" is the handle of application that I want to attach on dialog.
"m_hWnd" is the handle of dialog.
Actually, applications are shown on dialog well.
However, it is shown without command bar that the application originally has.
What I hope to know is how to show the command bar.
If you know something about this kind of problem, help me please..
this code is what I tried
if ( IDOK == dlg.DoModal() )
SetMenu( a );
<marquee direction="up" height="40" scrolldelay="1" step="1" scrollamount="1" style="background:#aabbcc;border-bottom:thin solid 1px #6699cc">
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
For non-user interaction:
cant you just save the string to a file with .txt extention? is it specific to the notepad application?
For user-interaction required:
You can also (maybe consider) use the clipbord to put the text data there and the user can then say paste to put the content whereever the user wants to paste.
This way you dont have to open a notepadd application all the time for each text that needs to be tranfered.
thanks for ur reply,
the situation is there is a string that should be displayed, when i press a button in the dialog box, in the text file(notepad), later the user can save the text file wherever he wants,.
if you write the explanation in detail that would be nice,
Can someone tell me how to override the explorers implementation of Drop event for a specific case? More elaborately, I need to provide a custom implementation of the Drop event when a file is dragged from my namespace extension to a Windows folder.
Exactly!! What is supposed to happen is I will give the details of the file as well as the directory to which it is to be downloaded to an Applet and it will do what is necessary. Can you help me with this?
Humm, it is difficult to hook on to someone else implementation of the drag drop.
This is what i did,
1.I had a service running the background which simulated my application specific clipboard.
2.Implement ICopyHook[^], The service implements this hook
3. Specify a directory name which is very unique, like C:\program files\<guidno>
4. When you want to drag drop, put this unique directory name in the clipboard and send other files that needs to be copied to the service that is running the background.
5. When the files are droped, windows will try to copy the files, now we hook that copy operation at the directory level, check that this is the unique directory, so the src data belongs to us.
6. dismiss the copy operation so that windows does not do any copying stuff, now the service has the src files, and destination direcotry.
7. Start your custom copy operation.
Complecated But i could not find any other solution, but it worked very nicely.
Actually i did not test this for drag-drop, i have tested this for copy-paste task.
firstly, why do you create two new classes xxxInfo for the search methods ?
secondly, what is the error returned ?
thirdly, did you notice that your base classes data members were private (where they should be protected) ?