From: Philipp on
Hi,

I am trying to subclass a button using the SetWindowSubclass() function but
it tells me that the 'identifier was not found'. I have included "commctl.h"
and added comctl32.lib to the linker command line. I also had a look in
comctl32.lib and found the word SetWindowSubclass. I assume this means I
have at least version 6 of the library which is required. Why would this
error still come up? What could I be doing wrong? How can I be definite of
what version of comctl32.lib I have?

Maybe I'll have to use SetWindowLongPtr()....

Thanks,

Philipp


From: Christian ASTOR on
Philipp wrote:

> I am trying to subclass a button using the SetWindowSubclass() function but
> it tells me that the 'identifier was not found'. I have included "commctl.h"

Check if your SDK headers are up-to-date (and _WIN32_WINNT)
http://www.msdn.net/archive/default.asp?url=/archive/en-us/samples/internet/libraries/ie6_lib/default.asp
or more recents...
From: Philipp on
Yep they are up-to-date.
Besides, I found the SetWindowSubclass function in the commctl header
anyway...
Any ideas?

Philipp

"Christian ASTOR" <castorix(a)club-internet.fr> wrote in message
news:481ece51$0$21150$7a628cd7(a)news.club-internet.fr...
> Philipp wrote:
>
>> I am trying to subclass a button using the SetWindowSubclass() function
>> but it tells me that the 'identifier was not found'. I have included
>> "commctl.h"
>
> Check if your SDK headers are up-to-date (and _WIN32_WINNT)
> http://www.msdn.net/archive/default.asp?url=/archive/en-us/samples/internet/libraries/ie6_lib/default.asp
> or more recents...


From: Christian ASTOR on
Philipp wrote:

> Yep they are up-to-date.
> Besides, I found the SetWindowSubclass function in the commctl header
> anyway...
> Any ideas?

is _WIN32_WINNT correctly defined (>= 0x0501) ?
From: Philipp on
I believe so although I am not 100% sure on how to test this. What does the
code 0x0501 represent?

"Christian ASTOR" <castorix(a)club-internet.fr> wrote in message
news:481ed214$0$21150$7a628cd7(a)news.club-internet.fr...
> Philipp wrote:
>
>> Yep they are up-to-date.
>> Besides, I found the SetWindowSubclass function in the commctl header
>> anyway...
>> Any ideas?
>
> is _WIN32_WINNT correctly defined (>= 0x0501) ?