Hello.
I build Qt application as DLL. That dll is used in Windows app (3ds max 2012). To make my Qt app as child window for 3ds max I do:
Qt Code:
  1. void MainWindow::setParentWindowHandle(fVoid *parent)
  2. {
  3. if(parent)
  4. {
  5. SetParent(winId(), (HWND)parent);
  6.  
  7. QEvent e(QEvent::EmbeddingControl);
  8. QApplication::sendEvent(this, &e);
  9. }
  10. }
To copy to clipboard, switch view to plain text mode 

But, when my window is showed, border frame(menu bar with close, maximize buttons) isn't painted, it's corrupt (or something like this, see the image below).
Frameless.jpg

But close, maximize buttons is there! I may click them.

Don't know why it isn't painted...

P.S.: When my app isn't child of 3ds max then all frames, buttons are showed fine