Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Emmanuel Verguet
|
Nov 16, 2006 - 1:54 AM
|
Hi,
Which control can I use to add a transparent bitmap in a dialog box ?
Thanks.
|
|
Suhai Gyorgy
|
Nov 16, 2006 - 6:45 AM
|
CExtLabel is derived from CStatic which can be used to display transparent bitmap.
CExtLabel myLabel; myLabel.SetBitmap( ::LoadImage(AfxGetApp()->m_hInstance, MAKEINTRESOURCE(IDB_MYBMP), IMAGE_BITMAP, iBmpWidth, iBmpHeight, LR_LOADTRANSPARENT));
Check out MSDN on CStatic::SetBitmap and LoadImage functions.
|
|
Technical Support
|
Nov 16, 2006 - 8:54 AM
|
Alternatevely you could also use the CExtImageEditWnd control in the read-only mode.
|
|