ListView_SetOutlineColor

Started by Grincheux, February 26, 2016, 08:02:18 PM

Previous topic - Next topic

Grincheux

#include <windows.h>
#include <Commctrl.h>
#include <shlwapi.h>


QuoteBuilding ImagesToolBar.obj.
C:\Users\Grincheux\Documents\Visual Studio 2015\Projects\ImagesViewer\ImagesToolBar.c(223): warning #2018: Undeclared function 'ListView_SetOutlineColor' (did you mean '(no name)'?); assuming 'extern' returning 'int'.
Building ImagesViewer.res.
Building ImagesViewer.exe.
POLINK: error: Unresolved external symbol 'ListView_SetOutlineColor'.
POLINK: fatal error: 1 unresolved external(s).
*** Error code: 1 ***
Done.

But
QuoteSendMessage(hLVImagesToolBar,LVM_SETOUTLINECOLOR,0,0x00ff0000) ;
is Ok!

This is not the only difference I found.

Compiled with VS Community 2015 no problem !

JohnF

I suspect PellesC headers are not fully up to date. Either write your own macro or use SendMessage.

John

Grincheux