Click here to Skip to main content
15,886,199 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to show bookmarks in a popupmenu? Pin
yogish29312-Jan-11 1:57
yogish29312-Jan-11 1:57 
GeneralRe: how to show bookmarks in a popupmenu? Pin
Richard MacCutchan12-Jan-11 2:20
mveRichard MacCutchan12-Jan-11 2:20 
GeneralRe: how to show bookmarks in a popupmenu? Pin
Maximilien12-Jan-11 2:54
Maximilien12-Jan-11 2:54 
AnswerRe: how to show bookmarks in a popupmenu? Pin
User 742933812-Jan-11 1:14
professionalUser 742933812-Jan-11 1:14 
QuestionHow to create a Floating Image over another Image ? Pin
002comp12-Jan-11 0:46
002comp12-Jan-11 0:46 
AnswerRe: How to create a Floating Image over another Image ? Pin
Cool_Dev12-Jan-11 1:23
Cool_Dev12-Jan-11 1:23 
GeneralRe: How to create a Floating Image over another Image ? Pin
002comp12-Jan-11 1:52
002comp12-Jan-11 1:52 
GeneralRe: How to create a Floating Image over another Image ? Pin
Cool_Dev12-Jan-11 2:22
Cool_Dev12-Jan-11 2:22 
yogeshs wrote:
By getting Memory DC ,the second image will be a floating image?



It doesn't mean. D'Oh! | :doh:
If your requirement is simple, better to draw the floating image on another window, probably a child one without borders and title. Size this window to same size as image. Use WM_NCHITTEST message to enable the moving of this window by dragging the mouse anywhere in client area. (From NCHITTEST message handler, if the mouse coordinate is with in the window rect, return HTCAPTION to accomplish this)

Otherwise, once both the images are rendered to the same window dc, you have to manually handle mouse clicks and mouse moves which comes inside the second image, and redraw it appropriately. For this to work smoothly, you may first draw to a memory dc and then BitBlt to window dc.
QuestionGet Document IDispatch in native C++ (possibly using MFC ActiveX Control) [modified] Pin
T210211-Jan-11 21:37
T210211-Jan-11 21:37 
Questionhelp on control update from worker thread Pin
ashwani_gupt11-Jan-11 21:07
ashwani_gupt11-Jan-11 21:07 
AnswerRe: help on control update from worker thread Pin
Cedric Moonen11-Jan-11 21:13
Cedric Moonen11-Jan-11 21:13 
GeneralRe: help on control update from worker thread Pin
ashwani_gupt11-Jan-11 21:31
ashwani_gupt11-Jan-11 21:31 
AnswerRe: help on control update from worker thread Pin
Andrew Brock11-Jan-11 21:21
Andrew Brock11-Jan-11 21:21 
GeneralRe: help on control update from worker thread Pin
ashwani_gupt11-Jan-11 21:33
ashwani_gupt11-Jan-11 21:33 
GeneralRe: help on control update from worker thread Pin
ashwani_gupt11-Jan-11 21:47
ashwani_gupt11-Jan-11 21:47 
GeneralRe: help on control update from worker thread Pin
Andrew Brock11-Jan-11 21:54
Andrew Brock11-Jan-11 21:54 
GeneralRe: help on control update from worker thread Pin
ashwani_gupt12-Jan-11 2:23
ashwani_gupt12-Jan-11 2:23 
QuestionMeasure CRichEditCtrl height Pin
Pavel Sokolov11-Jan-11 8:00
Pavel Sokolov11-Jan-11 8:00 
AnswerRe: Measure CRichEditCtrl height Pin
User 742933811-Jan-11 8:41
professionalUser 742933811-Jan-11 8:41 
GeneralRe: Measure CRichEditCtrl height Pin
Pavel Sokolov11-Jan-11 10:04
Pavel Sokolov11-Jan-11 10:04 
AnswerRe: Measure CRichEditCtrl height Pin
User 742933811-Jan-11 10:14
professionalUser 742933811-Jan-11 10:14 
GeneralRe: Measure CRichEditCtrl height Pin
Pavel Sokolov11-Jan-11 10:43
Pavel Sokolov11-Jan-11 10:43 
QuestionRe: Measure CRichEditCtrl height Pin
User 742933811-Jan-11 10:45
professionalUser 742933811-Jan-11 10:45 
AnswerRe: Measure CRichEditCtrl height Pin
Pavel Sokolov11-Jan-11 11:02
Pavel Sokolov11-Jan-11 11:02 
AnswerRe: Measure CRichEditCtrl height Pin
Pavel Sokolov11-Jan-11 11:39
Pavel Sokolov11-Jan-11 11:39 

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.