Click here to Skip to main content
16,004,991 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Overlapping windows Pin
Waldermort25-Oct-06 7:12
Waldermort25-Oct-06 7:12 
GeneralRe: Overlapping windows Pin
Mark Salsbery25-Oct-06 7:14
Mark Salsbery25-Oct-06 7:14 
GeneralRe: Overlapping windows Pin
Waldermort25-Oct-06 7:23
Waldermort25-Oct-06 7:23 
GeneralRe: Overlapping windows Pin
Mark Salsbery25-Oct-06 8:44
Mark Salsbery25-Oct-06 8:44 
GeneralRe: Overlapping windows Pin
Waldermort25-Oct-06 15:00
Waldermort25-Oct-06 15:00 
GeneralRe: Overlapping windows Pin
Mark Salsbery25-Oct-06 8:55
Mark Salsbery25-Oct-06 8:55 
GeneralRe: Overlapping windows Pin
Waldermort27-Oct-06 1:44
Waldermort27-Oct-06 1:44 
GeneralRe: Overlapping windows Pin
Waldermort27-Oct-06 4:04
Waldermort27-Oct-06 4:04 
I finally managed to get it done. The solution was actually quite easy. Instead of drawing to the Child window HDC, I get the DC of the parent and draw directly to that. Since the WM_PAINT and WM_ERASEBKGND messages only paint to the parents DC, the window appears transparent yet has full functionality. Upon getting the DC it's simply a matter of selecting the 'client region' among others into the DC which prevents drawing on the borders.

I'm not yet sure how this will work with nested windows, but it shouldn't cause to many problems.
GeneralRe: Overlapping windows Pin
Mark Salsbery27-Oct-06 5:45
Mark Salsbery27-Oct-06 5:45 
GeneralRe: Overlapping windows Pin
Waldermort27-Oct-06 7:31
Waldermort27-Oct-06 7:31 
GeneralRe: Overlapping windows Pin
Mark Salsbery27-Oct-06 7:44
Mark Salsbery27-Oct-06 7:44 
Questioncalculate sum of variables of parent window Pin
prithaa25-Oct-06 4:08
prithaa25-Oct-06 4:08 
AnswerRe: calculate sum of variables of parent window Pin
Programm3r25-Oct-06 4:14
Programm3r25-Oct-06 4:14 
GeneralRe: calculate sum of variables of parent window Pin
Mark Salsbery25-Oct-06 4:48
Mark Salsbery25-Oct-06 4:48 
AnswerRe: calculate sum of variables of parent window Pin
David Crow25-Oct-06 5:50
David Crow25-Oct-06 5:50 
GeneralRe: calculate sum of variables of parent window Pin
prithaa25-Oct-06 6:07
prithaa25-Oct-06 6:07 
GeneralRe: calculate sum of variables of parent window Pin
David Crow25-Oct-06 6:17
David Crow25-Oct-06 6:17 
GeneralRe: calculate sum of variables of parent window Pin
prithaa25-Oct-06 9:17
prithaa25-Oct-06 9:17 
GeneralRe: calculate sum of variables of parent window Pin
David Crow25-Oct-06 10:10
David Crow25-Oct-06 10:10 
GeneralRe: calculate sum of variables of parent window Pin
prithaa25-Oct-06 19:02
prithaa25-Oct-06 19:02 
GeneralRe: calculate sum of variables of parent window Pin
David Crow26-Oct-06 2:49
David Crow26-Oct-06 2:49 
AnswerRe: calculate sum of variables of parent window Pin
led mike25-Oct-06 8:36
led mike25-Oct-06 8:36 
GeneralRe: calculate sum of variables of parent window Pin
prithaa25-Oct-06 9:21
prithaa25-Oct-06 9:21 
GeneralRe: calculate sum of variables of parent window Pin
led mike25-Oct-06 9:24
led mike25-Oct-06 9:24 
QuestionEdit control Pin
Jarley D.G.25-Oct-06 3:59
Jarley D.G.25-Oct-06 3:59 

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.