Hey, thanks - that is really quite useful ;)
Type: Posts; User: filler_bunny
Hey, thanks - that is really quite useful ;)
Thanks, your absolutely right. Let me explain why I was getting confused.
I was writing an application that contained a class (lets call it CApp), that represents the main application and its main...
Hi - quick couple of questions regarding drawing bitmaps...
1. MSDN says.. "After painting with a common DC, the ReleaseDC function must be called to release the DC. " - Does this mean it must...
This is just some test code to demonstrate the problem so there are many missing tests etc.
Could anyone explain to me why this code fails (there is an access violation when trying to store the...
Below is a quote from some dev's at the now defunct Presto (taken from a post mortem at Gamasutra.com)
Doesn't sound like there is too much of a difference between the API's if you can port an...
Well, you could just create a font that does that.
Ah...
Thanks for pointing that out, makes perfect sense.. now. :)
Excellent - thank you very much. :)
Below is a quick bit of code which is purely to show were my problem is. Using this exact same peice of code, I am able to change the style of the window itself (i.e. remove WS_CAPTION etc) or even a...
Speaking of subclassing controls - i have subclassed an edit control to make sure that the user only enters unsigned integers no greater or less than 255 or 0. But the code looks really ugly. Any...
Hi all - I just wanted to ask a question regarding subclassing multiple controls in the one dialog.
For instance If I have a dialog with three edit controls, all of which must only take integers...
It probably will. Thanks I will read.
Thanks Codeplug, but I have read those and have tried to implement the approach that I feel most comfortable with and was completely snookered by the fact you can't cast a class method to a LONG or...
Okay - so it is best to use a global control procedure?
Nah, it gives you the same error only saying it can't convert to LONG_PTR.
I'm having a similar problem to the one that originally stumped me with regards to defining a non-static windows procedure method within a class. This time the problem relates to Subclassing.
I am...
I'm so embarrased. I must have read those links a hundred times and not understood it.. It has now fallen into place.
Thanks so much. I can go on living now! :)
Thanks for the patience and...
Yes true, but it doesn't make a difference in this case since I have also tried setting the value of child and then using it immediately after while the variable is still in scope...
I just can't...
Thanks for the links.. look, i've been through this a hundred times and I just can't see what i am doing wrong.
I create the window...
hwnd = CreateWindowEx(0,
...
So - just another question.
All member functions or objects within the class that are to be used within the static windows procedure would also have to be static?
I mean the answer is obvious,...
Sweet, thank you very much for your help / patience. ;)
Can you post a short bit of code that demonstrates the problem?
The variable is declared outside of the case block and is declared as static?
Not quite, it is another client area that sites on the surface. Think of how MS Paint splits the windows into different segments, or child windows. Each with its own message procedure. (See attached...
Well, I was just trying to write a class that I could use to create a child window of a main parent window.
This child window has it's own windows procedure.
During the initialisation of the...