|
Great
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
I was wondering about CEditView.
I'm having problem to making selections within a CEditView and how to modify the text in it. I'm also wondering how to make a control for it and how to get/modify the text in it.
Thanks in advance ...
-- Kelthar :: icq9071676 :: http://uteliggare.net/southern/ --
|
|
|
|
|
CEditView::GetEditCtrl gives you access to the underlying CEdit control. On this control you can use the methods CEditView::SetSel , CWnd::GetWindowText and CWnd::SetWindowText .
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Howdy,
I was wondering how I can have 2 or more new documents open by default each time my MDI application starts (instead of just 1).
Rob
|
|
|
|
|
In the InitInstance of your app, you can make a call on the document template that you registered to create a new empty document. Do this right at the end on of the InitInstance procedure:
pDocTemplate->OpenDocumentFile(NULL) ;
Roger Allen
Sonork 100.10016
If I'm not breathing, I'm either dead or holding my breath.
|
|
|
|
|
Thanks! I figured it would be easy.
|
|
|
|
|
I think the serial number is in bios. how can i get it? is it hard because i'm just a beginner.
|
|
|
|
|
I am trying to develop an edit box that can take input and whne you push "return" it will automatically send the text as ... to the View. Now, I would like to be able to use somethinmg similar to Updatedata to do this but just for this EDIT box. But I want a simple way to do this so that I don't have to post a message specific for this (and every other edit box) and then in the View ready each via a call to GetDlgItem etc.
Any suggestions?
Thanks in advance.
|
|
|
|
|
Hello,
Does anybody know how to check System Memory from my application, and if it is below some limit, warn the user? To be more clear: I implement a HTTP server, using threads for handling clients requests. Probably my code is not so good, having some memory leaks (?), but, during a time, process couldn't allocate enough memory, and I want to be able to check this, and warning. What kind of memory I shall take care? Is possible to handle this situation?
Many thanks,
Mihai
|
|
|
|
|
surely it'd be better to fix the memory leaks? i for one wouldn't be all that impressed if i bought some software and it popped up a message saying "sorry, i lost a whole lot of your memory. your system is now running like a dog. please go buy more, so i can consume that too"
Sorry to dissapoint you all with my lack of a witty or poignant signature.
|
|
|
|
|
You are absolutely right, but let say, we will have no more memory leaks, and the server should receive an increased ammount of traffic: should't be nice to set the server to send an allert to webmaster, warning that he need a better machine?
|
|
|
|
|
Jon Hulatt wrote:
i for one wouldn't be all that impressed if i bought some software and it popped up a message saying "sorry, i lost a whole lot of your memory
We released an app which did just this, but it was a third party component we had to use which was doing all the leaking
Someone else can always make your own good work almost worthless.
Roger Allen
Sonork 100.10016
If I'm not breathing, I'm either dead or holding my breath.
|
|
|
|
|
Hello gurus!
I face the folowing problem: I develop an application and when user install it, the setup program has to change programatically the Internet Explorer Browser settings.
Can anyone point me in a direction??? I have no ideea, where to start. Are the settings stored in registers? Or is another way?? (More specifically: I want to change the settings of using a proxy).
And if is possible, the same question for Netscape Navigator.
Many thanks,
Mihai
|
|
|
|
|
I believe the proxy settings are stored in the registry. A while back I helped create a IE package at work and I am pretty sure all the proxy settings are stored in the registry. Sorry I can't be any more specific.. I'll see if I can dig something up and post it..
Rob
|
|
|
|
|
WinInet function InternetSetOption is your starting point.
As for Netscape, I'm afraid it is no simple task, you have to edit a file named prefs.js but the whole issue is rather messy.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Thanks for good point you told me, regarding Netscape prefs.js.
For Explorer, I will use the registry key, as I was pointed by another answer.
Regards,
Mihai
|
|
|
|
|
For Explorer, I will use the registry key, as I was pointed by another answer.
It is up to you which method you choose to use, but IMHO resorting to InternetSetOption increases your chances that your app will work with upcoming versions of IE.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
You are absolutely right,
I don't thinked to future.
Mihai
|
|
|
|
|
Generally it is not a good idea to have your app's setup modify user settings. I would be very peeved to find my browser settings tweaked by a setup program without being notified and given the opportunity to cancel.
You can modify Netscape settings by removing it and installing IE.
|
|
|
|
|
As already said, it better to not change the IE settings without asking agreement from the user!
Anyway if u still need to do that, it is in the registry under the key:
HK_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings
and the values to change is : ProxyServer ( xxx.xxx.xxx.xxx:port )
If u need anything else post it!
Papa
|
|
|
|
|
Thanks a lot for pointing me in the right direction!
You are absolutely true, I found the setting right where you point me.
And as you say, the user will be prompted about changes.
Best regards, Mihai
|
|
|
|
|
Am I allowed to distribute an app that uses Microsofts MSHTML or CHtmlView without contacting MS for pemission. I have seen some apps with this in their about box.
"Microsoft Internet Explorer components under licence from Microsoft"
.NET or not .NET? MFC is the question......
|
|
|
|
|
Hello!
According to
Redistributing Microsoft Visual C++ 6.0 Applications
Redistributing Web Applications
If your application uses the MFC classes implementing the WebBrowser control (for example, CHtmlView or CHtmlEditView), Microsoft Internet Explorer 4.0 or later must at least be minimally installed on the target computer.
So this means that the user has to install IE4 or later to use your product, but since IE is "free" ...
// Mike
|
|
|
|
|
Two question:
1.
My program must monite the communication port in real-time mode,and display the trend-line in the screen,but when i do another long task,such as copy a big file to the floppy disk,
It seem that the program's interface can't updated until this long task has finished,
what shoud I do in such case?
2. when I drag another application's window, It seem that the WM_TIMER message only occured after I release the mouse-button,but I don't want this ,what do I do in such case?
Thanks a lot!
|
|
|
|
|
hemouse wrote:
the program's interface can't updated until this long task has finished,
what shoud I do in such case?
You should create a thread to perform time consuming tasks (such as the file copy) in the background. Alternatively, you can perform the file copy in small chunks, between which you should flush the Windows message queue. The separate thread is the preferred way.
hemouse wrote:
when I drag another application's window, It seem that the WM_TIMER message only occured after I release the mouse-button
WM_TIMER messages are still being sent as you perform the drag. However, Windows will handle higher priority messages first (eg: WM_MOUSEMOVE). Eventually, all the WM_TIMER messages will be handled as a single one. You need to restructure your logic to account for this.
/ravi
"There is always one more bug..."
http://www.ravib.com
ravib@ravib.com
|
|
|
|