Click here to Skip to main content
15,911,360 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to do a dos-like thing in MFC prog Pin
Jagadeesh VN10-Sep-03 9:48
Jagadeesh VN10-Sep-03 9:48 
GeneralThanks to you both!!! Pin
ns10-Sep-03 9:55
ns10-Sep-03 9:55 
GeneralRe: Thanks to you both!!! Pin
Ravi Bhavnani10-Sep-03 10:57
professionalRavi Bhavnani10-Sep-03 10:57 
GeneralA simple question from a beginner Pin
xatanu10-Sep-03 9:25
xatanu10-Sep-03 9:25 
GeneralRe: A simple question from a beginner Pin
David Crow10-Sep-03 9:48
David Crow10-Sep-03 9:48 
GeneralRe: A simple question from a beginner Pin
xatanu11-Sep-03 7:36
xatanu11-Sep-03 7:36 
GeneralGDI Portability Pin
Larry J. Siddens10-Sep-03 8:55
Larry J. Siddens10-Sep-03 8:55 
GeneralRe: GDI Portability Pin
Larry J. Siddens10-Sep-03 10:56
Larry J. Siddens10-Sep-03 10:56 
HUMMM, I maybe assuming something that is not correct!

The code to calculate the LPtoDP is as follows:

Lx = Logical x direction
WOx = Window Org x direction
VOx = Viewport Org x direction
WEx = Window Extent x direction
VEx = Viewport Extent x direction
Dx = Device Unit x direction

Dx = ( Lx - WOx ) * VEx / WEx + VOx

So, with this knowledge in a 1280x1024 resolution screen the values are as follows:

Dx = ( 1440 - 0 ) * 1280 / 18142 + 0
Dx = 101.598501 and rounded up to 102.

When this same calculation is done on a 1024x768 screen the value rounded come out to be 81.

So, the question is how do I get the text (rich edit... starting to hate these things!) that was created in a 1024x768 res screen like it did when it was created in a 1280x1024?

Do I come up with some puzzles or what?

Thanks if you can answer. I really guess I don't quite understand!

Larry J. Siddens
Cornerstone Communications

TAME THE DOCUMENT MONSTER
www.unifier.biz



GeneralPrint Screen Buttton Pin
Mazdak10-Sep-03 8:24
Mazdak10-Sep-03 8:24 
GeneralRe: Print Screen Buttton Pin
David Crow10-Sep-03 9:51
David Crow10-Sep-03 9:51 
GeneralRe: Print Screen Buttton Pin
Mazdak10-Sep-03 21:56
Mazdak10-Sep-03 21:56 
GeneralRe: Print Screen Buttton Pin
David Crow11-Sep-03 2:28
David Crow11-Sep-03 2:28 
GeneralScrollable CDialog Pin
Anonymous10-Sep-03 7:29
Anonymous10-Sep-03 7:29 
GeneralRe: Scrollable CDialog Pin
Maximilien10-Sep-03 7:42
Maximilien10-Sep-03 7:42 
GeneralRe: Scrollable CDialog Pin
Alvaro Mendez10-Sep-03 8:04
Alvaro Mendez10-Sep-03 8:04 
GeneralRe: Scrollable CDialog Pin
Anonymous10-Sep-03 8:29
Anonymous10-Sep-03 8:29 
GeneralRe: Scrollable CDialog Pin
l a u r e n10-Sep-03 8:31
l a u r e n10-Sep-03 8:31 
GeneralRe: Scrollable CDialog Pin
Jagadeesh VN10-Sep-03 9:59
Jagadeesh VN10-Sep-03 9:59 
GeneralRe: Scrollable CDialog Pin
Maximilien10-Sep-03 10:20
Maximilien10-Sep-03 10:20 
GeneralCFile::GetFilePath() setting error Pin
Jamie Hale10-Sep-03 7:03
Jamie Hale10-Sep-03 7:03 
GeneralRe: CFile::GetFilePath() setting error Pin
David Crow10-Sep-03 7:23
David Crow10-Sep-03 7:23 
GeneralRe: CFile::GetFilePath() setting error Pin
Jamie Hale10-Sep-03 7:32
Jamie Hale10-Sep-03 7:32 
GeneralRe: CFile::GetFilePath() setting error Pin
David Crow10-Sep-03 7:47
David Crow10-Sep-03 7:47 
GeneralRe: CFile::GetFilePath() setting error Pin
Jamie Hale10-Sep-03 7:53
Jamie Hale10-Sep-03 7:53 
GeneralRe: CFile::GetFilePath() setting error Pin
David Crow10-Sep-03 8:00
David Crow10-Sep-03 8:00 

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.