Click here to Skip to main content
15,890,690 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Rotate rerctangle in Bitmap Pin
raju_shiva18-Aug-10 0:16
raju_shiva18-Aug-10 0:16 
GeneralRe: Rotate rerctangle in Bitmap Pin
CPallini18-Aug-10 0:36
mveCPallini18-Aug-10 0:36 
GeneralRe: Rotate rerctangle in Bitmap Pin
raju_shiva18-Aug-10 1:18
raju_shiva18-Aug-10 1:18 
GeneralRe: Rotate rerctangle in Bitmap Pin
CPallini18-Aug-10 1:47
mveCPallini18-Aug-10 1:47 
GeneralRe: Rotate rerctangle in Bitmap Pin
raju_shiva18-Aug-10 20:54
raju_shiva18-Aug-10 20:54 
GeneralRe: Rotate rerctangle in Bitmap Pin
CPallini18-Aug-10 20:59
mveCPallini18-Aug-10 20:59 
GeneralRe: Rotate rerctangle in Bitmap Pin
Rick York19-Aug-10 15:49
mveRick York19-Aug-10 15:49 
GeneralRe: Rotate rerctangle in Bitmap Pin
CPallini19-Aug-10 21:26
mveCPallini19-Aug-10 21:26 
Rick York wrote:
he code looks correct but I find it to be slightly offensive to me sensibilities. Smile

I'm just kidding. I usually make a function or method when I see a sequence of code repeated more than twice. Something like this is generic enough that I definitely would.


Nah, that's childish.
You've to set up a linear algebra library, with vectors and rotation matrices, properly overloading the multiplication operator. Of course that's an exercise for you. Poke tongue | ;-P Laugh | :laugh:

On my defence, I wouldn't write such code repetitions in my own software (well, maybe I do in quick and dirty junk programs), the goal there was being as explicit as possible (the OP had doubts on the steps to take)
Smile | :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

AnswerRe: Rotate rerctangle in Bitmap Pin
Peter_in_278017-Aug-10 22:00
professionalPeter_in_278017-Aug-10 22:00 
GeneralRe: Rotate rerctangle in Bitmap Pin
raju_shiva17-Aug-10 22:39
raju_shiva17-Aug-10 22:39 
GeneralRe: Rotate rerctangle in Bitmap Pin
Peter_in_278018-Aug-10 12:08
professionalPeter_in_278018-Aug-10 12:08 
GeneralRe: Rotate rerctangle in Bitmap Pin
raju_shiva18-Aug-10 20:55
raju_shiva18-Aug-10 20:55 
QuestionProcess explorer Pin
Sakhalean17-Aug-10 18:45
Sakhalean17-Aug-10 18:45 
AnswerRe: Process explorer Pin
«_Superman_»17-Aug-10 19:05
professional«_Superman_»17-Aug-10 19:05 
AnswerRe: Process explorer Pin
Nuri Ismail17-Aug-10 20:44
Nuri Ismail17-Aug-10 20:44 
GeneralRe: Process explorer Pin
Sakhalean17-Aug-10 23:21
Sakhalean17-Aug-10 23:21 
GeneralRe: Process explorer Pin
Nuri Ismail18-Aug-10 1:41
Nuri Ismail18-Aug-10 1:41 
GeneralRe: Process explorer Pin
Sakhalean18-Aug-10 19:01
Sakhalean18-Aug-10 19:01 
GeneralRe: Process explorer Pin
Nuri Ismail19-Aug-10 0:10
Nuri Ismail19-Aug-10 0:10 
QuestionHow to validate a file path Pin
Danzy8317-Aug-10 10:32
Danzy8317-Aug-10 10:32 
AnswerRe: How to validate a file path Pin
Niklas L17-Aug-10 10:50
Niklas L17-Aug-10 10:50 
GeneralRe: How to validate a file path Pin
Danzy8317-Aug-10 10:55
Danzy8317-Aug-10 10:55 
GeneralRe: How to validate a file path Pin
Niklas L17-Aug-10 11:19
Niklas L17-Aug-10 11:19 
GeneralRe: How to validate a file path Pin
Danzy8317-Aug-10 11:24
Danzy8317-Aug-10 11:24 
AnswerRe: How to validate a file path Pin
Luc Pattyn17-Aug-10 11:25
sitebuilderLuc Pattyn17-Aug-10 11:25 

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.