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

C / C++ / MFC

 
GeneralRe: How to create global variable? Pin
Bill Wilson19-Mar-02 14:03
Bill Wilson19-Mar-02 14:03 
GeneralRe: How to create global variable? Pin
Bill Wilson19-Mar-02 14:03
Bill Wilson19-Mar-02 14:03 
AnswerRe: How to create global variable? Pin
Tomasz Sowinski19-Mar-02 8:10
Tomasz Sowinski19-Mar-02 8:10 
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 
[you can call me naive, but] I've decided to try and build - from scratch - my own set of GDI controls. i.e., derive CWnd and do all the events and painting stuff by myself.

the main motivations for this is [a] I'd like to create specially shaped transparent controls and [b] I simply HATE those ones that MS gives.

when I tried to integrate the transparent functionality into my controls, I ran into a problem: the control should use the parent's DC to paint itself transparently. so I actually have to call my control's Draw() function (from the parent's OnDraw() function), passing it the parent's current paint DC. it seems lame to me, but sadly I didn't find any other way to do it.
I did that after I tried to intercept WM_PAINT, but it kept on calling my OnPaint() handler and it didn't give enough time for the other controls to paint their own data.....

so I investigated how MFC draws its own simple controls (CButton), and found that actually the parent's DC is being used for drawing the child control. but where? and who does the actual drawing? where in the background is that control being drawn on the screen, and re-WM_PAINT-ed everytime it should be redrawn?

I want to fully understand the simple control's display behaviour and to integrate it into my own set of controls.

any explanations, guidelines, pointers, suggestions will be very appreciated.
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 
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 

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.