comparison win/dw.c @ 1726:a02ce34692f0

Enable toolbar double buffering during packing on Windows if the window isn't composited. We may need to do this differently but seems to work for now.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 14 May 2012 23:08:24 +0000
parents 2e0f87ec24fe
children 38a0e75bc59c
comparison
equal deleted inserted replaced
1725:2e0f87ec24fe 1726:a02ce34692f0
7120 SetParent(cinfo->buddy, box); 7120 SetParent(cinfo->buddy, box);
7121 ShowWindow(cinfo->buddy, SW_SHOW); 7121 ShowWindow(cinfo->buddy, SW_SHOW);
7122 SendMessage(item, UDM_SETBUDDY, (WPARAM)cinfo->buddy, 0); 7122 SendMessage(item, UDM_SETBUDDY, (WPARAM)cinfo->buddy, 0);
7123 } 7123 }
7124 } 7124 }
7125 #ifdef TOOLBAR
7126 else if(_tcsnicmp(tmpbuf, TOOLBARCLASSNAME, _tcslen(TOOLBARCLASSNAME)+1) == 0)
7127 {
7128 if(!(_dw_composition && (GetWindowLongPtr(_toplevel_window(box), GWL_EXSTYLE) & WS_EX_LAYERED)))
7129 {
7130 /* Enable double buffering if our window isn't composited */
7131 SendMessage(item, TB_SETEXTENDEDSTYLE, 0, (LPARAM)TBSTYLE_EX_DOUBLEBUFFER);
7132 }
7133 }
7134 #endif
7125 /* Queue a redraw on the top-level window */ 7135 /* Queue a redraw on the top-level window */
7126 _dw_redraw(_toplevel_window(box), TRUE); 7136 _dw_redraw(_toplevel_window(box), TRUE);
7127 } 7137 }
7128 } 7138 }
7129 7139