Pelles C forum

C language => Beginner questions => Topic started by: Grincheux on February 26, 2016, 08:02:18 PM

Title: ListView_SetOutlineColor
Post by: Grincheux on February 26, 2016, 08:02:18 PM
#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 !
Title: Re: ListView_SetOutlineColor
Post by: JohnF on February 27, 2016, 09:53:24 AM
I suspect PellesC headers are not fully up to date. Either write your own macro or use SendMessage.

John
Title: Re: ListView_SetOutlineColor
Post by: Grincheux on February 29, 2016, 10:54:36 AM
That's what I did.