Marcel,
PERFECT! That's exactly what I want.
For those who have interest in this thread: I wanted the console window to gracefully exit (without quitting the SDI program) if the user hit the X-button or select Close from the console window. It appears that catching the "X" or...
Marcel,
Your above post works great with one exception. If I right-click on the top of the console the X gets reactivated and un-grayed. Any suggestions?
I am also going to look into how to gray out the X-Close sub-menu command that is accessible by right-clicking on the console - if you...
Marcel,
Your reply seems like the easiest to implement.
Your GetConsoleWindow() function does not compile and I cannot find it in my documentation - is that your own function? I would prefer to have a function that is a bit more portable so if you would be willing to post your function that...
Hello Forum Gurus:
I am implementing a CONSOLE application vis-a-vis my SDI application. I can get a console to launch correctly and send output to the console.
My Problem:
I would like for the console to exit "gracefully" when the user hits the X-button or choses Close from the...
Hello Forum Gurus:
Does someone have an example of how to implement an OnDraw() function that will draw a series of polygons in a view such that regardless of how many polygons there are they will all be drawn in the current view size?
Assume that:
1) I can predetermine what the maximum and...
Hello Forum Gurus:
I am implementing a CONSOLE application vis-a-vis my SDI application. I found some code to do this, and I can get a win-32 style console to launch correctly and send output to the console.
My Problem:
I would like for the console to exit "gracefully" when the user...
Pete,
Thanks for the try but it's a no-go. I had tried that before and the error message I get is ..."error C2664: 'Add' : cannot convert parameter 1 from 'struct BASE' to 'struct BASE' No copy constructor available for struct 'BASE' "
Does that jog any other ideas?
David G.
Hello Forum Gurus:
I am trying to figure out how to implement a CArray of a structure that contains within it another CArray.
The outer structure desired is:
struct BASE
{
int BasePoly;
CArray <int,int> AdjTo;
};
and I can declare a member of this in my document:
class CMainDoc : public...
Thank you all who have replied so far. I have this qustion posted on two forums and have received a few hints and indications that I need to elaborate a bit more.
My intention, for this application, is to learn about creating and using an SDI program. For that reason, I am not interested in...
Hello Tek-Tips Forum,
Before describing my problem I should give a short background. I
am a forest research scientist and my applications have been stictly
command window programs. I am now trying to learn some C++ and
MFC so I can build some simple front-end user interfaces for future...
Zyrenthian,
Thank you. I was trying to avoid learning about constructors and destructors for awhile but I forged ahead and have modified my structure to be a class and now I have been able to successfully use a destructor to free up huge free store memory that I allocate to store arrays of...
I am trying to create a generic function that will delete memory
I have created on the Free Store (using operator new). My idea
is to have a Switch statement inside the function that is
activated by an incoming parameter. My problem is that I am
using pointers within structures and I may be...
Does anyone have a good fail-safe method to parse out a text string that is column delimited (i.e. columns 1-4, which may have whitespace, is reserved for a particular variable). I have the following set up to read lines of input data that need to be parsed apart:
while((GetStatus =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.