Click here to Skip to main content
16,014,591 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: code for calculating the point in a surface and minimum distance from the surface to a line segment, which is not in the surface. Pin
Member 419459326-May-08 5:15
Member 419459326-May-08 5:15 
QuestionMemory address differences with MSVC and g++/MinGW Pin
Samjiman19-May-08 11:10
Samjiman19-May-08 11:10 
QuestionRe: Memory address differences with MSVC and g++/MinGW Pin
Maximilien19-May-08 16:13
Maximilien19-May-08 16:13 
GeneralRe: Memory address differences with MSVC and g++/MinGW Pin
Samjiman19-May-08 23:52
Samjiman19-May-08 23:52 
QuestionRe: Memory address differences with MSVC and g++/MinGW Pin
CPallini19-May-08 22:18
mveCPallini19-May-08 22:18 
GeneralRe: Memory address differences with MSVC and g++/MinGW Pin
Samjiman19-May-08 23:54
Samjiman19-May-08 23:54 
QuestionHow to find out Frame Rate and Video Length [modified] Pin
80Eddy19-May-08 10:46
80Eddy19-May-08 10:46 
QuestionSetScrollSizes is cauing pinch. Pin
adityarao3119-May-08 6:16
adityarao3119-May-08 6:16 
I have written SetScrollSizes function for my class derived from CScrollView in OnInitUpdate. But it is giving me big pinch. I have to read one text file from disk
and diaplay as it is by changing font. I created font and I am displaying it.

// code fragment.
sizeTotal.cx = Linelength //calculated and fine.
sizeTotal.cy = Numlines * cyChar;
where cyChar = tm.tmHeight + tm.tmExternalLeading;
SetScrollSizes(MM_TEXT,sizeTotal);
But during display I find scroll is too huge than my file and scrolling is very fast than
required. If file would have of constant size I might have hardcoded but sometimes it is just four lines and some time tens of thousands.
Can any one tell me. I checked current mapping mode of device context ,it is MM_TEXT.
muktoham

|| Lust Causes Sorrow ||

AnswerRe: SetScrollSizes is cauing pinch. [modified] Pin
Nelek19-May-08 7:51
protectorNelek19-May-08 7:51 
GeneralRe: SetScrollSizes is cauing pinch. Pin
adityarao3119-May-08 8:15
adityarao3119-May-08 8:15 
QuestionAbout the path Pin
capint19-May-08 5:08
capint19-May-08 5:08 
AnswerRe: About the path Pin
toxcct19-May-08 5:12
toxcct19-May-08 5:12 
GeneralRe: About the path Pin
capint19-May-08 5:30
capint19-May-08 5:30 
GeneralRe: About the path [modified] Pin
toxcct19-May-08 5:34
toxcct19-May-08 5:34 
QuestionHaven't ever heard about escape sequences? Pin
CPallini19-May-08 5:46
mveCPallini19-May-08 5:46 
GeneralRe: About the path Pin
David Crow19-May-08 6:06
David Crow19-May-08 6:06 
JokeRe: About the path Pin
CPallini19-May-08 7:19
mveCPallini19-May-08 7:19 
GeneralRe: About the path Pin
Rajesh R Subramanian19-May-08 20:50
professionalRajesh R Subramanian19-May-08 20:50 
GeneralRe: About the path Pin
CPallini19-May-08 21:55
mveCPallini19-May-08 21:55 
AnswerRe: About the path Pin
sashoalm19-May-08 5:56
sashoalm19-May-08 5:56 
GeneralRe: About the path Pin
capint19-May-08 6:07
capint19-May-08 6:07 
GeneralRe: About the path Pin
David Crow19-May-08 6:09
David Crow19-May-08 6:09 
GeneralRe: About the path Pin
capint19-May-08 6:13
capint19-May-08 6:13 
GeneralRe: About the path Pin
David Crow19-May-08 6:14
David Crow19-May-08 6:14 
GeneralRe: About the path Pin
capint19-May-08 6:18
capint19-May-08 6:18 

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.