PRB: CStatic::SetBitmap Doesn't Display Bitmap on Win NT 3.51 (151378)
The information in this article applies to:
- Microsoft Visual C++ 4.0
- Microsoft Visual C++ 4.1
This article was previously published under Q151378
4.00 4.10
WINDOWS NT
kbprg kbprb
SYMPTOMS
CStatic::SetBitmap() does not display the bitmap correctly on a picture
control in Windows NT 3.51 if the picture control is subclassed.
This problem is restricted to Windows NT 3.51 and does not appear on
Windows 95.
RESOLUTION
Do not subclass the picture control either directly, by using
SubClassWindow() or SubClassDlgItem(), or indirectly, by associating a
CStatic control variable with it. Instead, call SetBitmap() using a pointer
to the picture holder obtained by calling GetDlgItem()
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 10/17/2003 |
---|
Keywords: | kbBitmap kbprb kbStaticCtrl KB151378 |
---|
|