Click here to Skip to main content
15,922,427 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: protected constructor Pin
samira forooghi28-Feb-09 21:44
samira forooghi28-Feb-09 21:44 
GeneralRe: protected constructor Pin
Eytukan28-Feb-09 22:30
Eytukan28-Feb-09 22:30 
AnswerRe: protected constructor Pin
«_Superman_»28-Feb-09 21:34
professional«_Superman_»28-Feb-09 21:34 
GeneralRe: protected constructor Pin
samira forooghi28-Feb-09 22:32
samira forooghi28-Feb-09 22:32 
AnswerRe: protected constructor Pin
Stuart Dootson28-Feb-09 22:31
professionalStuart Dootson28-Feb-09 22:31 
GeneralRe: protected constructor Pin
samira forooghi28-Feb-09 22:38
samira forooghi28-Feb-09 22:38 
Question[Message Deleted] Pin
Subhash Madhukar28-Feb-09 20:19
Subhash Madhukar28-Feb-09 20:19 
AnswerIf you want to be rescued. Pin
Eytukan28-Feb-09 21:20
Eytukan28-Feb-09 21:20 
I wish someone here could help you out, but I suggest you not to *magnify* your question. Remove all those bold style and post a neat question. An example:



Hi Friends,

I have a top level window. I need to show background magnified contents into the window. [Explain a bit more here]

My approach:

I created the desktop bitmap on application startup i.e. m_hbitmapScreenShot.

I created a WS_POPUP window; on each mouse move call i move the window by specified offset calling MoveWindow API and draw the new location contnets into it.
CDC* pDC = GetDC();
CRect rc;
GetClientRect(&ec);

// create a memdc  1.e. hMemDC
// select m_hbitmapScreenShot into it
// nGlassSize  is size of window
// nZoomLevel is zoom level to show i.e. 2

::StretchBlt(pDC->;m_hDC, 0, 0, rc.Width(), rc.Height(), m_hMemDC, nDesX, nDesY, m_nGlassSize /m_nZoomLevel,
			m_nGlassSize / m_nZoomLevel, SRCCOPY);


I have two issues

1) When I move the window the background window is not painted at once; so my window traces remains at old location for a while.
2) How to capture background window bitmap when my window is up; I dont need my window in screen shot.

Also, The Other magnified glass disappears as left mouse button is up.
But I need to show it always.

I am attaching screen shot "Magnify.JPG" for your reference.

"Magnify.JPG" location

http://picasaweb.google.com/Smadhukar2000/MFC#5308114585517259826[^]





OK,. what country just started work for the day ? The ASP.NET forum is flooded with retarded questions. -Christian Graus


Best wishes to Rexx[^]

AnswerRe: please help me !!!!! rescue me Pin
Code-o-mat28-Feb-09 22:42
Code-o-mat28-Feb-09 22:42 
QuestionHow to use "PrintWindow" functin in windows2000 and VC6.0 ? Pin
lyo28-Feb-09 17:12
lyo28-Feb-09 17:12 
AnswerRe: How to use "PrintWindow" functin in windows2000 and VC6.0 ? Pin
Hamid_RT28-Feb-09 19:25
Hamid_RT28-Feb-09 19:25 
QuestionRe: How to use "PrintWindow" functin in windows2000 and VC6.0 ? Pin
lyo28-Feb-09 20:54
lyo28-Feb-09 20:54 
AnswerRe: How to use "PrintWindow" functin in windows2000 and VC6.0 ? Pin
«_Superman_»28-Feb-09 21:17
professional«_Superman_»28-Feb-09 21:17 
QuestionEAXDirectSoundCreate method hangs, Pin
haku10028-Feb-09 16:54
haku10028-Feb-09 16:54 
Questionvisual c++ Pin
sunnyk8628-Feb-09 8:36
sunnyk8628-Feb-09 8:36 
AnswerRe: visual c++ Pin
CPallini28-Feb-09 10:27
mveCPallini28-Feb-09 10:27 
GeneralRe: visual c++ Pin
Hamid_RT28-Feb-09 19:32
Hamid_RT28-Feb-09 19:32 
JokeRe: visual c++ Pin
CPallini28-Feb-09 23:31
mveCPallini28-Feb-09 23:31 
GeneralRe: visual c++ Pin
Eytukan28-Feb-09 23:58
Eytukan28-Feb-09 23:58 
QuestionRe: visual c++ Pin
CPallini1-Mar-09 2:35
mveCPallini1-Mar-09 2:35 
AnswerRe: visual c++ Pin
Eytukan1-Mar-09 2:43
Eytukan1-Mar-09 2:43 
GeneralRe: visual c++ Pin
Hamid_RT1-Mar-09 4:28
Hamid_RT1-Mar-09 4:28 
GeneralRe: visual c++ Pin
Eytukan1-Mar-09 6:33
Eytukan1-Mar-09 6:33 
GeneralRe: visual c++ Pin
Hamid_RT1-Mar-09 4:28
Hamid_RT1-Mar-09 4:28 
AnswerRe: visual c++ Pin
Jonathan Davies28-Feb-09 12:54
Jonathan Davies28-Feb-09 12:54 

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.