Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bitmap & Static Control

0 views
Skip to first unread message

Nevenka Kozomora

unread,
Feb 26, 2003, 2:56:54 PM2/26/03
to
Hello,
I would like to ask for a help.
I am using static control to write the text in my window.

dwStyle=WS_CHILD | WS_VISIBLE | SS_LEFT;
CreateWindowEx(0,__TEXT("STATIC"),L"Application Manager",dwStyle
,100,100,150,30,hDlg,(HMENU)ID_STATIC1,hInstance,NULL) ;

I also load the bitmap. So, the text is displayed on the bitmap, but the
text background is white. I find out that Windows CE does not support
SS_WHITEFRAME as one of the static control style.
I read that I should use WM_CREATE message to solve the problem.
Please if you have idea or experience, how to display the text on the
bitmap, replay to my message.
Thanks in advance
Nena

Alexander Shargin

unread,
Feb 27, 2003, 2:29:58 AM2/27/03
to

How do you display the bitmap? Do you do this in a WM_PAINT or WM_ERASEBKGND
handler?

If so, the easiest way to display text on the bitmap transparently is to
skip statics and draw text using GDI functions after you draw the bitmap.
Use SetBkMode(hdc, TRANSPARENT) to make the text transparent and then use
one of text functions (ExtTextOut, DrawText etc.).

--
Sincerely,
Alexander

mailto:al...@rsdn.ru
http://www.RSDN.ru - Russian Software Developer Network

"Nevenka Kozomora" <n...@cisunix.unh.edu> wrote in message
news:uwLZ3Ed3...@TK2MSFTNGP10.phx.gbl...

0 new messages