• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 191
  • Last Modified:

How to create static control with bitmap?

To create static control with text I'm using following:
TStatic *pTStatic=new TStatic(this, -1, "Hello", 1,5,27,15);

What should I change to show static bitmap ?
0
serg111
Asked:
serg111
1 Solution
 
PlanetCppCommented:
i dont know what language but generally to do that you have to specify the SS_BITMAP style when you create the static control and afterwards send the STM_SETIMAGE message to it. in c++ i would load the bitmap from file or memory into an HBITMAP then
SendMessage(static,STM_SETIMAGE,IMAGE_BITMAP,(LPARAM)hbitmap);
your obviosully not using win32 api but it might help :o\
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now