Click here to Skip to main content
16,005,491 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Unique key generation on a network Pin
Giles17-Jan-05 2:24
Giles17-Jan-05 2:24 
GeneralRe: Unique key generation on a network Pin
Martin Koorts17-Jan-05 2:56
Martin Koorts17-Jan-05 2:56 
Generalmodify the height of header of a list control Pin
Member 166038517-Jan-05 0:35
Member 166038517-Jan-05 0:35 
GeneralRe: modify the height of header of a list control Pin
Martin Koorts17-Jan-05 1:55
Martin Koorts17-Jan-05 1:55 
Questionhow to convert BYTE to String Pin
doneirik17-Jan-05 0:18
doneirik17-Jan-05 0:18 
AnswerRe: how to convert BYTE to String Pin
Mahendra_78617-Jan-05 0:38
Mahendra_78617-Jan-05 0:38 
AnswerRe: how to convert BYTE to String Pin
doneirik17-Jan-05 2:24
doneirik17-Jan-05 2:24 
GeneralSave part of Bitmap in File / Crop Pin
guf-cryptkeeper17-Jan-05 0:15
guf-cryptkeeper17-Jan-05 0:15 
Hi.
First problem solved and soon I encountered the second.
So at this point my SDI program is able to open a BMP and show it on the screen. In an modal dialogue it is possible to give some borders to only show a part of the actual BMP File...
What I want to do is to save this part in a new file...
One of my books suggest just to change the two used device contexts MemDC and pDC to print from the screen in the memory...
I tried to do it this way but because of my c++ abusing I don't get it to work properly.

This is the line which prints the bmp on the screen. Width, Height, TLCx and TLCy are the variables i can manipulate to show only the important part of the picture...

pDC->BitBlt(0,0,g_Width,g_Height,pMemDC,g_TLCx,g_TLCy,SRCCOPY);

The code i plan to use is something like... make a new bitmap object and fill it with the shown bmp... to do this i use

MemDC.BitBlt(...)

Is this a possible approach for the problem or am I totally wrong ?

Best regards,
Helge.
GeneralRe: Save part of Bitmap in File / Crop Pin
guf-cryptkeeper17-Jan-05 23:04
guf-cryptkeeper17-Jan-05 23:04 
Generalclient-server Pin
Alka7516-Jan-05 22:29
Alka7516-Jan-05 22:29 
QuestionHow to use TRACE() in Win32 Applications Pin
LiYS16-Jan-05 22:29
LiYS16-Jan-05 22:29 
AnswerRe: How to use TRACE() in Win32 Applications Pin
Roger Allen16-Jan-05 23:20
Roger Allen16-Jan-05 23:20 
AnswerRe: How to use TRACE() in Win32 Applications Pin
Martin Koorts17-Jan-05 1:06
Martin Koorts17-Jan-05 1:06 
AnswerRe: How to use TRACE() in Win32 Applications Pin
David Crow17-Jan-05 3:55
David Crow17-Jan-05 3:55 
GeneralConvert Count in Milliseconds to Date and Time format(dd:mm:yy hours:min:sec:milliseconds) Pin
sam_software16-Jan-05 22:11
sam_software16-Jan-05 22:11 
GeneralRe: Convert Count in Milliseconds to Date and Time format(dd:mm:yy hours:min:sec:milliseconds) Pin
Martin Koorts16-Jan-05 23:22
Martin Koorts16-Jan-05 23:22 
GeneralRe: Convert Count in Milliseconds to Date and Time format(dd:mm:yy hours:min:sec:milliseconds) Pin
David Crow17-Jan-05 4:02
David Crow17-Jan-05 4:02 
Generalquestion about NetUserGetInfo Pin
busisbus16-Jan-05 19:13
busisbus16-Jan-05 19:13 
GeneralSplitter Window Pin
Mahendra_78616-Jan-05 18:56
Mahendra_78616-Jan-05 18:56 
GeneralRe: Splitter Window Pin
Iain Clarke, Warrior Programmer17-Jan-05 0:39
Iain Clarke, Warrior Programmer17-Jan-05 0:39 
GeneralRe: Splitter Window Pin
Mahendra_78617-Jan-05 14:19
Mahendra_78617-Jan-05 14:19 
GeneralRe: Splitter Window Pin
Mahendra_78617-Jan-05 14:42
Mahendra_78617-Jan-05 14:42 
Questionhow to delete class from workspace Pin
Ritu Kwatra16-Jan-05 18:41
Ritu Kwatra16-Jan-05 18:41 
AnswerRe: how to delete class from workspace Pin
geo_m16-Jan-05 20:16
geo_m16-Jan-05 20:16 
GeneralRe: how to delete class from workspace Pin
Ritu Kwatra16-Jan-05 22:37
Ritu Kwatra16-Jan-05 22:37 

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.