Click here to Skip to main content
15,891,674 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: DAO in .NET application Pin
Ryan Binns27-Feb-06 2:27
Ryan Binns27-Feb-06 2:27 
GeneralRe: DAO in .NET application Pin
Ahmed Al-Lakani27-Feb-06 5:35
Ahmed Al-Lakani27-Feb-06 5:35 
Questionhow to fill round rectangle with gradient color? Pin
Tarek Jabri26-Feb-06 7:07
Tarek Jabri26-Feb-06 7:07 
AnswerRe: how to fill round rectangle with gradient color? Pin
Stephen Hewitt26-Feb-06 11:16
Stephen Hewitt26-Feb-06 11:16 
QuestionHorizontal scroll and vertical scroll--difference ? Pin
BeakX26-Feb-06 5:49
BeakX26-Feb-06 5:49 
AnswerRe: Horizontal scroll and vertical scroll--difference ? Pin
EXTEIDE26-Feb-06 6:29
EXTEIDE26-Feb-06 6:29 
GeneralRe: Horizontal scroll and vertical scroll--difference ? Pin
BeakX26-Feb-06 14:43
BeakX26-Feb-06 14:43 
GeneralRe: Horizontal scroll and vertical scroll--difference ? Pin
EXTEIDE26-Feb-06 20:19
EXTEIDE26-Feb-06 20:19 
there are several way to calc it. it depends on what kind of coordinate system you are using. you have to consider whether absolute or relative, whether integer or float, whether zoom in/out feature will be added or not, and etc.

scrollbar control has its absolute coordinate like 'range' like 0~255 or 0~32767. this is physical coordinate. So your logical coordinate in your mind has to be matched to physical coordinate as correct ratio. for example, if the maximum size of logical map is 327680 pixel and physical scroll range is 0~32767, then current pixel position to draw to screen has to be scrollbar position * 10. so if the scrollbar position is 16384 (1/2 of range), then current map position is 16384 * 10 = 163840.

and you also have to consider view window width, height.
anyway, scroll bar controling is a little complex and i'd like to suggest you to research formal way. there are lectures on the internet.

EnjoyRose | [Rose]

Anderson Sheen
Reduce a time to develop your IDE. It's a free!
http://www.exteide.com

Questionerror C2801: 'operator =' must be a member Pin
Mahhouraaaaaa26-Feb-06 5:03
Mahhouraaaaaa26-Feb-06 5:03 
AnswerRe: error C2801: 'operator =' must be a member Pin
Lilith.C26-Feb-06 5:24
Lilith.C26-Feb-06 5:24 
AnswerRe: error C2801: 'operator =' must be a member Pin
Stephen Hewitt26-Feb-06 11:20
Stephen Hewitt26-Feb-06 11:20 
GeneralRe: error C2801: 'operator =' must be a member Pin
PJ Arends26-Feb-06 12:15
professionalPJ Arends26-Feb-06 12:15 
GeneralRe: error C2801: 'operator =' must be a member Pin
Stephen Hewitt26-Feb-06 12:19
Stephen Hewitt26-Feb-06 12:19 
GeneralRe: error C2801: 'operator =' must be a member Pin
Ryan Binns26-Feb-06 17:16
Ryan Binns26-Feb-06 17:16 
GeneralRe: error C2801: 'operator =' must be a member Pin
Stephen Hewitt26-Feb-06 18:10
Stephen Hewitt26-Feb-06 18:10 
GeneralRe: error C2801: 'operator =' must be a member Pin
Ryan Binns26-Feb-06 19:41
Ryan Binns26-Feb-06 19:41 
GeneralRe: error C2801: 'operator =' must be a member Pin
Stephen Hewitt26-Feb-06 19:51
Stephen Hewitt26-Feb-06 19:51 
Jokesome games Pin
FARGORE26-Feb-06 3:04
FARGORE26-Feb-06 3:04 
QuestionHow does the using the address of operator work in Visual C++? Pin
Tom Moore26-Feb-06 2:08
Tom Moore26-Feb-06 2:08 
AnswerRe: How does the using the address of operator work in Visual C++? Pin
BadKarma26-Feb-06 3:15
BadKarma26-Feb-06 3:15 
GeneralRe: How does the using the address of operator work in Visual C++? Pin
Tom Moore26-Feb-06 3:31
Tom Moore26-Feb-06 3:31 
GeneralRe: How does the using the address of operator work in Visual C++? Pin
PJ Arends26-Feb-06 11:13
professionalPJ Arends26-Feb-06 11:13 
AnswerRe: How does the using the address of operator work in Visual C++? Pin
Tom Moore26-Feb-06 3:17
Tom Moore26-Feb-06 3:17 
GeneralRe: How does the using the address of operator work in Visual C++? Pin
Gary R. Wheeler26-Feb-06 5:22
Gary R. Wheeler26-Feb-06 5:22 
AnswerRe: How does the using the address of operator work in Visual C++? Pin
includeh1026-Feb-06 3:19
includeh1026-Feb-06 3:19 

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.