Click here to Skip to main content
15,916,030 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Does anything affect Sleep () Pin
Toby Opferman11-May-04 12:53
Toby Opferman11-May-04 12:53 
GeneralRe: Does anything affect Sleep () Pin
Rafael Fernández López11-May-04 4:50
Rafael Fernández López11-May-04 4:50 
GeneralRe: Does anything affect Sleep () Pin
cheesepirate11-May-04 4:53
cheesepirate11-May-04 4:53 
GeneralCopyFile help! Pin
Ryan McDermott11-May-04 4:34
Ryan McDermott11-May-04 4:34 
GeneralRe: CopyFile help! Pin
Rafael Fernández López11-May-04 4:54
Rafael Fernández López11-May-04 4:54 
GeneralRe: CopyFile help! Pin
Diddy11-May-04 5:51
Diddy11-May-04 5:51 
GeneralRe: CopyFile help! Pin
ThatsAlok3-May-05 22:12
ThatsAlok3-May-05 22:12 
GeneralNeed help on subclassing windows Pin
cnurse11-May-04 3:19
cnurse11-May-04 3:19 
Hi guys,

I've developed in C++ for many years, but more recently have been working in C# and VB.NET.

I am developing my own version of themed controls where the user can govern just about any aspect of control drawing, like shape and colour etc.

I want to extend this control now to Windows Captions (i.e. Form captions). One thing that I have never fully gained is an understanding of what windows messages to trap, whether to let the default processing always take place, and what values to return. Even when I think I am following the MSDN SDK documention on WM_... notifications I still can't seem to get it right.

My problem seems to mainly be in getting setup, i.e. calling GetWindowDC to give me the entire drawing area of the window. Once I have called GetWindowDC I can construct a .NET Graphics object, and later dispose of both after my drawing is complete.

I do this and clear the Graphics object to red, so I should see all the non-client area turn red, which happens when the window is first drawn, but after that, as I start to move the window or size it I dont see the DC get consistently filled with red.

In summary then, if I could get a control of non-client drawing then I would have raised my programming standard significantly.

I would really be immensley greatful if you guys could point me at a definitive guide to subclassing or window's message processing, without recommending 3rd part controls as I am a DIY fanatic! 8-)

Also, if any of you can spare some time now and again, perhaps on MSN messenger to chat about this issue that would just be solid gold.

I await your responses with baited breath!

Thanks all!

Nursey
GeneralRe: Need help on subclassing windows Pin
Hesham Amin11-May-04 4:12
Hesham Amin11-May-04 4:12 
GeneralRe: Need help on subclassing windows Pin
cnurse11-May-04 13:53
cnurse11-May-04 13:53 
GeneralList control events Pin
jhorstkamp11-May-04 2:54
jhorstkamp11-May-04 2:54 
GeneralRe: List control events Pin
Monty211-May-04 3:02
Monty211-May-04 3:02 
GeneralRe: List control events Pin
Diddy11-May-04 3:11
Diddy11-May-04 3:11 
GeneralRe: List control events Pin
jhorstkamp11-May-04 8:13
jhorstkamp11-May-04 8:13 
GeneralRe: List control events Pin
Diddy26-May-04 2:46
Diddy26-May-04 2:46 
QuestionHow to make code block works faster? Pin
Kolich11-May-04 2:41
Kolich11-May-04 2:41 
AnswerRe: How to make code block works faster? Pin
Nitron11-May-04 2:56
Nitron11-May-04 2:56 
GeneralRe: How to make code block works faster? Pin
Kolich11-May-04 3:01
Kolich11-May-04 3:01 
GeneralRe: How to make code block works faster? Pin
Nitron11-May-04 3:09
Nitron11-May-04 3:09 
GeneralRe: How to make code block works faster? Pin
Kolich11-May-04 3:14
Kolich11-May-04 3:14 
GeneralRe: How to make code block works faster? Pin
Nitron11-May-04 3:26
Nitron11-May-04 3:26 
GeneralRe: How to make code block works faster? Pin
Kolich11-May-04 3:33
Kolich11-May-04 3:33 
GeneralRe: How to make code block works faster? Pin
toxcct11-May-04 4:51
toxcct11-May-04 4:51 
GeneralRe: How to make code block works faster? Pin
Nitron11-May-04 5:00
Nitron11-May-04 5:00 
GeneralRe: How to make code block works faster? Pin
toxcct11-May-04 5:03
toxcct11-May-04 5:03 

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.