This is not a duplicate of the suggested question. From my question: "I'm not asking how to write the code. The code works." + "if this SHELLDLL_DefView is basically the desktop window and therefore I should just accept that the gadget functionality should be avoided, or if this is a bit different and could be used." End of edit.
According to Cody Gary and Raymond Chen using the desktop window is usually a bad idea. This also seems to be Hans Passant's view.
Unfortunately, desktop gadgets have been retired so the only way to achieve their functionality is with code such as this which relies on setting SHELLDLL_DefView
as the parent of a window.
Since I don't know enough myself, I was wondering if someone could tell me if this SHELLDLL_DefView
is basically the desktop window and therefore I should just accept that the gadget functionality should be avoided, or if this is a bit different and could be used.
I'm not asking how to write the code. The code works. I just want to know if it's a safe, or whether it's likely to cause trouble down the road.
(My code is in C#-WPF but it's interop with Win32 so I tagged it with C++ as well because C++ devs are most likely to know about this.)