|
Hi DavidCrow,
Sorry, I wrote only to thank you, but by mistake I repeated my problem.
Pl forgive me.
Thank you again.
Shivaji Patil
|
|
|
|
|
I create a CStatic object in the view,and keep it's coordinate,then I can move it anywhere in the view,but when I scroll the view,the coordinate is not correct now ,How can I get the correct coordinate?
|
|
|
|
|
Try calling CFormView::GetScrollPosition() and then OffsetRect()ing the child's rect with this.
|
|
|
|
|
Oh,Thanks for your help,I got it.
|
|
|
|
|
hello all,
i want to learn how to parse an XML file using C++ and collect the values of the node in an array.
thanks
|
|
|
|
|
read this[^]
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
marcdev wrote:
read this[^]
I guess he doesn't want to be exposed to the dreadfulness of COM programming. Maybe TinyXml[^] is better suited for his needs (and/or abilities).
|
|
|
|
|
Depends on the needs (TinyXml doesn't support DTDs neither XSL) and if he/she wants to learn the standarized object model or a wrapper quite restricted.
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
|
Have you seen the IXMLDocument interface?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
hello,
I have created a dialog based application.In the menu of parent dialog i am popping up another dialog.When i click on the Cancel button or
the Cross red button of my dialog I get exited from complete application.i.e.the OnClose
of CDialog gets called.I want only that pop up dialog to be closed and not
complete apllication(i.e.the parent dialog on which my dialogis popping is also closed)How can i override the OnClose() and OnCancel()?of my dialog to stop this?
|
|
|
|
|
In Visual Studio .NET you can add events by selecting the class in the class view and then going to the properties window and clicking on the messages view and then finding the message you want, in your case WM_CLOSE, and selecting <add> On Close.
In Visual Studio 6 you can add events by opening up a dialog from the resource view and then right clicking on it and going to Class Wizard or events. Something in that area.
|
|
|
|
|
You can also disable the Close X button of a CWnd derived-object by calling GetSystemMenu()->EnableMenuItem(SC_CLOSE, MF_DISABLED);
|
|
|
|
|
Hi
I am working in VC++ with an SDI application. I have button on my UI, on click of the button, I should close the application and i.e the executable and restart it again. Can anyone please give me some inputs for doing this?
Thanks
Madhavi
|
|
|
|
|
What about starting a intermediate app that just waits until the application has terminated and then launches that app again
|
|
|
|
|
(make a smal prgrm(Restarter.exe) to ShellExecute ur main appln , which after executing the main program gets closed)
in the main appln's close event,
shellexecute(Restarter.exe)before CDialog::OnClose();
in the startup of the Restarter.exe,
ShellExecute(mainappln.exe) and issue ::close(); to terminate itself.
may be a bad idea.. but it'll work..
regards,
Rookie
|
|
|
|
|
use WinExec()
regards,
Rookie
|
|
|
|
|
Hi,
Thanks..
I am able to restart the application, but while closing it some threads are still running at the background. Can you pls help in shutting it down forcibily.
Thanks
Madhavi
|
|
|
|
|
See here for the proper way to shut down a thread.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
I have spent some days in exporting my Dialog Class in a MFC Dll,my dialog contains a gird control and toolbar control and some other controls. I can bulit the dll successfully ,but in the test code When I use the the following code :
CMyDialog dlg;
dlg.doModal();
The code just run the CMyDialog's constructor, doesn't invoke the OnCreat() and OnInitialDialog(),So My dialog cannot show up.
So I think the problem is about the Dll.
Does anybody can give me some suggestion or other helps!
Thanks a lot!
|
|
|
|
|
If the function where you call DoModal is also in that Dll you will need to declare AFX_MANAGE_STATE(AfxGetStaticModuleState());
at the beginning of that function!
|
|
|
|
|
How about the dll type? maybe in the extension dll ,there are some link errors.
|
|
|
|
|
hi,
in my project,it contains a main dialog and a child dialog which have some controls.now,i want to transparent the child dialog's background.
who can help me...
|
|
|
|
|
This is tricky, SetLayeredWindowAttributes() will make the whole dialog transparent, controls and all. There's no other way except for two ways I can think of. One is to make all your controls appear on windows the size of the control, communicating with them would be a little tedious.
You could also try painting a screen capture while you window is hidden, show the window and then paint itself with the screen capture. It will give it a transparent look. Look into the functions GetDC(), CreateCompatibleDC(), CreateCompatibleBitmap(), and BitBlt().
|
|
|
|
|
Hai..
I have a small problem, let me explain.
Suppose i have opened a file, name called d:\raghu\name.txt in the notepad application. Now i want to trace this path from my vc++ application. I have searched in the registry, but there is no use.
Please let me know.
Thanking you,
E.Veera Raghavendra.
|
|
|
|