Click here to Skip to main content
15,896,063 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Query on system() API on VC 6.0 Pin
David Crow6-Feb-08 2:42
David Crow6-Feb-08 2:42 
GeneralRe: Query on system() API on VC 6.0 Pin
Member 38696826-Feb-08 2:55
Member 38696826-Feb-08 2:55 
QuestionRecomended books Pin
Gregory Bryant5-Feb-08 18:14
Gregory Bryant5-Feb-08 18:14 
GeneralRe: Recomended books Pin
User 5838525-Feb-08 18:41
User 5838525-Feb-08 18:41 
GeneralRe: Recomended books Pin
Hamid_RT5-Feb-08 19:38
Hamid_RT5-Feb-08 19:38 
Questiondevice context problem Pin
trioum5-Feb-08 17:56
trioum5-Feb-08 17:56 
QuestionRe: device context problem Pin
Hamid_RT5-Feb-08 19:40
Hamid_RT5-Feb-08 19:40 
GeneralRe: device context problem Pin
Iain Clarke, Warrior Programmer5-Feb-08 21:58
Iain Clarke, Warrior Programmer5-Feb-08 21:58 
Are you asking...

"I have an HDC that some other part of my program (eg a library) is drawing on.
With just that HDC information, can I save the picture?"

?

I can see a few barriers to saying Yes.

1/ I can't find any function called GetHDCSize (or equivalent), so you would have to select in a new BITMAP, and examine the old BITMAP for information, then select it back. But you have to do this in the same thread as the Thing that is drawing to the HDC.

2/ HDC's are normally temporary objects, given to a program from a central pool. How you got this HDC is important. If you simply stored a HDC returned from BeginPaint, then the HDC will be recycled by EndPaint, and it will no longer be valid. If you get GetDC (hWnd) yourself, then you will be working on a different HDC to the Thing you talked about earlier.

3/ I'm now running out of ideas, as any more answers depend on details you haven't told us (yet).

Good luck,

Iain.

Iain Clarke appearing by Special Request of CPallini.

GeneralRe: device context problem Pin
Rajkumar R5-Feb-08 22:16
Rajkumar R5-Feb-08 22:16 
Generalstl trickery [modified] Pin
User 5838525-Feb-08 16:49
User 5838525-Feb-08 16:49 
GeneralA child window with a title bar higlighted. Pin
junjuanillo5-Feb-08 16:14
junjuanillo5-Feb-08 16:14 
GeneralRe: A child window with a title bar higlighted. Pin
Mark Salsbery6-Feb-08 6:26
Mark Salsbery6-Feb-08 6:26 
GeneralRe: A child window with a title bar higlighted. Pin
junjuanillo6-Feb-08 15:10
junjuanillo6-Feb-08 15:10 
GeneralDetermining whether input is string or integer Pin
Klazen5-Feb-08 10:56
Klazen5-Feb-08 10:56 
GeneralRe: Determining whether input is string or integer Pin
led mike5-Feb-08 12:23
led mike5-Feb-08 12:23 
GeneralRe: Determining whether input is string or integer Pin
Klazen5-Feb-08 13:36
Klazen5-Feb-08 13:36 
GeneralRe: Determining whether input is string or integer Pin
led mike6-Feb-08 5:27
led mike6-Feb-08 5:27 
GeneralRe: Determining whether input is string or integer Pin
David Crow5-Feb-08 13:47
David Crow5-Feb-08 13:47 
GeneralRe: Determining whether input is string or integer Pin
Klazen5-Feb-08 13:52
Klazen5-Feb-08 13:52 
QuestionRe: Determining whether input is string or integer Pin
David Crow5-Feb-08 17:06
David Crow5-Feb-08 17:06 
GeneralRe: Determining whether input is string or integer Pin
cp98765-Feb-08 16:10
cp98765-Feb-08 16:10 
GeneralRe: Determining whether input is string or integer Pin
User 5838525-Feb-08 17:08
User 5838525-Feb-08 17:08 
GeneralRe: Determining whether input is string or integer Pin
Gregory Bryant5-Feb-08 18:20
Gregory Bryant5-Feb-08 18:20 
GeneralRe: Determining whether input is string or integer Pin
Cedric Moonen5-Feb-08 20:59
Cedric Moonen5-Feb-08 20:59 
GeneralRe: Determining whether input is string or integer Pin
Christian Graus7-Mar-08 23:26
protectorChristian Graus7-Mar-08 23:26 

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.