Whats up with the console window?

It has a disabled close button and appears as maximized while being freely movable.

You should make the close button hide the window, even if you don't like it. Every other system tray application behaves this way and the user expects it to just work.

I wouldn't even have noticed that the console is maximized if it wasn't for the close button. This could be related to an issue i was having a few days ago where the console window had no window decoration, was positioned in the upper left corner while having repaint issues.
What are you trying to achieve here? It looks like a mega-hack, you shouldn't do it.

Whats up with the console window?

I agree with you that this is non-standard behavior. The problem is, that whenever the user closes the console window, the whole application is closed, no matter what value i return in the console control handler.
Since this is obviously not what i wanted, i just disabled the close button. In this sense it's "a hack", though only documented APIs are used. I didn't spend too much time to find out if there is a better solution.
I will look into it

cheers
Jan

Whats up with the console window?

i see, the easiest way is probably to create your own window with a rich text control or something like that

Whats up with the console window?

Probably yes, but in order to do that, i'd need to rewrite a considerable amount of code, which is unlikely to happen anytime soon ;-)

Whats up with the console window?

couldn't you just subclass the console window and override the close command?

Whats up with the console window?

I'm not sure if it's even possible to subclass a console window. I tried to obtain the dialog procedure of my console window via the usual GetWindowLong() call. Debugging this with IDA revealed that the return value actually doesn't point to a valid procedure. Setting a new dialog procedure didn't work either: the new procedure is never called (GetLastError returned ERROR_ACCESS_DENIED).
I guess that the dialog procedure really is inside the dos vm process (don't recall the name). So i think this is a dead end.

cheers
Jan

Whats up with the console window?

resolved in v1.5.2