comparison libvo/vo_kva.c @ 32482:cc24ebf93de4

Prevent a parent window from painting over our window on slave mode
author komh
date Tue, 02 Nov 2010 13:51:52 +0000
parents fbe5c829c69b
children 8975b893179e
comparison
equal deleted inserted replaced
32481:983577adcf0e 32482:cc24ebf93de4
567 if (WinID == -1) { 567 if (WinID == -1) {
568 hwndParent = HWND_DESKTOP; 568 hwndParent = HWND_DESKTOP;
569 flFrameFlags = FCF_SYSMENU | FCF_TITLEBAR | FCF_MINMAX | 569 flFrameFlags = FCF_SYSMENU | FCF_TITLEBAR | FCF_MINMAX |
570 FCF_SIZEBORDER | FCF_TASKLIST; 570 FCF_SIZEBORDER | FCF_TASKLIST;
571 } else { 571 } else {
572 ULONG ulStyle;
573
572 hwndParent = HWNDFROMWINID(WinID); 574 hwndParent = HWNDFROMWINID(WinID);
573 flFrameFlags = 0; 575 flFrameFlags = 0;
576
577 // Prevent a parent window from painting over our window
578 ulStyle = WinQueryWindowULong(hwndParent, QWL_STYLE);
579 WinSetWindowULong(hwndParent, QWL_STYLE, ulStyle | WS_CLIPCHILDREN);
574 } 580 }
575 581
576 m_int.hwndFrame = 582 m_int.hwndFrame =
577 WinCreateStdWindow(hwndParent, // parent window handle 583 WinCreateStdWindow(hwndParent, // parent window handle
578 WS_VISIBLE, // frame window style 584 WS_VISIBLE, // frame window style