Click here to Skip to main content
15,923,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Edit box problem. Pin
G Haranadh21-Mar-07 23:06
G Haranadh21-Mar-07 23:06 
Questionfor checking correct mail id Pin
Y_Kaushik21-Mar-07 20:46
Y_Kaushik21-Mar-07 20:46 
AnswerRe: for checking correct mail id [modified] Pin
G Haranadh21-Mar-07 20:56
G Haranadh21-Mar-07 20:56 
AnswerRe: for checking correct mail id Pin
Parthi_Appu21-Mar-07 21:01
Parthi_Appu21-Mar-07 21:01 
Questionwhat should be code for resizing the drawn image in pixels Pin
kindd21-Mar-07 20:36
kindd21-Mar-07 20:36 
AnswerRe: what should be code for resizing the drawn image in pixels Pin
Parthi_Appu21-Mar-07 20:52
Parthi_Appu21-Mar-07 20:52 
QuestionRe: what should be code for resizing the drawn image in pixels Pin
kindd21-Mar-07 21:44
kindd21-Mar-07 21:44 
AnswerRe: what should be code for resizing the drawn image in pixels Pin
Parthi_Appu21-Mar-07 23:50
Parthi_Appu21-Mar-07 23:50 
kindd wrote:
map to view clear by zoom in and zoom out


Use CDC::StretchBlt
Say pBitmap is your map and dc is your DC then,
CDC cdc; cdc.CreateCompatibleDC(&dc);
CBitmap* pOldBitmap = cdc.SelectObject(pBitmap);
dc.StretchBlt(x, y, width, height, &cdc, sx, sy, swidth, sheight, SRCCOPY);
cdc.SelectObject(pOldBirmap);
cdc.DeletcDC();


Here x,y,width,height are your destination rect, it will remain same for both zoom in and zoom out.But sx,sy,swidth,sheight are your source and it will vary for zoom in and zoom out and the specified source rect is what you have to zoom in/out...


Do your Duty and Don't expect the Result

QuestionProperty sheet Pin
VC_RYK21-Mar-07 20:11
VC_RYK21-Mar-07 20:11 
AnswerRe: Property sheet Pin
megha_gharote21-Mar-07 20:24
megha_gharote21-Mar-07 20:24 
JokeRe: Property sheet [modified] Pin
Rajesh R Subramanian21-Mar-07 20:32
professionalRajesh R Subramanian21-Mar-07 20:32 
GeneralRe: Property sheet Pin
prasad_som21-Mar-07 20:43
prasad_som21-Mar-07 20:43 
GeneralRe: Property sheet Pin
Rajesh R Subramanian21-Mar-07 20:44
professionalRajesh R Subramanian21-Mar-07 20:44 
GeneralRe: Property sheet Pin
prasad_som21-Mar-07 20:47
prasad_som21-Mar-07 20:47 
QuestionRe: Property sheet Pin
prasad_som21-Mar-07 20:57
prasad_som21-Mar-07 20:57 
AnswerRe: Property sheet Pin
Rajesh R Subramanian21-Mar-07 20:33
professionalRajesh R Subramanian21-Mar-07 20:33 
AnswerRe: Property sheet Pin
prasad_som21-Mar-07 20:41
prasad_som21-Mar-07 20:41 
GeneralRe: Property sheet [modified] Pin
VC_RYK21-Mar-07 20:58
VC_RYK21-Mar-07 20:58 
GeneralRe: Property sheet Pin
megha_gharote22-Mar-07 0:31
megha_gharote22-Mar-07 0:31 
GeneralRe: Property sheet Pin
megha_gharote21-Mar-07 23:14
megha_gharote21-Mar-07 23:14 
GeneralRe: Property sheet Pin
prasad_som21-Mar-07 23:20
prasad_som21-Mar-07 23:20 
GeneralRe: Property sheet Pin
megha_gharote22-Mar-07 0:34
megha_gharote22-Mar-07 0:34 
AnswerRe: Property sheet Pin
prasad_som22-Mar-07 0:51
prasad_som22-Mar-07 0:51 
QuestionLeak in ADO Connection->open() Pin
voorugonda prashanth21-Mar-07 19:48
voorugonda prashanth21-Mar-07 19:48 
Questionnetsh pbm pls help me its urgent Pin
prathuraj21-Mar-07 19:30
prathuraj21-Mar-07 19:30 

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.