Click here to Skip to main content
15,917,579 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralVC++ 6 release and debug Pin
6-May-02 9:46
suss6-May-02 9:46 
GeneralRe: VC++ 6 release and debug Pin
Paul M Watt6-May-02 9:55
mentorPaul M Watt6-May-02 9:55 
GeneralRe: VC++ 6 release and debug Pin
Chris Losinger6-May-02 9:55
professionalChris Losinger6-May-02 9:55 
Questionhow to clear view's content? Pin
Angel Kid6-May-02 9:03
Angel Kid6-May-02 9:03 
AnswerRe: how to clear view's content? Pin
Matt Gullett6-May-02 10:17
Matt Gullett6-May-02 10:17 
GeneralVC7 can't find source files Pin
Jim A. Johnson6-May-02 8:12
Jim A. Johnson6-May-02 8:12 
GeneralRe: VC7 can't find source files Pin
Tom Archer6-May-02 12:55
Tom Archer6-May-02 12:55 
GeneralDrawing transparent bitmap ... Pin
Hadi Rezaee6-May-02 8:05
Hadi Rezaee6-May-02 8:05 
Hi there ...
I load a bitmap, transparently ...
Here is my source code:
[ccode]
UINT nStyle = LR_LOADFROMFILE | LR_LOADTRANSPARENT;

HBITMAP hBitmap = (HBITMAP)LoadImage(AfxGetInstanceHandle(), lpszPath, IMAGE_BITMAP, 0, 0, nStyle);
[/ccode]
But when i draw it, i can't see my transparent bitmap Frown | :(
[ccode]
// m_Board is my object from my own structure
// dcSource is CDC object ...
// bm is BITMAP object ...
// There isn't problem for drawing picture ...
// I just want to draw it transparently !
dc.BitBlt( 10, 10, m_Board.bm.bmWidth, m_Board.bm.bmHeight, &m_Board.dcSource, 0, 0, SRCCOPY );
[/ccode]

Help me, please Frown | :(


My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html

Hadi Rezaie
GeneralRe: Drawing transparent bitmap ... Pin
Shog96-May-02 8:28
sitebuilderShog96-May-02 8:28 
GeneralRe: Drawing transparent bitmap ... Pin
Hadi Rezaee6-May-02 9:11
Hadi Rezaee6-May-02 9:11 
GeneralRe: Drawing transparent bitmap ... Pin
Paul M Watt6-May-02 8:29
mentorPaul M Watt6-May-02 8:29 
GeneralRe: Drawing transparent bitmap ... Pin
Hadi Rezaee6-May-02 9:17
Hadi Rezaee6-May-02 9:17 
GeneralException handling under XP Pin
Parish6-May-02 8:04
Parish6-May-02 8:04 
GeneralRe: Exception handling under XP Pin
Matt Gullett6-May-02 10:13
Matt Gullett6-May-02 10:13 
GeneralRe: Exception handling under XP Pin
Parish8-May-02 5:27
Parish8-May-02 5:27 
GeneralMultiple Dialogs Pin
tordyvel6-May-02 7:33
tordyvel6-May-02 7:33 
GeneralRe: Multiple Dialogs Pin
KingsGambit6-May-02 7:53
KingsGambit6-May-02 7:53 
GeneralRe: Multiple Dialogs Pin
Paul M Watt6-May-02 8:01
mentorPaul M Watt6-May-02 8:01 
GeneralRe: Multiple Dialogs Pin
Tom Archer6-May-02 12:40
Tom Archer6-May-02 12:40 
GeneralPresentation question Pin
HenrikO6-May-02 7:03
HenrikO6-May-02 7:03 
GeneralRe: Presentation question Pin
Rama Krishna Vavilala6-May-02 7:09
Rama Krishna Vavilala6-May-02 7:09 
GeneralUsing MFC on Windows XP Pin
6-May-02 6:55
suss6-May-02 6:55 
GeneralRe: Using MFC on Windows XP Pin
Andrew Peace6-May-02 11:09
Andrew Peace6-May-02 11:09 
GeneralRe: Using MFC on Windows XP Pin
7-May-02 4:22
suss7-May-02 4:22 
QuestionOpen a MSWord app into my window ? Pin
6-May-02 6:48
suss6-May-02 6:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.