Click here to Skip to main content
15,921,606 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralNeed some macro and constant definitions Pin
Dominik Reichl15-Jun-04 4:30
Dominik Reichl15-Jun-04 4:30 
GeneralRe: Need some macro and constant definitions Pin
V.15-Jun-04 4:37
professionalV.15-Jun-04 4:37 
GeneralRe: Need some macro and constant definitions Pin
Dominik Reichl15-Jun-04 4:39
Dominik Reichl15-Jun-04 4:39 
GeneralRe: Need some macro and constant definitions Pin
toxcct15-Jun-04 4:44
toxcct15-Jun-04 4:44 
GeneralRe: Need some macro and constant definitions Pin
Dominik Reichl15-Jun-04 4:57
Dominik Reichl15-Jun-04 4:57 
GeneralRe: Need some macro and constant definitions Pin
Cedric Moonen15-Jun-04 4:45
Cedric Moonen15-Jun-04 4:45 
GeneralRe: Need some macro and constant definitions Pin
Dominik Reichl15-Jun-04 4:57
Dominik Reichl15-Jun-04 4:57 
GeneralProblems with GDI+ on a second desktop Pin
diehardii15-Jun-04 4:25
diehardii15-Jun-04 4:25 
Hi everyone, I am writing text to the desktop. I create an hdc for the desktop using CreateDC("Display", NULL, NULL, NULL) and creating a Graphics object from that hdc. This works great for one monitor. However, I cannot get it to work on the second monitor. I can write text on half of one monitor and the other half is blank. I first tried just writing to the virtual desktop, figuring that Windows would take care of it (CreateDC("Display", NULL, NULL, NULL)), this doesn't work. Next I tried creating a DC for the second monitor from then monitors name (CreateDC(sz.name, NULL, NULL, NULL) and CreateDC(sz.name, sz.name, NULL, NULL)). I also tried directly passing the handles of the dc from the EnumMonitorsProc callback function. None of these works. I know that my coordinate system is correct, because I can create window on the second monitor using the same coordinates that don't work for text drawing. I have read everything in MSDN and I just can't get the text to output on the second monitor. Please help! Thanks for your time.

~Steve
GeneralRe: Problems with GDI+ on a second desktop Pin
Blake Miller15-Jun-04 8:47
Blake Miller15-Jun-04 8:47 
QuestionSmart Tags in Visual Studio Editor?? Pin
Boniolopez15-Jun-04 4:16
Boniolopez15-Jun-04 4:16 
GeneralHigh color icons for mfc application Pin
Muhammad Asif Khan15-Jun-04 3:36
Muhammad Asif Khan15-Jun-04 3:36 
GeneralRe: High color icons for mfc application Pin
toxcct15-Jun-04 3:42
toxcct15-Jun-04 3:42 
GeneralRe: High color icons for mfc application Pin
Muhammad Asif Khan15-Jun-04 22:49
Muhammad Asif Khan15-Jun-04 22:49 
GeneralRe: High color icons for mfc application Pin
toxcct15-Jun-04 23:03
toxcct15-Jun-04 23:03 
GeneralStarter Pin
Member 117484015-Jun-04 3:18
Member 117484015-Jun-04 3:18 
GeneralRe: Starter Pin
Marcel7215-Jun-04 3:25
Marcel7215-Jun-04 3:25 
GeneralRe: Starter Pin
Anonymous15-Jun-04 13:31
Anonymous15-Jun-04 13:31 
GeneralRe: Starter Pin
ThatsAlok16-Jun-04 1:31
ThatsAlok16-Jun-04 1:31 
QuestionHow can CRecordset::Update provoke an exception? Pin
Marcel7215-Jun-04 3:15
Marcel7215-Jun-04 3:15 
QuestionHow to add header file or .cpp file? Pin
Rajesh_K_Sharma15-Jun-04 2:30
Rajesh_K_Sharma15-Jun-04 2:30 
AnswerRe: How to add header file or .cpp file? Pin
toxcct15-Jun-04 2:48
toxcct15-Jun-04 2:48 
Generalfinding a file Pin
Spiritofamerica15-Jun-04 2:17
Spiritofamerica15-Jun-04 2:17 
GeneralRe: finding a file Pin
David Crow15-Jun-04 3:05
David Crow15-Jun-04 3:05 
GeneralRe: finding a file Pin
Spiritofamerica15-Jun-04 7:36
Spiritofamerica15-Jun-04 7:36 
GeneralRe: finding a file Pin
David Crow15-Jun-04 7:40
David Crow15-Jun-04 7:40 

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.