tags:

views:

57

answers:

2

I've been developing a win32 console app and now I'd like it to be able to optionally show a non modal status / notification window. Is there any way I can do this from a console app or will I need to rewrite it as a windows app?

This is for a kiosk system so I'll need to call SetWindowPos() with the topmost flag on the window handle.

+2  A: 

As far as I remember the main difference is that you'll need a message pump. Here's a codeproject article showing how to easily add this: Adding Windows To Your Console Application

ho1
I saw the code project article while googling for a solution to this requirement. While it's a perfectly viable method, it does require a thread and a message pump. I was hoping for something more along the lines of a non modal MessageBox() lookalike.
Simon Elliott
+1 for excellent link.
Konrad
@Simon Elliott: You don't need another thread, but how would you expect your window to work without a message pump?
jamesdlin
@jamesdlin: I was hoping that the message pump could be encapsulated or at least a little bit less visible.
Simon Elliott
A: 

see a CreateWindow / CreateWindowEx functions

zed_0xff