Click here to Skip to main content
15,924,452 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionsetup CLapack with VS2005.NET Pin
Ming Luo9-Jul-07 7:12
Ming Luo9-Jul-07 7:12 
Questionkeys codes in APIs like Keybd_Event Pin
V_shr9-Jul-07 6:51
V_shr9-Jul-07 6:51 
AnswerRe: keys codes in APIs like Keybd_Event Pin
David Crow9-Jul-07 7:18
David Crow9-Jul-07 7:18 
GeneralRe: keys codes in APIs like Keybd_Event Pin
V_shr9-Jul-07 7:27
V_shr9-Jul-07 7:27 
GeneralRe: keys codes in APIs like Keybd_Event Pin
Hamid_RT9-Jul-07 7:58
Hamid_RT9-Jul-07 7:58 
QuestionCtAbout popupMenu Pin
kcynic9-Jul-07 6:12
kcynic9-Jul-07 6:12 
AnswerRe: CtAbout popupMenu Pin
Mark Salsbery9-Jul-07 6:34
Mark Salsbery9-Jul-07 6:34 
Questionlosing dimensions in metafile Pin
Force Code9-Jul-07 6:02
Force Code9-Jul-07 6:02 
I have a word processing app (no source) in which a user can copy bitmaps onto the client area, resize them on the client, and then paste them somewhere else in the client area with their new size (nothing unusual here).

I'm intercepting the paste command msgs of this app (through subclassing, etc.), and for the moment, all I'm trying to do is retrieve the content of the clipboard, duplicate it, and replace the original clipboard content with the duplicate. (not my ultimate objective obviously). However, no matter how I try to retrieve the data and put it back to the clipboard, its apparently being altered, because the bitmap dimensions are destroyed, and when the app pastes the item, its it has the original dimensions (not the user-resized dimensions).

The bitmap is being copied by the app as a metafile, so when I intercept the paste message, I'm retrieving it and putting it back to the clipboard as a metafile. The data can be retrieved from the clipboard as an enhanced metafile or plain metafile, and it makes no difference. I've tried Copy[Enh]MetaFile, Get[Enh]MetaFileBits/Set[Enh]MetaFileBits, Create[Enh]MetaFile/Play[Enh]MetaFile, etc - no matter how I try to copy the clipboard data and just put it back unchanged, everthing *is* unchanged, EXCEPT the dimensions, which always lose the most current dimensions and instead revert to the original dimensions.

AnswerRe: losing dimensions in metafile Pin
Mark Salsbery9-Jul-07 6:38
Mark Salsbery9-Jul-07 6:38 
GeneralRe: losing dimensions in metafile [modified] Pin
Force Code9-Jul-07 6:54
Force Code9-Jul-07 6:54 
QuestionRe: losing dimensions in metafile Pin
Mark Salsbery9-Jul-07 9:19
Mark Salsbery9-Jul-07 9:19 
AnswerRe: losing dimensions in metafile Pin
Force Code9-Jul-07 12:53
Force Code9-Jul-07 12:53 
GeneralRe: losing dimensions in metafile Pin
Mark Salsbery9-Jul-07 16:49
Mark Salsbery9-Jul-07 16:49 
AnswerRe: losing dimensions in metafile Pin
Chris Losinger9-Jul-07 7:06
professionalChris Losinger9-Jul-07 7:06 
GeneralRe: losing dimensions in metafile Pin
Force Code9-Jul-07 7:21
Force Code9-Jul-07 7:21 
Questionconvert mpg to avi in directshow Pin
liur179-Jul-07 4:59
liur179-Jul-07 4:59 
AnswerRe: convert mpg to avi in directshow Pin
toxcct9-Jul-07 5:04
toxcct9-Jul-07 5:04 
AnswerRe: convert mpg to avi in directshow Pin
Mark Salsbery9-Jul-07 7:40
Mark Salsbery9-Jul-07 7:40 
GeneralRe: convert mpg to avi in directshow Pin
liur179-Jul-07 15:00
liur179-Jul-07 15:00 
GeneralRe: convert mpg to avi in directshow Pin
Mark Salsbery9-Jul-07 15:50
Mark Salsbery9-Jul-07 15:50 
GeneralRe: convert mpg to avi in directshow Pin
liur179-Jul-07 20:45
liur179-Jul-07 20:45 
QuestionRe: convert mpg to avi in directshow Pin
Hamid_RT9-Jul-07 7:59
Hamid_RT9-Jul-07 7:59 
QuestionLocalization using .rc resource and resource only dll in same EXE Pin
Neeranjan9-Jul-07 4:36
Neeranjan9-Jul-07 4:36 
QuestionWinsock issue (HTTP) Pin
PigeonRat9-Jul-07 4:24
PigeonRat9-Jul-07 4:24 
AnswerRe: Winsock issue (HTTP) Pin
PigeonRat9-Jul-07 4:37
PigeonRat9-Jul-07 4: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.