Click here to Skip to main content
15,897,518 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Simple Chat Client with CSocket Class Pin
GHinkson11-Mar-04 3:51
GHinkson11-Mar-04 3:51 
GeneralRe: Simple Chat Client with CSocket Class Pin
Anonymous11-Mar-04 23:42
Anonymous11-Mar-04 23:42 
GeneralRe: Simple Chat Client with CSocket Class Pin
GHinkson11-Mar-04 23:46
GHinkson11-Mar-04 23:46 
GeneralEvents and Threads Pin
hph11-Mar-04 2:25
hph11-Mar-04 2:25 
GeneralRe: Events and Threads Pin
Steve S11-Mar-04 2:54
Steve S11-Mar-04 2:54 
GeneralRe: Events and Threads Pin
hph11-Mar-04 3:18
hph11-Mar-04 3:18 
GeneralSubclassing / embedding Active X's Pin
rw10411-Mar-04 2:13
rw10411-Mar-04 2:13 
GeneralInveting a BitMap Pin
Pazzuzu11-Mar-04 1:35
Pazzuzu11-Mar-04 1:35 
Hi Guys,

I have run into a problem for which I havent found a solution till now.Iam trying to show it here in a perspective in which Iam doing it:
I want to draw a bitmap to the screen

m_deviceContext-is the deviceContext to Which I want to draw my Bitmap.
Its mapping mode is set as MM_TWips.

CDC dcMemory;
dcMemory.CreateCompatibleDC(m_deviceContext);
CBitmap *bitmap=CBitmap::FromHandle(handle);//Handle of BitMap is passed here.
BITMAP bm;
bitmap->GetBitmap(&bm);
CBitmap* pOldBitmap = dcMemory.SelectObject(bitmap);

I draw it as follows:
xCord,-yCord,srBpWidth),srBpHeight are in Logical units.

m_deviceContext->StretchBlt(xCord,-yCord,(srBpWidth),(srBpHeight),&dcMemory,0,0 ,bm.bmWidth,bm.bmHeight,SRCCOPY);

(Figure Attached)
I get the figure but it is drawn from the co-ordinate point "up"(As a mirror Image ).I want it to drawn "Down" from the co-ordinate point or Is there any way to inverse it....

Thanks....










GeneralRe: Inveting a BitMap Pin
Pazzuzu11-Mar-04 2:02
Pazzuzu11-Mar-04 2:02 
QuestionHow to check that if a file has been already opened Pin
Deepak Samuel11-Mar-04 1:35
Deepak Samuel11-Mar-04 1:35 
Questionhow to call a menu by clicking a button from a dialog? Pin
yeefarn11-Mar-04 0:57
yeefarn11-Mar-04 0:57 
AnswerRe: how to call a menu by clicking a button from a dialog? Pin
Tomasz Sowinski11-Mar-04 3:01
Tomasz Sowinski11-Mar-04 3:01 
AnswerRe: how to call a menu by clicking a button from a dialog? Pin
Roger Allen11-Mar-04 4:58
Roger Allen11-Mar-04 4:58 
GeneralParsing CString Pin
Caoimh11-Mar-04 0:46
Caoimh11-Mar-04 0:46 
GeneralRe: Parsing CString Pin
Robert A. T. Káldy11-Mar-04 1:00
Robert A. T. Káldy11-Mar-04 1:00 
GeneralRe: Parsing CString Pin
David Crow11-Mar-04 2:38
David Crow11-Mar-04 2:38 
GeneralTerminateProcess w2k and xp! Pin
ceuba11-Mar-04 0:46
ceuba11-Mar-04 0:46 
GeneralRe: TerminateProcess w2k and xp! Pin
Tomasz Sowinski11-Mar-04 3:06
Tomasz Sowinski11-Mar-04 3:06 
GeneralRe: TerminateProcess w2k and xp! Pin
ceuba11-Mar-04 3:33
ceuba11-Mar-04 3:33 
GeneralRe: TerminateProcess w2k and xp! Pin
Tomasz Sowinski11-Mar-04 3:46
Tomasz Sowinski11-Mar-04 3:46 
GeneralConvert CString to Unsigned Long Pin
Caoimh11-Mar-04 0:41
Caoimh11-Mar-04 0:41 
GeneralRe: Convert CString to Unsigned Long Pin
toxcct11-Mar-04 0:46
toxcct11-Mar-04 0:46 
GeneralRe: Convert CString to Unsigned Long Pin
David Crow11-Mar-04 2:39
David Crow11-Mar-04 2:39 
GeneralRe: Convert CString to Unsigned Long Pin
Steve S11-Mar-04 2:52
Steve S11-Mar-04 2:52 
GeneralRe: Convert CString to Unsigned Long Pin
Michael Haephrati12-Apr-15 9:39
professionalMichael Haephrati12-Apr-15 9:39 

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.