Sign in to follow this  

how to create console window without frame ???

This topic is 3666 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I want to create a console window without a frame. Basically I want to use this within another win32 window created with CreateWindow. How can I do this ? OR I really really want to create this child window with CreateWindowEx (because it offers the functionality to create the window with/without frame and other stuff?), but how do I make this win32 window execute/display/interact console app, for example cmd.exe ?? Thanks for any help, madan

Share this post


Link to post
Share on other sites
If you want to create your own window that interacts and displays a console window, you may want to check out the source code to Console, a console replacement program.

Share this post


Link to post
Share on other sites
WOOOOWWW!!!! superb..

Thanks for the reply. You made my day. What I wanted is exactly (and even better) this Console!!! I think I can call this Console from another win32 app and with its frames and stuff ..

Thanks man !!!

Share this post


Link to post
Share on other sites
OK. Now I have another problem.

How can I make this console appear above my render window. I basically want to use the transparent feature of Console2. But I am not able to do it. I tried all these functions

SetWindow
SetActiveWindow
SetFocus
ShowWindow

in many combinations. It works if the windows are like normal win32 windows and we can happily switch our focus. But here the render area must be updated before Console2 can draw its window above mine. How to do this ?

The problem is even worse if my renderer is in full - screen mode !!! I cant see the Console2 window and no way to change focus.

[Edited by - aayudh on December 3, 2007 10:31:39 AM]

Share this post


Link to post
Share on other sites
I'm pretty sure you can't draw a GDI window (includes buttons etc) on a fullscreen DirectX window without pulling some tricks at least.

I haven't tried this in a long time though, but this at least might help you in your search to make it work!

Share this post


Link to post
Share on other sites
regardless it being econsole or Console2, they have to be started as a new process(using CreateProcess command in my app) if I dont want to mess the source code of that. Which means, in full screen mode they will change their focus and my full sceen app is now stuck as the console (which now has the focus) cant be seen in full screen mode.

hmm...so I am thinking this whole idea having a seperate process for the console is bad.

opinions ? suggestions ?

Share this post


Link to post
Share on other sites

This topic is 3666 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this