NO

Author Topic: ListView_SetOutlineColor  (Read 2772 times)

Grincheux

  • Guest
ListView_SetOutlineColor
« on: February 26, 2016, 08:02:18 PM »
Code: [Select]
#include <windows.h>
#include <Commctrl.h>
#include <shlwapi.h>

Quote
Building 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
Quote
SendMessage(hLVImagesToolBar,LVM_SETOUTLINECOLOR,0,0x00ff0000) ;
is Ok!

This is not the only difference I found.

Compiled with VS Community 2015 no problem !
« Last Edit: February 26, 2016, 08:05:10 PM by Grincheux »

JohnF

  • Guest
Re: ListView_SetOutlineColor
« Reply #1 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

Grincheux

  • Guest
Re: ListView_SetOutlineColor
« Reply #2 on: February 29, 2016, 10:54:36 AM »
That's what I did.