Click here to Skip to main content
15,886,026 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Overwrite a file Pin
Nelek4-Dec-07 21:42
protectorNelek4-Dec-07 21:42 
QuestionApplication Error... Pin
Priya_Sundar3-Dec-07 18:40
Priya_Sundar3-Dec-07 18:40 
GeneralRe: Application Error... Pin
john56323-Dec-07 18:45
john56323-Dec-07 18:45 
GeneralRe: Application Error... Pin
Hamid_RT3-Dec-07 19:40
Hamid_RT3-Dec-07 19:40 
GeneralRe: Application Error... Pin
Jijo.Raj4-Dec-07 2:23
Jijo.Raj4-Dec-07 2:23 
GeneralRe: Application Error... Pin
David Crow4-Dec-07 7:19
David Crow4-Dec-07 7:19 
GeneralIncorrect position in screen Pin
kk.tvm3-Dec-07 18:29
kk.tvm3-Dec-07 18:29 
GeneralRe: Incorrect position in screen Pin
Nelek4-Dec-07 21:40
protectorNelek4-Dec-07 21:40 
It can be more than a problem, but i guess it has to do with your MAPMODE and ScrollPosition in every moment.

Lets say... you make a line with a click in X=5, Y=5 to X=50, Y = 50. If you scroll the window but you are not taking in consideration the scroll position, the line will just stay in the same relative place without scrolling, but the real coordinates will be i.e. (5,25) and (50, 70) because the top-left corner of your view has another value after scrolling. This is because you are not using the GetScrollPosition to translate the coordinates of the points when you do the mouseclick or the OnDraw.

Other possibility is you make the line down in the window and when you try to scroll down the view... the line should go up, but it really goes down disappearing from the scope. This is because you are not matching the MAPMODE with the addition/substraction of the Scroll Position when drwaing the View.

And the third possibility, you make the start clik in (5,5), then you go to the scrollbar and take the window down, after scrolling you release the click in the window, but the line doesn't appear as it should. The problem here s just a mix of both upper cases.


Post some relevant code, as where you use SetScrollSize (to see MAPMODE), the OnMouseClick (to take the coordinates of the line) and your some lines of your OnDraw (where you try to make the line)

Greetings.

--------
M.D.V. Wink | ;)

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson

GeneralExecute inline query with database connection in C++ Pin
CodingLover3-Dec-07 18:11
CodingLover3-Dec-07 18:11 
GeneralRe: Execute inline query with database connection in C++ Pin
wira1guys3-Dec-07 20:38
wira1guys3-Dec-07 20:38 
GeneralRe: Execute inline query with database connection in C++ Pin
CodingLover4-Dec-07 18:30
CodingLover4-Dec-07 18:30 
GeneralRe: Execute inline query with database connection in C++ Pin
wira1guys4-Dec-07 20:07
wira1guys4-Dec-07 20:07 
QuestionHow can i access my fat table of hard drive through codding Pin
Naveed7273-Dec-07 17:58
Naveed7273-Dec-07 17:58 
AnswerRe: How can i access my fat table of hard drive through codding Pin
Naveed7273-Dec-07 19:50
Naveed7273-Dec-07 19:50 
GeneralRe: How can i access my fat table of hard drive through codding Pin
JudyL_MD4-Dec-07 5:01
JudyL_MD4-Dec-07 5:01 
GeneralRe: How can i access my fat table of hard drive through codding Pin
David Crow4-Dec-07 7:25
David Crow4-Dec-07 7:25 
GeneralRe: How can i access my fat table of hard drive through codding [modified] Pin
JudyL_MD4-Dec-07 9:22
JudyL_MD4-Dec-07 9:22 
GeneralRe: How can i access my fat table of hard drive through codding Pin
Nelek4-Dec-07 21:30
protectorNelek4-Dec-07 21:30 
GeneralError LNK2019 Pin
wira1guys3-Dec-07 17:40
wira1guys3-Dec-07 17:40 
QuestionRe: Error LNK2019 Pin
Hamid_RT3-Dec-07 19:39
Hamid_RT3-Dec-07 19:39 
GeneralRe: Error LNK2019 Pin
wira1guys3-Dec-07 20:26
wira1guys3-Dec-07 20:26 
QuestionRe: Error LNK2019 Pin
David Crow4-Dec-07 7:27
David Crow4-Dec-07 7:27 
GeneralRe: Error LNK2019 Pin
wira1guys4-Dec-07 19:49
wira1guys4-Dec-07 19:49 
QuestionHow to Use libpng? Pin
manish.patel3-Dec-07 17:37
manish.patel3-Dec-07 17:37 
AnswerRe: How to Use libpng? Pin
Hamid_RT3-Dec-07 19:37
Hamid_RT3-Dec-07 19:37 

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.