Click to See Complete Forum and Search --> : Chid window within console window


Gato
February 18th, 2003, 06:37 AM
Child window of console application. When WriteConsole(), their contents are overwritten. The only way I found of avoid this was to create it with GetDesktopWindow() as parent and, for always seeing it, use HWND_TOPMOST. Very, very, very ugly and nasty. Child window, of course, with WS_CLIPCHILDEN and WS_CLIPSIBLINGS.
How can I avoid this without these bad methods?
Thanks

hankdane
February 21st, 2003, 03:48 PM
Console applications are not supposed to have windows. You are breaking the metaphor; either it's a windows-based application or it's a console application. Mixing the two is bound to create problems.

Gato
February 24th, 2003, 02:58 AM
Perhaps you are right, but my philosophy is to do things as easily and efficiently as possible in order to minimize time and effort. In this case, I chose that way although there was others, of course.
After all, console window is a window and it would to behave as such. If not, the problem comes from that environment creators.
I hope there was a way.