Home » U++ Library support » Look and Chameleon Technology » Appearance problem in TabCtrl
Re: Appearance problem in TabCtrl [message #32633 is a reply to message #32586] |
Mon, 30 May 2011 11:54   |
 |
mirek
Messages: 14267 Registered: November 2005
|
Ultimate Member |
|
|
qapko wrote on Thu, 26 May 2011 04:05 | Hello Mirek,
I think I have a simple fix for the problem.I've attached changed ImageWin32.cpp.
On line 251 I've changed
sd.hbmp = ::CreateCompatibleBitmap(dc, sz.cx, sz.cy);
to
sd.hbmp = ::CreateCompatibleBitmap(dcMem, sz.cx, sz.cy);
At http://msdn.microsoft.com/en-us/library/dd183488%28v=vs.85%2 9.aspx it is written that:
If a DIB section, which is a bitmap created by the CreateDIBSection function, is selected into the device context identified by the hdc parameter, CreateCompatibleBitmap creates a DIB section.
I have no skill with Windows API at all, so my question is: Can this really be the issue? And if it is, aren't there in the code of Ultimate++ any other places with the same problem?
Gabi
|
Well, if I am not mistaken, such a change would mean "deoptimalisation". What we want to get there is not a DIB section. DIB section is only used to transfer the data, but in resulting bitmap, we definitely want to have device dependent bitmap here.
Would it be at least possible to post .iml file here?
What about color depth in affected computer? That could easily be the difference....
Mirek
|
|
|
 |
|
Appearance problem in TabCtrl
By: qapko on Tue, 24 May 2011 16:25
|
 |
|
Re: Appearance problem in TabCtrl
By: mirek on Tue, 24 May 2011 17:37
|
 |
|
Re: Appearance problem in TabCtrl
By: qapko on Tue, 24 May 2011 20:42
|
 |
|
Re: Appearance problem in TabCtrl
By: qapko on Wed, 25 May 2011 15:00
|
 |
|
Re: Appearance problem in TabCtrl
By: qapko on Thu, 26 May 2011 10:05
|
 |
|
Re: Appearance problem in TabCtrl
By: mirek on Mon, 30 May 2011 11:54
|
 |
|
Re: Appearance problem in TabCtrl
By: qapko on Mon, 30 May 2011 14:17
|
 |
|
Re: Appearance problem in TabCtrl
By: mirek on Wed, 01 June 2011 20:42
|
 |
|
Re: Appearance problem in TabCtrl
By: qapko on Thu, 02 June 2011 14:23
|
 |
|
Re: Appearance problem in TabCtrl
By: mirek on Fri, 03 June 2011 08:21
|
 |
|
Re: Appearance problem in TabCtrl
By: qapko on Fri, 03 June 2011 22:24
|
 |
|
Re: Appearance problem in TabCtrl
By: qapko on Mon, 06 June 2011 11:57
|
 |
|
Re: Appearance problem in TabCtrl
By: mirek on Tue, 07 June 2011 23:14
|
 |
|
Re: Appearance problem in TabCtrl
By: qapko on Wed, 08 June 2011 10:18
|
 |
|
Re: Appearance problem in TabCtrl
By: mirek on Wed, 08 June 2011 19:55
|
 |
|
Re: Appearance problem in TabCtrl
By: qapko on Thu, 09 June 2011 11:45
|
 |
|
Re: Appearance problem in TabCtrl
By: qapko on Mon, 13 June 2011 09:52
|
 |
|
Re: Appearance problem in TabCtrl
By: mirek on Mon, 13 June 2011 10:23
|
Goto Forum:
Current Time: Tue Sep 16 12:30:01 CEST 2025
Total time taken to generate the page: 0.93956 seconds
|