A
Alex Feinberg
If what you want to do is show your control somewhat like a ToolTip or
the drop--down from a ComboBox, you can add the control to the desktop
using Win32 API calls.
Use the API call GetDesktopWindow() to obtain a handle to the desktop,
then use the API call SetParent() (passing your control's handle and
the handle you obtained using GetDesktopWindow) to set your control's
parent to the desktop.
You'll probably also want to use the SetWindowLong() API call to make
sure your control has the extended window styles WS_EX_TOOLWINDOW (so
it doesn't appear in the taskbar) and WS_EX_TOPMOST (so it shows up
above your application's window).
Search Google Groups or MSDN for more info on those calls -- you'll
find better documentation there than I could ever write.
the drop--down from a ComboBox, you can add the control to the desktop
using Win32 API calls.
Use the API call GetDesktopWindow() to obtain a handle to the desktop,
then use the API call SetParent() (passing your control's handle and
the handle you obtained using GetDesktopWindow) to set your control's
parent to the desktop.
You'll probably also want to use the SetWindowLong() API call to make
sure your control has the extended window styles WS_EX_TOOLWINDOW (so
it doesn't appear in the taskbar) and WS_EX_TOPMOST (so it shows up
above your application's window).
Search Google Groups or MSDN for more info on those calls -- you'll
find better documentation there than I could ever write.