I've managed to customize my own CFontDialog by adding a couple of buttons and a combo box. VS 2008 on XP Pro. My problem is that when I enabled the hookproc (yes I need to use a hookproc) in my...
I'll do that after I remove all the proprietary code from the project. In fact, I might just see if I can recreate the problem in a new project that has only the code to reproduce the problem. That...
My comment was based on internet research and what others have said for using CRichEditView and looking at the CRichEditView code that contains the additional CRichEditCntrItem class and additional...
Yes, there are reasons for not using an MDI app. My app is a front end for a database where of course, all the data is stored. The function that my app performs does not require multiple documents...
I moved it to the end of my OnInitialUpdate override as you suggested but it did not fix my problem. My OnDraw override is now empty. I only have those lines in...
Hi,
I've created an SDI app with multiple views using VS 2008 on XP Pro.
The main view is CView on which I draw some stuff. I have two secondary views, both are to be Rich Edit views allowing the...
After thinking about your suggestion, Paul, :o I came up with this solution that should work. I'll have to add code to test for when y2Test is 1 or greater then subtract instead of add but that is...
That would work for this example, however, I oversimplified my example. In my app, yTest can be any power of 10 and the .01 can be any power of 10 less than yTest. For the next case it could be...
Paul,
The log10(yTest) is 8 so that won't work. I tried the following and it too fails for the Release mode which i=30 instead of 10. Debug i=10. I suspect this is the same problem. Exact...
I have a better understanding now that I read the post you referenced. Thanks for the information. I'll have to think of a solution that will work no matter which compiler option I use.
The problem is I don't know how many times the loop needs to run. It will likely be different every time. Your point should be taken care of by the fact that I'm using > and not an exact equality...
I came across this in my MFC app and simplified the code into this console app for this example. When I compile and run the following code in Debug mode, it gives the correct answer for i, (10). ...
DebugBreak(); works in that it allows me to attach the debugger however, when I do, it is launching my Compaq Visual Fortran Debugger. How do I get it to launch my .Net Debugger? Is there a...
Thanks Victor for all your help and time on this issue. I finally saw what my message boxes were showing me all along and that was the double quotes around the filename coming in off the command...
The applicable code is shown below. The first AfxMessageBox in LoadBMPFile displays the correct path and filename. However, the LoadImage returns a NULL.
I've deleted Open from my file menu and placed my own Open BMP instead and it works fine in my MFC CScrollView SDI app. My OpenBMP function gets the filename from the user; then in OnDraw, I load...