Click here to Skip to main content
15,885,767 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Problem with use of Mutex and System Tray Icon Together. Pin
Randor 7-Aug-09 20:44
professional Randor 7-Aug-09 20:44 
GeneralRe: Problem with use of Mutex and System Tray Icon Together. Pin
Le@rner7-Aug-09 22:30
Le@rner7-Aug-09 22:30 
GeneralRe: Problem with use of Mutex and System Tray Icon Together. Pin
PJ Arends8-Aug-09 6:34
professionalPJ Arends8-Aug-09 6:34 
GeneralRe: Problem with use of Mutex and System Tray Icon Together. Pin
Randor 8-Aug-09 6:52
professional Randor 8-Aug-09 6:52 
GeneralRe: Problem with use of Mutex and System Tray Icon Together. Pin
PJ Arends8-Aug-09 8:09
professionalPJ Arends8-Aug-09 8:09 
GeneralRe: Problem with use of Mutex and System Tray Icon Together. Pin
Randor 9-Aug-09 11:39
professional Randor 9-Aug-09 11:39 
Questionsome confuse about compatible DC and compatible Bitmap Pin
xtwgigu7-Aug-09 17:24
xtwgigu7-Aug-09 17:24 
AnswerRe: some confuse about compatible DC and compatible Bitmap Pin
Rozis9-Aug-09 8:41
Rozis9-Aug-09 8:41 
DC is a reference to the screen. CreateCompatibleDC() creates an area in memory that is the same as your screen (by 'same' i mean: if you use 16M colors each pixel on screen is 24 bits = 3 bytes, CreateCompatibleDC() will make the area in memory the same pixelsize) Notice CreateCompatibleDC() has no width and height parameter, so your compatible DC is initially 1 by 1 pixel big (!). CreateCompatibleBitmap() creates an area in memory that has the same pixelsize as the original bitmap. SelectObject() is needed to make the compatible DC the same size as the bitmap. Bitblt() copies one area of memory to another, where the screen itself is also an area of memory.

In your code you have:
1 DC
2 compatible DC's (tempDC and MemDC)
1 bitmap (m_bmp)
1 compatible bitmap (membmp)

Hope with this you can figure out our code

Rozis
GeneralRe: some confuse about compatible DC and compatible Bitmap Pin
xtwgigu9-Aug-09 14:21
xtwgigu9-Aug-09 14:21 
QuestionChanging DefaultSecurity Settings on a New Folder. Pin
Bram van Kampen7-Aug-09 14:44
Bram van Kampen7-Aug-09 14:44 
Question[Message Deleted] Pin
transoft7-Aug-09 9:16
transoft7-Aug-09 9:16 
AnswerRe: C++ question Pin
David Crow7-Aug-09 9:44
David Crow7-Aug-09 9:44 
GeneralRe: C++ question Pin
transoft7-Aug-09 10:15
transoft7-Aug-09 10:15 
QuestionTVN_SELCHANGED double access Pin
Vaclav_7-Aug-09 5:53
Vaclav_7-Aug-09 5:53 
AnswerRe: TVN_SELCHANGED double access Pin
Le@rner7-Aug-09 19:14
Le@rner7-Aug-09 19:14 
GeneralRe: TVN_SELCHANGED double access [modified] Hacked to solve! Pin
Vaclav_8-Aug-09 12:16
Vaclav_8-Aug-09 12:16 
Questionstack,graphics Pin
kumarashoka7-Aug-09 5:46
kumarashoka7-Aug-09 5:46 
AnswerRe: stack,graphics Pin
harold aptroot7-Aug-09 6:01
harold aptroot7-Aug-09 6:01 
AnswerRe: stack,graphics Pin
Chris Losinger7-Aug-09 7:38
professionalChris Losinger7-Aug-09 7:38 
AnswerRe: stack,graphics Pin
David Crow7-Aug-09 9:36
David Crow7-Aug-09 9:36 
GeneralRe: stack,graphics Pin
Chris Losinger8-Aug-09 10:36
professionalChris Losinger8-Aug-09 10:36 
Questionpointer Pin
kumarashoka7-Aug-09 5:21
kumarashoka7-Aug-09 5:21 
AnswerRe: pointer Pin
Maximilien7-Aug-09 5:35
Maximilien7-Aug-09 5:35 
GeneralRe: pointer Pin
harold aptroot7-Aug-09 5:51
harold aptroot7-Aug-09 5:51 
QuestionHow to Place a Different Caption in the AfxMessageBox(,) MFC messagebox Pin
Larry Mills Sr7-Aug-09 4:59
Larry Mills Sr7-Aug-09 4:59 

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.