You must pass the
SS_BITMAP
style to
CStatic::Create()
to display a bitmap image. See
CStatic::Create()[
^] in the MSDN.
This makes no sense:
bool j=pStatic->GetBitmap();
The return value of
GetBitmap()
is a
HBITMAP
handle, not
bool
and will be the same as your
hBitMap
variable if
SetBitmap()
was successful.