Click here to Skip to main content
15,885,278 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SysListView32 help needed Pin
David Crow30-Jun-10 3:08
David Crow30-Jun-10 3:08 
GeneralRe: SysListView32 help needed Pin
iceeeeman30-Jun-10 3:49
iceeeeman30-Jun-10 3:49 
QuestionHow i can Save Cimage file+ shapes & text on it? Pin
humais29-Jun-10 5:51
humais29-Jun-10 5:51 
AnswerRe: How i can Save Cimage file+ shapes & text on it? Pin
Alan Balkany29-Jun-10 8:13
Alan Balkany29-Jun-10 8:13 
GeneralRe: How i can Save Cimage file+ shapes & text on it? Pin
humais29-Jun-10 8:30
humais29-Jun-10 8:30 
GeneralRe: How i can Save Cimage file+ shapes & text on it? Pin
Alan Balkany29-Jun-10 8:38
Alan Balkany29-Jun-10 8:38 
GeneralRe: How i can Save Cimage file+ shapes & text on it? Pin
humais29-Jun-10 8:47
humais29-Jun-10 8:47 
GeneralRe: How i can Save Cimage file+ shapes & text on it? Pin
Alan Balkany29-Jun-10 9:45
Alan Balkany29-Jun-10 9:45 
CPaintDC is derived from CDC, so you can perform all the same operations on it. It's an object rather than a pointer, so you have to use "." to invoke methods instead of "->".

You can select a bitmap into the CPaintDC:
dc.SelectObject (hbm);

Where hbm is the handle of a bitmap. You can also select a pointer to a CBitmap. (I don't see an overload for CImage).

You then use the drawing methods of CDC. Then (as in my example) you can attach your bitmap to a CImage object, and save it.

There may be a better way of doing this, but this should work.
GeneralRe: How i can Save Cimage file+ shapes & text on it? Pin
humais30-Jun-10 4:52
humais30-Jun-10 4:52 
GeneralRe: How i can Save Cimage file+ shapes & text on it? Pin
Alan Balkany1-Jul-10 5:59
Alan Balkany1-Jul-10 5:59 
GeneralRe: How i can Save Cimage file+ shapes & text on it? Pin
humais1-Jul-10 19:38
humais1-Jul-10 19:38 
GeneralRe: How i can Save Cimage file+ shapes & text on it? Pin
Alan Balkany6-Jul-10 3:23
Alan Balkany6-Jul-10 3:23 
QuestionDrawing on 8bpp grayscale bitmap (unmanaged) Pin
Alan Balkany29-Jun-10 4:52
Alan Balkany29-Jun-10 4:52 
AnswerRe: Drawing on 8bpp grayscale bitmap (unmanaged) Pin
Code-o-mat29-Jun-10 5:46
Code-o-mat29-Jun-10 5:46 
GeneralRe: Drawing on 8bpp grayscale bitmap (unmanaged) Pin
Alan Balkany29-Jun-10 5:53
Alan Balkany29-Jun-10 5:53 
GeneralRe: Drawing on 8bpp grayscale bitmap (unmanaged) Pin
Code-o-mat29-Jun-10 6:07
Code-o-mat29-Jun-10 6:07 
GeneralRe: Drawing on 8bpp grayscale bitmap (unmanaged) Pin
Alan Balkany29-Jun-10 8:21
Alan Balkany29-Jun-10 8:21 
GeneralRe: Drawing on 8bpp grayscale bitmap (unmanaged) Pin
Code-o-mat29-Jun-10 9:37
Code-o-mat29-Jun-10 9:37 
GeneralRe: Drawing on 8bpp grayscale bitmap (unmanaged) Pin
Code-o-mat29-Jun-10 9:46
Code-o-mat29-Jun-10 9:46 
GeneralRe: Drawing on 8bpp grayscale bitmap (unmanaged) Pin
Alan Balkany29-Jun-10 9:47
Alan Balkany29-Jun-10 9:47 
GeneralRe: Drawing on 8bpp grayscale bitmap (unmanaged) Pin
Code-o-mat29-Jun-10 9:55
Code-o-mat29-Jun-10 9:55 
GeneralRe: Drawing on 8bpp grayscale bitmap (unmanaged) Pin
Alan Balkany1-Jul-10 4:50
Alan Balkany1-Jul-10 4:50 
GeneralRe: Drawing on 8bpp grayscale bitmap (unmanaged) Pin
Code-o-mat1-Jul-10 5:57
Code-o-mat1-Jul-10 5:57 
QuestionShaving a section from a dialog. Pin
Spawn@Melmac29-Jun-10 4:46
Spawn@Melmac29-Jun-10 4:46 
AnswerRe: Shaving a section from a dialog. Pin
Code-o-mat29-Jun-10 5:13
Code-o-mat29-Jun-10 5:13 

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.