N
Neviton
Is it possible ?
There is any work around?
Thanx
There is any work around?
Thanx
Neviton said:Is it possible ?
There is any work around?
Thanx
Yes probably. I'm starting.Last resort, there must be something wrong with your design, refactor.
Neviton said:Thanks for the quickly response Barry.
Yes probably. I'm starting.
Perhaps you can give me some tip.
I'm subclassing a Button control.
I create a class for this and I define my subclassing procedure as
static.
But I have a non-static HBITMAP variable that I want to use inner
subclassing static procedure.
Thanks for the quickly response Barry.
Yes probably. I'm starting.
Perhaps you can give me some tip.
I'm subclassing a Button control.
I create a class for this and I define my subclassing procedure as
static.
But I have a non-static HBITMAP variable that I want to use inner
subclassing static procedure.
Neviton said:Any help is welcome
I tried to change my function to non-static but I get this error:
...Button.cpp aggregate value used where an integer was expected
this occur on this line when I try get the address of my subclass
procedure(OwnerDrawButtonProc):
mainWindowProc = (WNDPROC) SetWindowLong(handle, GWL_WNDPROC, (LONG)
OwnerDrawButtonProc);
Any help is welcome
doing window stuff. This is outside of what happens in this
news group as we are only interested in standard C++ language
stuff here. You need to go to a group that is specific to
your compiler and operating system.
So, when you are setting up the button, you'd store
something in the system. When the callback happens,
it passes you some extra parameter. And you use that
extra parameter to sort out which button instance
you need to call. Your static function looks up this
stuff in a static table, then calls it. That table
is something you have to maintain as buttons are
created, destroyed, modified, etc.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.