RE: windows 7 menu-/toolbar drawing bug
"Nenad Stefanovic" <[email protected]>
| Newsgroups | gmane.comp.windows.wtl |
|---|---|
| Message-ID | <000901ca0550$15420050$3fc600f0$@com> |
This bug was reported before. It is not a WTL problem, it is a bug in REBAR control in Windows. Because of that, we didn't change anything, hoping it will be fixed. The problem is not specific to Windows 7, it is also there on Windows XP. It can be seen when the themes are active. The quick solution that Alain proposed is not a general one because m_hWndToolBar can be used for REBAR or for a ToolBar. There is no easy way to check what m_hWndToolBar is. Erasing background for the ToolBar would cause flicker. If you know that you have a REBAR, that then solution if OK. The full solution would be to derive a class from CWindowImpl using CReBarCtrl as a base window class, implement OnSize handler and erase background there. Cheers, Nenad From: [email protected] [mailto:[email protected]] On Behalf Of Constantin Bryzgalin Sent: Wednesday, July 15, 2009 10:12 AM To: [email protected] Subject: Re: [wtl] windows 7 menu-/toolbar drawing bug Hello, Ah, so the only fixes in the trunk are SLOW fixes? :) > A quick fix is ONLY a quick fix ;-) > ----- Original Message ----- > From: Constantin Bryzgalin > To: [email protected] <mailto:wtl%40yahoogroups.com> > Sent: Tuesday, July 14, 2009 7:10 PM > Subject: Re: [wtl] windows 7 menu-/toolbar drawing bug > Hello, > Maybe it's better to make it conditional? > ::InvalidateRect(m_hWndToolBar, NULL, RunTimeHelper::IsVista()); > BTW, this doesn't seem to be in trunk yet. Why? -- Constantin Bryzgalin http://www.oneclicktools.com [Non-text portions of this message have been removed] ------------------------------------ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/wtl/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/wtl/join (Yahoo! ID required) <*> To change settings via email: mailto:[email protected] mailto:[email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/