Transparent hwnd window

前端 未结 2 1348
被撕碎了的回忆
被撕碎了的回忆 2021-01-07 12:28

Is it possible to create a \"transparent\" hwnd window ? What I mean by that is that there is no background or borders of that window but that only text is visible...like if

2条回答
  •  梦毁少年i
    2021-01-07 12:43

    From your tag of hwnd, I'm assuming that you are working with C++ or at least have access to the Win32 API, there are plenty of resources to help you get started. The concept is called Window Compositing.

    Transparent win32 window and text

    Quick and Dirty Window Transparency

    If you use WPF instead of C++, here's a link: Transparent Windows in WPF

提交回复
热议问题