Click here to Skip to main content
15,891,184 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSame caption problem as before, what am I doing wrong? (half reposted) Pin
generic_user_id19-Mar-02 7:48
generic_user_id19-Mar-02 7:48 
General_beginthreadex questions Pin
Le centriste19-Mar-02 7:39
Le centriste19-Mar-02 7:39 
GeneralRe: _beginthreadex questions Pin
Nemanja Trifunovic19-Mar-02 7:39
Nemanja Trifunovic19-Mar-02 7:39 
GeneralMore FlexGrid issues with .NET Pin
dazinith19-Mar-02 7:33
dazinith19-Mar-02 7:33 
GeneralCreating GDI Controls From Scratch Pin
alpha+19-Mar-02 6:51
alpha+19-Mar-02 6:51 
GeneralRe: Creating GDI Controls From Scratch Pin
Tomasz Sowinski19-Mar-02 6:56
Tomasz Sowinski19-Mar-02 6:56 
GeneralRe: Creating GDI Controls From Scratch Pin
Paul M Watt19-Mar-02 7:09
mentorPaul M Watt19-Mar-02 7:09 
GeneralNew and improved solution Pin
Paul M Watt19-Mar-02 9:06
mentorPaul M Watt19-Mar-02 9:06 
One other thing that I forgot to mention.

In order to make a child control look transparent, you will need to handle the WM_ERASEBKGND message for you child control, and return FALSE. This will have the effect of your child control not clearing the window space below it with the default color for a window like white or whatever, and it will allow what appears on the parent control to show through for the child controls display surface.

Then when you paint the text or whatever for your child control, it will appear as though the control is transparent.

One other note, with this fix, it is no longer neccesary to use the parent windows DC. I told you in my previous post that in order to use the parent DC, set the CS_PARENTDC style for your class, this is no longer necessary.
GeneralRe: Creating GDI Controls From Scratch Pin
Ravi Bhavnani19-Mar-02 9:28
professionalRavi Bhavnani19-Mar-02 9:28 
GeneralRe: Creating GDI Controls From Scratch Pin
Paul M Watt19-Mar-02 10:30
mentorPaul M Watt19-Mar-02 10:30 
GeneralFolder shortcuts. Pin
19-Mar-02 6:05
suss19-Mar-02 6:05 
GeneralRe: Folder shortcuts. Pin
Todd Smith19-Mar-02 6:58
Todd Smith19-Mar-02 6:58 
QuestionCustom thumbnails? Pin
Romeozulu19-Mar-02 5:57
Romeozulu19-Mar-02 5:57 
AnswerRe: Custom thumbnails? Pin
Christian Graus19-Mar-02 10:26
protectorChristian Graus19-Mar-02 10:26 
GeneralRe: Custom thumbnails? Pin
Romeozulu19-Mar-02 11:07
Romeozulu19-Mar-02 11:07 
GeneralLoad & Display Image file types Using DirectDraw Pin
Dang Xuan Ky19-Mar-02 5:35
Dang Xuan Ky19-Mar-02 5:35 
GeneralRe: Load & Display Image file types Using DirectDraw Pin
Christian Graus19-Mar-02 10:26
protectorChristian Graus19-Mar-02 10:26 
GeneralNew Year in Iran ! Pin
Hadi Rezaee19-Mar-02 5:35
Hadi Rezaee19-Mar-02 5:35 
QuestionDrag & Drop like IE Favourites? Pin
Obliterator19-Mar-02 5:20
Obliterator19-Mar-02 5:20 
Generalprinting bitmap : size of the bitmap depends of printer resolution Pin
19-Mar-02 5:03
suss19-Mar-02 5:03 
GeneralRe: printing bitmap : size of the bitmap depends of printer resolution Pin
Christian Graus19-Mar-02 10:29
protectorChristian Graus19-Mar-02 10:29 
GeneralRe: printing bitmap : size of the bitmap depends of printer resolution Pin
27-Mar-02 0:24
suss27-Mar-02 0:24 
General2 port nic com test Pin
gus19-Mar-02 4:59
gus19-Mar-02 4:59 
GeneralRe: 2 port nic com test Pin
Bill Wilson19-Mar-02 14:22
Bill Wilson19-Mar-02 14:22 
GeneralRe: 2 port nic com test Pin
gus20-Mar-02 5:12
gus20-Mar-02 5:12 

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.