如何将自己的窗口始终保留在后台?

我正在创建一个小时钟小部件,该小部件应始终留在桌面上。我不希望窗口更改其z顺序,因此即使单击它,它也始终留在后面。

I already tried sending it back in the windows GotFocus and Activated Events, but that does not seem to work. Setting the SWP_NOOWNERZORDER (0x0200) flag wie SetWindowPos always did not help.

有人知道吗,我该怎么做?

This is what should not happen, when click on it. (image)

评论