Home » U++ Library support » Look and Chameleon Technology » Appearance problem in TabCtrl
Re: Appearance problem in TabCtrl [message #32586 is a reply to message #32549] |
Thu, 26 May 2011 10:05   |
qapko
Messages: 55 Registered: October 2007 Location: Slovakia
|
Member |
|
|
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
[Updated on: Thu, 26 May 2011 13:11] Report message to a moderator
|
|
|
 |
|
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: Mon Apr 28 08:48:41 CEST 2025
Total time taken to generate the page: 0.00853 seconds
|