Create child Window of another process's HWND? (e.g. screensaver preview)
问题 I'm writing a screensaver in Java. It's primarily for Windows, though I'd prefer it to be as portable as practical. According to http://support.microsoft.com/kb/182383, when a screensaver is invoked with command line args /p HWND , the screensaver should "Preview Screen Saver as child of window ." Presumably this is how screensavers should their little preview in the Screen Saver Settings dialog. So how, in Java, do you create a JFrame or JComponent that's a child of a window that belongs to