Click here to Skip to main content
15,912,400 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: IE arguments Pin
sleater18-Sep-01 9:36
sleater18-Sep-01 9:36 
GeneralRe: IE arguments Pin
sleater18-Sep-01 9:39
sleater18-Sep-01 9:39 
GeneralRe: IE arguments Pin
Alvaro Mendez18-Sep-01 10:06
Alvaro Mendez18-Sep-01 10:06 
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 
What Chris was trying to make clear was that 100 pixels may equal 3.571 centimeters on your monitor, but on mine it could be 4.672 cm (just an example). How is c++ supposed to know the size of your monitor? And even if it knew it was a 17'' monitor, how is it supposed to know how big the screen's display area has been set to by means of the buttons on the front of the monitor?

There are som DC functions you can use to get an *estimate*. Set your mapping mode to one of the fixed-size ones (MM_TWIPS, MM_LOENGLISH, MM_HIENGLISH etc) an use the LPToDP and DPToLP functions. But there's no satisfaction guarantee!

Cheers
Steen.

"To claim that computer games influence children is rediculous. If Pacman had influenced children born in the 80'ies we would see a lot of youngsters running around in dark rooms eating pills while listening to monotonous music"
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 
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 

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.