Click here to Skip to main content
15,915,093 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: what is the API that MS Office is calling to save a file under a different name ? Pin
Mark Salsbery4-Oct-07 5:53
Mark Salsbery4-Oct-07 5:53 
GeneralRe: what is the API that MS Office is calling to save a file under a different name ? Pin
carabutnicolae12344-Oct-07 6:06
carabutnicolae12344-Oct-07 6:06 
GeneralRe: what is the API that MS Office is calling to save a file under a different name ? Pin
Mark Salsbery4-Oct-07 6:13
Mark Salsbery4-Oct-07 6:13 
GeneralRe: what is the API that MS Office is calling to save a file under a different name ? Pin
carabutnicolae12344-Oct-07 6:15
carabutnicolae12344-Oct-07 6:15 
QuestionHow to draw bitmaps without access to HDC or HWND Pin
hvanzyll4-Oct-07 4:39
hvanzyll4-Oct-07 4:39 
QuestionRe: How to draw bitmaps without access to HDC or HWND Pin
Mark Salsbery4-Oct-07 5:56
Mark Salsbery4-Oct-07 5:56 
AnswerRe: How to draw bitmaps without access to HDC or HWND Pin
hvanzyll4-Oct-07 6:05
hvanzyll4-Oct-07 6:05 
GeneralRe: How to draw bitmaps without access to HDC or HWND Pin
Mark Salsbery4-Oct-07 6:19
Mark Salsbery4-Oct-07 6:19 
Assuming you want to use GDI to draw on the video frames...

If you have access to the uncompressed frames before they are rendered,
I would use a DIBSection (see CreateDIBSection).

Create a memory DC (CreateCompatibleDC()), select the DIBSection into it.

For each frame, copy the frame pixel bits into the DIBSection's pixel bits.

Then use GDI to draw to the memory DC.

Copy the pixel bits from the DIBSection back to the frame buffer.

Depending on the renderer you are using, there may be features already there
for overlays.

Mark



Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: How to draw bitmaps without access to HDC or HWND [modified] Pin
hvanzyll4-Oct-07 6:27
hvanzyll4-Oct-07 6:27 
GeneralRe: How to draw bitmaps without access to HDC or HWND Pin
Mark Salsbery4-Oct-07 6:54
Mark Salsbery4-Oct-07 6:54 
GeneralRe: How to draw bitmaps without access to HDC or HWND Pin
hvanzyll4-Oct-07 6:57
hvanzyll4-Oct-07 6:57 
Questionwhat can send WM_ERASEBKGND? Pin
dawka19064-Oct-07 4:05
dawka19064-Oct-07 4:05 
AnswerRe: what can send WM_ERASEBKGND? Pin
Mark Salsbery4-Oct-07 6:02
Mark Salsbery4-Oct-07 6:02 
QuestionWM_DESTROY message does not appear to post on VK_ESCAPE [modified] Pin
Sauce!4-Oct-07 3:06
Sauce!4-Oct-07 3:06 
AnswerRe: WM_DESTROY message does not appear to post on VK_ESCAPE Pin
led mike4-Oct-07 4:36
led mike4-Oct-07 4:36 
GeneralRe: WM_DESTROY message does not appear to post on VK_ESCAPE Pin
Sauce!4-Oct-07 4:52
Sauce!4-Oct-07 4:52 
GeneralRe: WM_DESTROY message does not appear to post on VK_ESCAPE Pin
David Crow4-Oct-07 4:59
David Crow4-Oct-07 4:59 
GeneralRe: WM_DESTROY message does not appear to post on VK_ESCAPE Pin
Sauce!4-Oct-07 5:29
Sauce!4-Oct-07 5:29 
QuestionFunction Pointer? [modified] Pin
kiranin4-Oct-07 3:01
kiranin4-Oct-07 3:01 
AnswerRe: Function Pointer? Pin
toxcct4-Oct-07 3:15
toxcct4-Oct-07 3:15 
GeneralRe: Function Pointer? Pin
kiranin4-Oct-07 3:25
kiranin4-Oct-07 3:25 
GeneralRe: Function Pointer? Pin
toxcct4-Oct-07 3:27
toxcct4-Oct-07 3:27 
GeneralRe: Function Pointer? Pin
kiranin4-Oct-07 3:37
kiranin4-Oct-07 3:37 
AnswerRe: Function Pointer? Pin
David Crow4-Oct-07 3:22
David Crow4-Oct-07 3:22 
QuestionBuild binary with debugging information Pin
Programm3r4-Oct-07 2:17
Programm3r4-Oct-07 2:17 

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.