开发者

Make a win32 console app display a window

开发者 https://www.devze.com 2023-01-06 18:28 出处:网络
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 t开发者_运维问答here any way I can do this from a console app

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 t开发者_运维问答here 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.


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


see a CreateWindow / CreateWindowEx functions

0

精彩评论

暂无评论...
验证码 换一张
取 消