Hi, Steve!
May be you or Iczelion can solve my problem.

I'm currently writing batch of useful mocros, to simplify common controls coding.

While testing ListView_SetExtendedListViewStyle macro i've encountered one problem:
error A2005: symbol redefinition : ListView_SetExtendedListViewStyle

After some hunting, i've found in windows.inc (Version 1.25 - 7 March 2001) this proto:
ListView_SetExtendedListViewStyle PROTO :DWORD, :DWORD

But searching this function in MASM32 package or system DLLs or elsewhere had no result.

My guess it's there by mistake. So i've commented it out.
If not, and this proto is for real function, i have some questions:
1. Where this function resides?
2. Why is this proto in windows.inc?
3. Does it the same as SendMessage(hwndListView, LVM_SETEXTENDEDLISTVIEWSTYLE, dwExMask, dwExStyle) ?

Thanks for answering.
Posted on 2001-11-21 07:13:50 by Four-F
It's just a macro around sendmessage. Here's how it's defined
in commctrl.h


#define ListView_SetExtendedListViewStyle(hwndLV, dw)\
(DWORD)SNDMSG((hwndLV), LVM_SETEXTENDEDLISTVIEWSTYLE, 0, dw)

#define SNDMSG SendMessage

Microsoft and all their macros ;).
Posted on 2001-11-21 09:51:39 by f0dder
Thank you, f0dder!
But you have answered the question that i did't asked :(
Please, read my post carefully once more.
Posted on 2001-11-21 12:20:36 by Four-F
I assume the question you want answered is

3. Does it the same as SendMessage(hwndListView, LVM_SETEXTENDEDLISTVIEWSTYLE, dwExMask, dwExStyle) ?

Well, if you look at the macro, it doesn't exactly look that way, does it?
As I read it in my current ?ber-tired state, I'd say it passes 0 for dwExMask.
Posted on 2001-11-21 12:46:22 by f0dder
Four-F,

As you may appreciate, editing windows.inc is no joy to do and occasionally something ends up in it that should not be there.

The macro you mentioned should not have been there as a prototype so i have removed it from the version that is in MASM32v7. Japheth sent me some includes that have the correct macros and they are seperately included.

Regards,

hutch@movsd.com
Posted on 2001-11-21 16:44:47 by hutch--