VC++ Question:
VC++ Question:
I have a question on making a VC++ SDI program.
How can I make a SDI app with no System Bar or boarder? Just plain box with a CView?
Thank you,
How can I make a SDI app with no System Bar or boarder? Just plain box with a CView?
Thank you,
Re:VC++ Question:
Well, I haven't figured out how to get rid of the title bar (or if it's even possible), but you can get rid of the system menu by overriding PreCreateWindow in your CMainFrame class. Then add the following:
cs.style &= ~WS_SYSMENU;
cs.style &= ~WS_SYSMENU;
Re:VC++ Question:
Just tried for a few minutes and figured out how to do it.
Override CMainFrame::PreCreateWindow like I said and instead of doing what I told you to do in my previous post, do something like this instead:
cs.style = WS_POPUP | WS_VISIBLE;
cs.cx = 200;
cs.cy = 200;
The cs.cx and cs.cy are important...if you don't put them there, the window won't show up.
Override CMainFrame::PreCreateWindow like I said and instead of doing what I told you to do in my previous post, do something like this instead:
cs.style = WS_POPUP | WS_VISIBLE;
cs.cx = 200;
cs.cy = 200;
The cs.cx and cs.cy are important...if you don't put them there, the window won't show up.
Re:VC++ Question:
and if you've got a menu bar that you don't want displayed, you'll also have to add this line:
cs.hMenu = NULL;
cs.hMenu = NULL;
Re:VC++ Question:
i have a visual C++ 6.0 question. i have visual c++ 6.0 started edition or something like that. when i compile a program and run it, it says, Note: please do not distribute any programs made with this blah blah blah.
something in that nature. is there anyway to get rid of it? ???
also, if i got the pro edition (which will be after i learn c++) that would not show up and i can sell and distribute my games right?
something in that nature. is there anyway to get rid of it? ???
also, if i got the pro edition (which will be after i learn c++) that would not show up and i can sell and distribute my games right?
Re:VC++ Question:
I didn't pay that much.
Not even close.
Be a smart ebayer and you can get it for way under $100.
Not even close.
Be a smart ebayer and you can get it for way under $100.
Re:VC++ Question:
Yeah, EBay would probably be a good place to look. I'm not sure how practical it would be for you to get it like this, Joey, but I got the entire Visual Studio 6.0 suite (visual basic, visual C++, visual J++, visual FoxPro, and visual InterDev) for about $300 at academic pricing, which was about a third of the regular price at the time.
Re:VC++ Question:
Bloodshed software has a Dev-C++ for free. Also, there is DJGPP, but I don't like using it, because it uses a stub file to intro features into 16-bit. The stub file looks like a virus to a lot of anti-virus software. Also, you could develop in Linux, because Linux comes with gcc, an excellent compiler, standard. MS would have you pay too much for products that you can get elsewhere for free.
Re:VC++ Question:
I downloaded Dev-C++ 4. It's a nice-looking program, that is certain, but I did immediately notice a few Visual C++ features I use very heavily that are absent in the program, most notably auto-completion (what it has is very limited) and graphical dialog editing.
It probably would be a good place to start, though, if you don't want to pay for VC++'s extra features.
It probably would be a good place to start, though, if you don't want to pay for VC++'s extra features.
Re:VC++ Question:
Joey: you're probably using something like Visual C++ Educational Edition. Standard edition costs a lot less than Professional (probably under $100) and doesn't give you any annoying message boxes. In fact, the main difference is that Standard doesn't include the optimiser.