Click here to Skip to main content
15,887,485 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to compare two audio files Pin
rajniyadav1a20-Dec-10 22:07
rajniyadav1a20-Dec-10 22:07 
QuestionDevice Context Pin
002comp19-Dec-10 18:42
002comp19-Dec-10 18:42 
AnswerRe: Device Context Pin
Richard MacCutchan19-Dec-10 21:23
mveRichard MacCutchan19-Dec-10 21:23 
GeneralRe: Device Context Pin
002comp19-Dec-10 21:48
002comp19-Dec-10 21:48 
GeneralRe: Device Context Pin
Richard MacCutchan19-Dec-10 22:45
mveRichard MacCutchan19-Dec-10 22:45 
AnswerRe: Device Context Pin
bleedingfingers20-Dec-10 0:05
bleedingfingers20-Dec-10 0:05 
GeneralRe: Device Context Pin
002comp20-Dec-10 0:49
002comp20-Dec-10 0:49 
GeneralRe: Device Context Pin
Richard MacCutchan20-Dec-10 1:02
mveRichard MacCutchan20-Dec-10 1:02 
Look at the link I gave you, GetDC(HWND hWnd) returns the device context for the window with the specified handle. If hWnd is NULL then you get the DC for the entire display. That is the way it works and you have to code to those rules. If you don't have the handle of one of your windows then there is something seriously wrong with your application.

Perhpas you are not explaining your problem clearly. In most cases you would write or draw on the DC within your window's WM_PAINT message handler where all the relevant details are provided by the framework.
Just say 'NO' to evaluated arguments for diadic functions! Ash

QuestionRe: Device Context Pin
bleedingfingers20-Dec-10 1:05
bleedingfingers20-Dec-10 1:05 
AnswerRe: Device Context Pin
002comp20-Dec-10 1:13
002comp20-Dec-10 1:13 
AnswerRe: Device Context Pin
pasztorpisti21-Dec-10 23:36
pasztorpisti21-Dec-10 23:36 
QuestionCToolBar Flickers Pin
janaswamy uday19-Dec-10 18:33
janaswamy uday19-Dec-10 18:33 
AnswerRe: CToolBar Flickers Pin
Roger Allen10-Jan-11 1:53
Roger Allen10-Jan-11 1:53 
GeneralRe: CToolBar Flickers Pin
janaswamy uday10-Jan-11 23:36
janaswamy uday10-Jan-11 23:36 
Questionvariable 'bool' / header stdbool.h Pin
Randy12719-Dec-10 16:30
Randy12719-Dec-10 16:30 
AnswerRe: variable 'bool' / header stdbool.h [modified] Pin
Luc Pattyn19-Dec-10 16:59
sitebuilderLuc Pattyn19-Dec-10 16:59 
GeneralRe: variable 'bool' / header stdbool.h Pin
Randy12719-Dec-10 19:38
Randy12719-Dec-10 19:38 
AnswerRe: variable 'bool' / header stdbool.h Pin
Luc Pattyn20-Dec-10 3:14
sitebuilderLuc Pattyn20-Dec-10 3:14 
AnswerRe: variable 'bool' / header stdbool.h Pin
T210219-Dec-10 19:38
T210219-Dec-10 19:38 
AnswerRe: variable 'bool' / header stdbool.h Pin
Aescleal20-Dec-10 3:55
Aescleal20-Dec-10 3:55 
QuestionWhy VC project won't run on Windows 7 Pin
ed welch19-Dec-10 10:45
ed welch19-Dec-10 10:45 
AnswerRe: Why VC project won't run on Windows 7 Pin
T210219-Dec-10 19:36
T210219-Dec-10 19:36 
GeneralRe: Why VC project won't run on Windows 7 Pin
ed welch20-Dec-10 1:31
ed welch20-Dec-10 1:31 
GeneralRe: Why VC project won't run on Windows 7 Pin
T210220-Dec-10 2:12
T210220-Dec-10 2:12 
QuestionOwner Button Width Pin
john563218-Dec-10 18:19
john563218-Dec-10 18:19 

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.