Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CStatic::SetBitmap problem

Status
Not open for further replies.

smoothcoder

Programmer
Sep 24, 2002
19
RO
Hi, there

On Win98 this line of code

pStatic->SetBitmap((HBITMAP)bmp.m_hObject);

works just fine and the bitmap bmp displays fine on the CStatic control that pStatic refers to.

When I compile it on an NT platform, the image DOES NOT show. Could somebody tell me why? What is the NT problem with CStatic::SetBitmap() ?

Thanks in advance!
 
Should work - have you checked your resources? How is bmp initialized? In the past I've managed to run programs to completion with resources missing and the system doesn't complain but the users do.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top