Click here to Skip to main content
15,891,633 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralFindFirstFile & FindNextFile Pin
Mauricio Ritter4-Mar-02 1:08
Mauricio Ritter4-Mar-02 1:08 
GeneralRe: FindFirstFile & FindNextFile Pin
Tomasz Sowinski4-Mar-02 1:28
Tomasz Sowinski4-Mar-02 1:28 
GeneralRe: FindFirstFile & FindNextFile Pin
Mauricio Ritter4-Mar-02 1:42
Mauricio Ritter4-Mar-02 1:42 
GeneralContainer window for DLLs Pin
4-Mar-02 0:55
suss4-Mar-02 0:55 
GeneralRe: Container window for DLLs Pin
Tomasz Sowinski4-Mar-02 1:24
Tomasz Sowinski4-Mar-02 1:24 
GeneralRe: Container window for DLLs Pin
4-Mar-02 3:24
suss4-Mar-02 3:24 
GeneralRe: Container window for DLLs Pin
4-Mar-02 1:37
suss4-Mar-02 1:37 
QuestionSpecific device context ? Pin
Andrew Hoole4-Mar-02 0:27
Andrew Hoole4-Mar-02 0:27 
Hi

I'm going round in circles and could do with some help. I have an application that draws a whole lot of information to a window via a subclass of CView. Now I need to save a copy of what is in the window in a particular format. I thought if I created a new view using a memory device context I could get the system to draw itself to this new view and then pull the required data out of memory but I can't seem to find a way to set up a memory device context with the format that I want (16bit gray scale would be ideal - i'll settle for 8bit if I have to).

CreateDC wants me to specify a lot of stuff about drivers .
CreateCompatibleDC gives me something according to the current system device, but trying to select a bitmap of a particular format into this fails because the two are not compatible. CreateCompatibleBitmap seems to give me a monochrome bitmap.

I'm sure it is very easily done but my brain has gone fuzzy.
AnswerRe: Specific device context ? Pin
Tomasz Sowinski4-Mar-02 0:30
Tomasz Sowinski4-Mar-02 0:30 
GeneralRe: Specific device context ? Pin
Andrew Hoole4-Mar-02 2:12
Andrew Hoole4-Mar-02 2:12 
GeneralRe: Specific device context ? Pin
Tomasz Sowinski4-Mar-02 2:17
Tomasz Sowinski4-Mar-02 2:17 
QuestionThrowing exception on thread end ? Pin
Alwin753-Mar-02 23:49
Alwin753-Mar-02 23:49 
AnswerRe: Throwing exception on thread end ? Pin
Tomasz Sowinski3-Mar-02 23:57
Tomasz Sowinski3-Mar-02 23:57 
AnswerRe: Throwing exception on thread end ? Pin
Prem Kumar3-Mar-02 23:57
Prem Kumar3-Mar-02 23:57 
AnswerRe: Throwing exception on thread end ? Pin
Joaquín M López Muñoz4-Mar-02 0:26
Joaquín M López Muñoz4-Mar-02 0:26 
Generalcall by reference using pointers Pin
John Cruz3-Mar-02 22:54
John Cruz3-Mar-02 22:54 
GeneralRe: call by reference using pointers Pin
Prem Kumar3-Mar-02 23:32
Prem Kumar3-Mar-02 23:32 
GeneralRe: call by reference using pointers Pin
Rickard Andersson203-Mar-02 23:38
Rickard Andersson203-Mar-02 23:38 
GeneralRe: call by reference using pointers Pin
Rickard Andersson203-Mar-02 23:37
Rickard Andersson203-Mar-02 23:37 
GeneralRe: call by reference using pointers Pin
Michael Dunn3-Mar-02 23:39
sitebuilderMichael Dunn3-Mar-02 23:39 
GeneralRe: call by reference using pointers Pin
John Cruz3-Mar-02 23:41
John Cruz3-Mar-02 23:41 
GeneralRe: call by reference using pointers Pin
Joaquín M López Muñoz3-Mar-02 23:41
Joaquín M López Muñoz3-Mar-02 23:41 
GeneralRe: call by reference using pointers Pin
John Cruz3-Mar-02 23:49
John Cruz3-Mar-02 23:49 
QuestionWhat is a development plan? Pin
davilism3-Mar-02 22:43
davilism3-Mar-02 22:43 
QuestionExplorer like interface style ?? Pin
Walkerboh3-Mar-02 22:24
Walkerboh3-Mar-02 22:24 

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.