Click here to Skip to main content
16,007,932 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: IE arguments Pin
Anders Molin18-Sep-01 10:47
professionalAnders Molin18-Sep-01 10:47 
GeneralConvert centimeter to pixel Pin
18-Sep-01 1:13
suss18-Sep-01 1:13 
GeneralRe: Convert centimeter to pixel Pin
Christian Graus18-Sep-01 1:20
protectorChristian Graus18-Sep-01 1:20 
GeneralRe: Convert centimeter to pixel Pin
18-Sep-01 1:26
suss18-Sep-01 1:26 
GeneralRe: Convert centimeter to pixel Pin
Steen Krogsgaard18-Sep-01 2:18
Steen Krogsgaard18-Sep-01 2:18 
GeneralRe: Convert centimeter to pixel Pin
Tomasz Sowinski18-Sep-01 2:22
Tomasz Sowinski18-Sep-01 2:22 
GeneralRe: Convert centimeter to pixel Pin
18-Sep-01 7:31
suss18-Sep-01 7:31 
GeneralRe: Convert centimeter to pixel Pin
Tomasz Sowinski18-Sep-01 9:54
Tomasz Sowinski18-Sep-01 9:54 
Not exactly. If you're using MFC, you'll have DC passed to OnDraw. If you're playing on Win32 API level, your DC will come out from BeginPaint.

However, you'll sometimes need to create your own display DC - for example, during processing of mouse messages. In such case, use GetDC(NULL) or CreateDC("DISPLAY", NULL, NULL, NULL). You can also use CreateIC instead of CreateDC when DC will be used only to retrieve the attributes, like LOGPIXELSX.

Tomasz Sowinski -- http://www.shooltz.com
GeneralImport Flash files Pin
Ivan A Eryshov18-Sep-01 0:10
Ivan A Eryshov18-Sep-01 0:10 
GeneralRe: Import Flash files Pin
Christian Graus18-Sep-01 1:22
protectorChristian Graus18-Sep-01 1:22 
GeneralUnicode Pin
Ivan A Eryshov18-Sep-01 0:07
Ivan A Eryshov18-Sep-01 0:07 
Generaldependency on SHLWAPI.dll Pin
vijayaramaraju17-Sep-01 20:22
vijayaramaraju17-Sep-01 20:22 
GeneralRe: dependency on SHLWAPI.dll Pin
Michael Dunn17-Sep-01 22:04
sitebuilderMichael Dunn17-Sep-01 22:04 
General[Message Deleted] Pin
VladTheImpaler17-Sep-01 19:04
VladTheImpaler17-Sep-01 19:04 
GeneralRe: NAMESPACE: to use or not to use Pin
Michael Dunn17-Sep-01 19:14
sitebuilderMichael Dunn17-Sep-01 19:14 
GeneralGetting Text from another programs window Pin
Brad Chase17-Sep-01 15:19
Brad Chase17-Sep-01 15:19 
GeneralRe: Getting Text from another programs window Pin
17-Sep-01 18:07
suss17-Sep-01 18:07 
QuestionWhat is the true version # of Windows XP? Pin
Masaaki Onishi17-Sep-01 13:21
Masaaki Onishi17-Sep-01 13:21 
AnswerRe: What is the true version # of Windows XP? Pin
Anders Molin17-Sep-01 22:47
professionalAnders Molin17-Sep-01 22:47 
GeneralResource ID's and CMenu Pin
Jon Marcus17-Sep-01 13:09
Jon Marcus17-Sep-01 13:09 
QuestionCBitmapButton OnMouseMove??? Pin
Jesper S17-Sep-01 11:08
Jesper S17-Sep-01 11:08 
AnswerRe: CBitmapButton OnMouseMove??? Pin
Tomasz Sowinski17-Sep-01 11:16
Tomasz Sowinski17-Sep-01 11:16 
GeneralRe: CBitmapButton OnMouseMove??? Pin
Jesper S17-Sep-01 11:47
Jesper S17-Sep-01 11:47 
GeneralRe: CBitmapButton OnMouseMove??? Pin
Jesper S17-Sep-01 12:38
Jesper S17-Sep-01 12:38 
Questiontransferring binary data - sockets - how? Pin
17-Sep-01 10:54
suss17-Sep-01 10:54 

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.