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

C / C++ / MFC

 
AnswerRe: VC++ 6.0 Dialog Form with Picture Box Pin
Hans Dietrich30-May-07 15:09
mentorHans Dietrich30-May-07 15:09 
Questiondirectsound,how to compress and decompress sound data Pin
kcynic30-May-07 13:17
kcynic30-May-07 13:17 
AnswerRe: directsound,how to compress and decompress sound data Pin
Mark Salsbery30-May-07 15:06
Mark Salsbery30-May-07 15:06 
GeneralRe: directsound,how to compress and decompress sound data Pin
kcynic30-May-07 22:31
kcynic30-May-07 22:31 
GeneralRe: directsound,how to compress and decompress sound data Pin
Mark Salsbery31-May-07 5:27
Mark Salsbery31-May-07 5:27 
QuestionMonochrome Bitmap Issue Pin
CoffeeAddict1930-May-07 12:23
CoffeeAddict1930-May-07 12:23 
AnswerRe: Monochrome Bitmap Issue Pin
Bram van Kampen30-May-07 14:28
Bram van Kampen30-May-07 14:28 
AnswerRe: Monochrome Bitmap Issue Pin
Mark Salsbery30-May-07 15:16
Mark Salsbery30-May-07 15:16 
To add to LateNightsInNewry's reply...

To fix it...

When you call CreateCompatibleBitmap(), you should use the screen or paint DC, not the memory
DC. The memory DC you created with CreateCompatibleDC() is the one with a monochrome bitmap
selected into it. If you create a bitmap compatible with that, it will also be monochrome.

Outside of OnPaint, you can get a screen DC with

::GetDC(0)

or something like

CDC ScreenDC;
ScreenDC.CreateCompatibleDC(0);

Mark


"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

GeneralRe: Monochrome Bitmap Issue Pin
CoffeeAddict1930-May-07 17:08
CoffeeAddict1930-May-07 17:08 
GeneralRe: Monochrome Bitmap Issue Pin
Mark Salsbery31-May-07 5:36
Mark Salsbery31-May-07 5:36 
GeneralRe: Monochrome Bitmap Issue Pin
CoffeeAddict1931-May-07 8:19
CoffeeAddict1931-May-07 8:19 
GeneralRe: Monochrome Bitmap Issue Pin
CoffeeAddict1931-May-07 8:38
CoffeeAddict1931-May-07 8:38 
GeneralRe: Monochrome Bitmap Issue Pin
Mark Salsbery31-May-07 8:53
Mark Salsbery31-May-07 8:53 
GeneralRe: Monochrome Bitmap Issue [modified] Pin
Mark Salsbery31-May-07 8:43
Mark Salsbery31-May-07 8:43 
GeneralRe: Monochrome Bitmap Issue Pin
CoffeeAddict1931-May-07 9:58
CoffeeAddict1931-May-07 9:58 
GeneralRe: Monochrome Bitmap Issue Pin
Mark Salsbery31-May-07 10:05
Mark Salsbery31-May-07 10:05 
Questiontable and vector, C++ Pin
C_Zealot30-May-07 11:39
C_Zealot30-May-07 11:39 
GeneralRe: table and vector, C++ Pin
C_Zealot30-May-07 11:42
C_Zealot30-May-07 11:42 
AnswerRe: table and vector, C++ Pin
Rajkumar R31-May-07 1:16
Rajkumar R31-May-07 1:16 
GeneralRe: table and vector, C++ Pin
C_Zealot31-May-07 1:18
C_Zealot31-May-07 1:18 
QuestionDirectshow : Connect to another process's graph... Pin
Akin Ocal30-May-07 11:36
Akin Ocal30-May-07 11:36 
AnswerRe: Directshow : Connect to another process's graph... Pin
Mark Salsbery30-May-07 15:19
Mark Salsbery30-May-07 15:19 
QuestionConnect to another process's graph... Pin
Akin Ocal30-May-07 11:35
Akin Ocal30-May-07 11:35 
QuestionMonitor Memory for Alterations Pin
Jeffrey Walton30-May-07 11:25
Jeffrey Walton30-May-07 11:25 
AnswerRe: Monitor Memory for Alterations Pin
Matthew Faithfull30-May-07 12:58
Matthew Faithfull30-May-07 12:58 

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.