Click here to Skip to main content
15,907,913 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: HELP!! Got couple of hours to fix dat problem or...i am over..!! Pin
Bob Stanneveld23-Jun-05 4:34
Bob Stanneveld23-Jun-05 4:34 
GeneralOnChangeEdit needs to be paused Pin
Anonymous23-Jun-05 3:32
Anonymous23-Jun-05 3:32 
GeneralRe: OnChangeEdit needs to be paused Pin
Cedric Moonen23-Jun-05 3:53
Cedric Moonen23-Jun-05 3:53 
GeneralRe: OnChangeEdit needs to be paused Pin
Blake Miller23-Jun-05 5:01
Blake Miller23-Jun-05 5:01 
GeneralRe: OnChangeEdit needs to be paused Pin
Cedric Moonen23-Jun-05 6:13
Cedric Moonen23-Jun-05 6:13 
GeneralRe: OnChangeEdit needs to be paused Pin
Blake Miller23-Jun-05 3:58
Blake Miller23-Jun-05 3:58 
Questionhow to Rotate,translate ,scale a polygon Pin
pradish23-Jun-05 3:31
pradish23-Jun-05 3:31 
AnswerRe: how to Rotate,translate ,scale a polygon Pin
Budric B.23-Jun-05 5:41
Budric B.23-Jun-05 5:41 
I never used XForm so I have no idea what function you'd call to apply the transform. I suggest you look up 2D transformations.
For example here is an examlpe of what you're talking about.

To summarize:
Translations are easy, all you do is take each point in your polygon and add an offset to it to shift each point.
Scaling you perform by multiplying each point by some number. However if you just do scaling on each point of the polygon you're scaling about the screen origin so your polygon will move. To do scaling on the polygon only you'd need to translated it to center the polygon at (0,0) coordinates and then apply scaling, then apply the inverse transform to move it back to where it was.
Rotation is similar. You're multiplying each point by some sines and cosines, but you have to consider about which point you're rotating your polygon.
GeneralRe: how to Rotate,translate ,scale a polygon Pin
pradish23-Jun-05 5:49
pradish23-Jun-05 5:49 
GeneralPatching IAT of IE Pin
Chintoo72323-Jun-05 3:26
Chintoo72323-Jun-05 3:26 
GeneralDrawing Image on Device Context Pin
swati2423-Jun-05 2:32
swati2423-Jun-05 2:32 
GeneralYet another problem with LPCTSTR 2 Pin
tomek1823-Jun-05 2:30
tomek1823-Jun-05 2:30 
GeneralRe: Yet another problem with LPCTSTR 2 Pin
GDavy23-Jun-05 3:05
GDavy23-Jun-05 3:05 
GeneralRe: Yet another problem with LPCTSTR 2 Pin
tomek1823-Jun-05 3:29
tomek1823-Jun-05 3:29 
GeneralRe: Yet another problem with LPCTSTR 2 Pin
GDavy23-Jun-05 3:49
GDavy23-Jun-05 3:49 
GeneralRe: Yet another problem with LPCTSTR 2 Pin
Cedric Moonen23-Jun-05 3:55
Cedric Moonen23-Jun-05 3:55 
GeneralRe: Yet another problem with LPCTSTR 2 Pin
GDavy23-Jun-05 8:44
GDavy23-Jun-05 8:44 
GeneralRe: Yet another problem with LPCTSTR 2 Pin
Cedric Moonen23-Jun-05 8:45
Cedric Moonen23-Jun-05 8:45 
GeneralRe: Yet another problem with LPCTSTR 2 Pin
tomek1823-Jun-05 3:45
tomek1823-Jun-05 3:45 
GeneralRe: Yet another problem with LPCTSTR 2 Pin
GDavy23-Jun-05 3:59
GDavy23-Jun-05 3:59 
GeneralRe: Yet another problem with LPCTSTR 2 Pin
tomek1824-Jun-05 2:00
tomek1824-Jun-05 2:00 
GeneralDrawing Image on Device Context Pin
swati2423-Jun-05 2:27
swati2423-Jun-05 2:27 
Generalsave as html format Pin
Ashok_kavi23-Jun-05 1:19
Ashok_kavi23-Jun-05 1:19 
GeneralRe: save as html format Pin
khan++23-Jun-05 1:40
khan++23-Jun-05 1:40 
Generalresx file use from plain C++ problem Pin
keletron23-Jun-05 0:13
keletron23-Jun-05 0:13 

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.