Click here to Skip to main content
15,919,358 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Convert to DLL Pin
Teoh Chia Wei22-Dec-10 15:51
Teoh Chia Wei22-Dec-10 15:51 
Questionlookup plan for hashtable [modified] Pin
NarVish20-Dec-10 0:52
NarVish20-Dec-10 0:52 
AnswerRe: lookup plan for hashtable PinPopular
Richard MacCutchan20-Dec-10 1:04
mveRichard MacCutchan20-Dec-10 1:04 
AnswerRe: lookup plan for hashtable Pin
Alan Balkany20-Dec-10 5:16
Alan Balkany20-Dec-10 5:16 
GeneralRe: lookup plan for hashtable Pin
NarVish21-Dec-10 2:44
NarVish21-Dec-10 2:44 
GeneralRe: lookup plan for hashtable Pin
David Crow21-Dec-10 2:54
David Crow21-Dec-10 2:54 
QuestionVisual C++ Pin
John50219-Dec-10 22:22
John50219-Dec-10 22:22 
AnswerRe: Visual C++ Pin
Maximilien20-Dec-10 0:38
Maximilien20-Dec-10 0:38 
GeneralRe: Visual C++ Pin
John50220-Dec-10 1:51
John50220-Dec-10 1:51 
GeneralRe: Visual C++ Pin
Maximilien20-Dec-10 3:15
Maximilien20-Dec-10 3:15 
GeneralRe: Visual C++ Pin
Michael Schubert20-Dec-10 3:26
Michael Schubert20-Dec-10 3:26 
GeneralRe: Visual C++ Pin
Maximilien20-Dec-10 3:33
Maximilien20-Dec-10 3:33 
Questionhow to compare two audio files Pin
rajniyadav1a19-Dec-10 22:11
rajniyadav1a19-Dec-10 22:11 
AnswerRe: how to compare two audio files Pin
Maximilien20-Dec-10 0:41
Maximilien20-Dec-10 0:41 
GeneralRe: how to compare two audio files Pin
rajniyadav1a20-Dec-10 1:16
rajniyadav1a20-Dec-10 1:16 
GeneralRe: how to compare two audio files Pin
Maximilien20-Dec-10 1:34
Maximilien20-Dec-10 1:34 
AnswerRe: how to compare two audio files Pin
Cedric Moonen20-Dec-10 20:49
Cedric Moonen20-Dec-10 20:49 
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

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.