Simon Elliott
Simon Elliott

Reputation: 2117

Make a win32 console app display a window

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.

Upvotes: 3

Views: 1376

Answers (2)

Hans Olsson
Hans Olsson

Reputation: 55059

As far as I remember the main difference is that you'll need a message pump. This question describes a basic message pump: Why are "TranslateMessage" and "DispatchMessage" separate calls?

This tutorial might also be helpful: Understanding the Message Loop

Upvotes: 2

zed_0xff
zed_0xff

Reputation: 33257

see a CreateWindow / CreateWindowEx functions

Upvotes: 0

Related Questions