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

C / C++ / MFC

 
GeneralRe: Bug when filling a CListBox with a list of non archived files? Pin
Erik21-Jul-10 2:54
Erik21-Jul-10 2:54 
GeneralRe: Bug when filling a CListBox with a list of non archived files? Pin
Richard MacCutchan21-Jul-10 5:01
mveRichard MacCutchan21-Jul-10 5:01 
Questionhow to enble menu item in a system menu? Pin
vasu_sri20-Jul-10 21:29
vasu_sri20-Jul-10 21:29 
AnswerRe: how to enble menu item in a system menu? Pin
«_Superman_»20-Jul-10 21:41
professional«_Superman_»20-Jul-10 21:41 
GeneralRe: how to enble menu item in a system menu? Pin
vasu_sri20-Jul-10 22:50
vasu_sri20-Jul-10 22:50 
QuestionGDI+ Pin
john563220-Jul-10 21:26
john563220-Jul-10 21:26 
AnswerRe: GDI+ Pin
john563221-Jul-10 1:36
john563221-Jul-10 1:36 
AnswerRe: GDI+ [modified] Pin
Luc Pattyn21-Jul-10 2:20
sitebuilderLuc Pattyn21-Jul-10 2:20 
Hi,

1.
keep both scale factors identical if you want the scaling to be isotropic.

2.
temporarily move the origin to the center of the canvas (assuming that is the point you do not want to move), hence apply the sequence Translate(some_distance), Scale(some_factor), Translate(-some_distance).
ADDED: normally some_distance corresponds to half the size of your canvas /ADDED

3.
There are some 30 overloads of DrawImage; there must be at least one that does what you want.


Most is explained in MSDN, to some extent. It may take some experiments to grasp it all.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.


modified on Wednesday, July 21, 2010 8:37 AM

Questionchar buffer append Pin
gmallax20-Jul-10 20:22
gmallax20-Jul-10 20:22 
AnswerRe: char buffer append Pin
Code-o-mat20-Jul-10 20:48
Code-o-mat20-Jul-10 20:48 
AnswerRe: char buffer append Pin
Niklas L20-Jul-10 21:50
Niklas L20-Jul-10 21:50 
AnswerRe: char buffer append Pin
Aescleal20-Jul-10 22:19
Aescleal20-Jul-10 22:19 
QuestionOpenGL, cross-platformity, and general nincompoopery Pin
Asday20-Jul-10 15:17
Asday20-Jul-10 15:17 
AnswerRe: OpenGL, cross-platformity, and general nincompoopery [modified] Pin
Sauro Viti20-Jul-10 21:24
professionalSauro Viti20-Jul-10 21:24 
GeneralRe: OpenGL, cross-platformity, and general nincompoopery Pin
Asday20-Jul-10 23:29
Asday20-Jul-10 23:29 
GeneralRe: OpenGL, cross-platformity, and general nincompoopery Pin
Sauro Viti21-Jul-10 0:06
professionalSauro Viti21-Jul-10 0:06 
GeneralRe: OpenGL, cross-platformity, and general nincompoopery Pin
Asday21-Jul-10 0:30
Asday21-Jul-10 0:30 
GeneralRe: OpenGL, cross-platformity, and general nincompoopery Pin
Sauro Viti21-Jul-10 0:51
professionalSauro Viti21-Jul-10 0:51 
QuestionHow could I pass data from MFC application to .Net user control? Pin
Daniel Tong20-Jul-10 13:23
Daniel Tong20-Jul-10 13:23 
AnswerRe: How could I pass data from MFC application to .Net user control? Pin
Code-o-mat20-Jul-10 20:59
Code-o-mat20-Jul-10 20:59 
GeneralRe: How could I pass data from MFC application to .Net user control? Pin
Daniel Tong21-Jul-10 7:49
Daniel Tong21-Jul-10 7:49 
GeneralRe: How could I pass data from MFC application to .Net user control? Pin
Daniel Tong21-Jul-10 7:52
Daniel Tong21-Jul-10 7:52 
GeneralRe: How could I pass data from MFC application to .Net user control? Pin
Code-o-mat21-Jul-10 8:24
Code-o-mat21-Jul-10 8:24 
Questionhow to add cur resources to any executable by program? Pin
nenfa20-Jul-10 10:34
nenfa20-Jul-10 10:34 
QuestionRe: how to add cur resources to any executable by program? Pin
David Crow20-Jul-10 10:51
David Crow20-Jul-10 10:51 

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.