Click here to Skip to main content
15,884,298 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Compatibility between Java and VC++ in socket programming Pin
Mark Salsbery16-Oct-06 8:02
Mark Salsbery16-Oct-06 8:02 
GeneralRe: Compatibility between Java and VC++ in socket programming Pin
lchild38519-Oct-06 8:57
lchild38519-Oct-06 8:57 
GeneralRe: Compatibility between Java and VC++ in socket programming Pin
Mark Salsbery19-Oct-06 9:55
Mark Salsbery19-Oct-06 9:55 
GeneralRe: Compatibility between Java and VC++ in socket programming Pin
hapc19-Oct-06 16:48
hapc19-Oct-06 16:48 
GeneralRe: Compatibility between Java and VC++ in socket programming Pin
Mark Salsbery19-Oct-06 17:06
Mark Salsbery19-Oct-06 17:06 
GeneralRe: Compatibility between Java and VC++ in socket programming Pin
Mark Salsbery19-Oct-06 17:09
Mark Salsbery19-Oct-06 17:09 
QuestionCopy part of an image to clipboard Pin
Yaron Abershitz14-Oct-06 7:45
Yaron Abershitz14-Oct-06 7:45 
AnswerRe: Copy part of an image to clipboard Pin
Mark Salsbery14-Oct-06 9:57
Mark Salsbery14-Oct-06 9:57 
An easy way is to create a new bitmap the size of the region rect.
Step through each source pixel in the region rect and use PtInRegion() to determine if it's in
the region. If it is, copy the pixel to the new bitmap. If not write a background-color pixel
to the new bitmap. Then place the bitmap on the clipboard.

Another way is create a new bitmap (DIB section) the size of the region rect.
Select it into a memory DC
Use StretchBlt() or whatever to draw the source region rect to the dc.
If the region is not rectangular go through the pixels using PtInRegion() like above to
remove the pixels outside the region.


Mark


GeneralRe: Copy part of an image to clipboard Pin
Yaron Abershitz15-Oct-06 5:17
Yaron Abershitz15-Oct-06 5:17 
GeneralRe: Copy part of an image to clipboard Pin
Mark Salsbery15-Oct-06 7:54
Mark Salsbery15-Oct-06 7:54 
QuestionBitmaps Pin
Waldermort14-Oct-06 6:45
Waldermort14-Oct-06 6:45 
AnswerRe: Bitmaps Pin
Mark Salsbery14-Oct-06 7:06
Mark Salsbery14-Oct-06 7:06 
GeneralRe: Bitmaps Pin
Waldermort14-Oct-06 7:19
Waldermort14-Oct-06 7:19 
GeneralRe: Bitmaps Pin
Mark Salsbery14-Oct-06 7:29
Mark Salsbery14-Oct-06 7:29 
Questionprogramming Pin
Dure-Shehwar14-Oct-06 5:42
Dure-Shehwar14-Oct-06 5:42 
AnswerRe: programming Pin
Sceptic Mole14-Oct-06 9:28
Sceptic Mole14-Oct-06 9:28 
AnswerRe: programming Pin
Mark Salsbery14-Oct-06 10:04
Mark Salsbery14-Oct-06 10:04 
AnswerRe: programming Pin
Hamid_RT14-Oct-06 19:13
Hamid_RT14-Oct-06 19:13 
Questionhook mousewheel problem Pin
Michael ZY14-Oct-06 5:24
Michael ZY14-Oct-06 5:24 
AnswerRe: hook mousewheel problem Pin
Mark Salsbery14-Oct-06 6:59
Mark Salsbery14-Oct-06 6:59 
GeneralRe: hook mousewheel problem Pin
Michael ZY14-Oct-06 14:40
Michael ZY14-Oct-06 14:40 
GeneralRe: hook mousewheel problem Pin
Mark Salsbery14-Oct-06 15:01
Mark Salsbery14-Oct-06 15:01 
GeneralRe: hook mousewheel problem Pin
Mark Salsbery14-Oct-06 15:10
Mark Salsbery14-Oct-06 15:10 
GeneralRe: hook mousewheel problem Pin
Michael ZY15-Oct-06 1:20
Michael ZY15-Oct-06 1:20 
QuestionHow to catch keyboard event before the operation system ? Pin
Yanshof14-Oct-06 5:21
Yanshof14-Oct-06 5:21 

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.