CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2003
    Posts
    2

    Chid window within console window

    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

  2. #2
    Join Date
    Feb 2003
    Location
    California
    Posts
    334
    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.
    Henri Hein
    Principal Engineer, Propel
    Do not credit Propel with my views or opinions.

  3. #3
    Join Date
    Feb 2003
    Posts
    2
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured