Click here to Skip to main content
15,887,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: JPEG size Pin
Ansh112-Feb-06 21:49
Ansh112-Feb-06 21:49 
QuestionHow to know the ID of the current mouse cursor? Pin
Rashid.Mahmood12-Feb-06 19:54
Rashid.Mahmood12-Feb-06 19:54 
AnswerRe: How to know the ID of the current mouse cursor? Pin
John R. Shaw12-Feb-06 21:56
John R. Shaw12-Feb-06 21:56 
QuestionDrawing over bitmap and saving Pin
Tara1412-Feb-06 19:54
Tara1412-Feb-06 19:54 
AnswerRe: Drawing over bitmap and saving Pin
_anil_12-Feb-06 20:37
_anil_12-Feb-06 20:37 
AnswerRe: Drawing over bitmap and saving Pin
John R. Shaw12-Feb-06 22:07
John R. Shaw12-Feb-06 22:07 
GeneralRe: Drawing over bitmap and saving Pin
Tara1413-Feb-06 2:59
Tara1413-Feb-06 2:59 
GeneralRe: Drawing over bitmap and saving Pin
John R. Shaw13-Feb-06 10:44
John R. Shaw13-Feb-06 10:44 
Try studing the
Memory bitmap class CMemBm[^]

The basic steps are:
1. Create a compatible DC. Lets call it memDC.
2. oldBitmap = Select your bitmap into memDC.
3. Draw on memDC.
4. Select oldBitmap into memDC.

The bitmap should now have whatever you drew on it. To test that it does, blit it to your client area.

If you drew on a bitmap, say using the mounse, in the client area. Then you need to get a copy of the bitmap from the client area. In order to do that you must know the client coordinates where the bitmap is located.

1. Create a compatible DC. Lets call it memDC.
2. Create a compatible bitmap, that is the same size as the area that you want to copy. Lets call it tempBitmap.
3. oldBitmap = Select your tempBitmap into memDC.
4. Bit blit the rectangular area from the client DC to the memDC.
5. Select oldBitmap into memDC.
6. Finish cleaning up.

Now tempBitmap should contain a copy that matches the area of the client you specified. To test it, just clear an area of the client and blit the tempBitamp there.

I hope that helps.


INTP
Every thing is relative...
GeneralRe: Drawing over bitmap and saving Pin
Tara1413-Feb-06 17:18
Tara1413-Feb-06 17:18 
Questionhelp in finding code to generate thumbnails Pin
bhamaimrith12-Feb-06 19:30
bhamaimrith12-Feb-06 19:30 
AnswerRe: help in finding code to generate thumbnails Pin
kakan12-Feb-06 20:17
professionalkakan12-Feb-06 20:17 
Questionproblem about output a word doc from my app Pin
jeanlyon12-Feb-06 19:16
jeanlyon12-Feb-06 19:16 
AnswerRe: problem about output a word doc from my app Pin
jeanlyon13-Feb-06 14:12
jeanlyon13-Feb-06 14:12 
QuestionHow to get the source code of an MFC application with .exe file extension Pin
Pavithra Bhat H12-Feb-06 19:07
Pavithra Bhat H12-Feb-06 19:07 
JokeRe: How to get the source code of an MFC application with .exe file extension Pin
Monty212-Feb-06 19:38
Monty212-Feb-06 19:38 
GeneralRe: How to get the source code of an MFC application with .exe file extension Pin
Rajesh R Subramanian12-Feb-06 23:47
professionalRajesh R Subramanian12-Feb-06 23:47 
AnswerRe: How to get the source code of an MFC application with .exe file extension Pin
Gavin Taylor12-Feb-06 19:42
professionalGavin Taylor12-Feb-06 19:42 
GeneralRe: How to get the source code of an MFC application with .exe file extension Pin
toxcct12-Feb-06 21:22
toxcct12-Feb-06 21:22 
GeneralRe: How to get the source code of an MFC application with .exe file extension Pin
Gavin Taylor12-Feb-06 21:53
professionalGavin Taylor12-Feb-06 21:53 
GeneralRe: How to get the source code of an MFC application with .exe file extension Pin
toxcct12-Feb-06 21:56
toxcct12-Feb-06 21:56 
GeneralRe: How to get the source code of an MFC application with .exe file extension Pin
QuickDeveloper12-Feb-06 22:03
QuickDeveloper12-Feb-06 22:03 
GeneralRe: How to get the source code of an MFC application with .exe file extension Pin
toxcct12-Feb-06 22:05
toxcct12-Feb-06 22:05 
GeneralRe: How to get the source code of an MFC application with .exe file extension Pin
Gavin Taylor12-Feb-06 22:05
professionalGavin Taylor12-Feb-06 22:05 
AnswerRe: How to get the source code of an MFC application with .exe file extension Pin
toxcct12-Feb-06 21:23
toxcct12-Feb-06 21:23 
GeneralRe: How to get the source code of an MFC application with .exe file extension Pin
Pavithra Bhat H12-Feb-06 23:31
Pavithra Bhat H12-Feb-06 23:31 

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.