Page 1 of 1
HB_FUNC() : wParam, lParam = 0,0 for Macro
Posted: Sun Nov 06, 2022 12:12 pm
by Jimmy
hi,
i try to use wParam, lParam = 0,0 as descript here
https://learn.microsoft.com/en-us/windo ... ectedcount
wParam
Must be zero.
lParam
Must be zero.
but it fail when compile ... hm
it work when use only
how is this possible

Re: HB_FUNC() : wParam, lParam = 0,0 for Macro
Posted: Sun Nov 06, 2022 1:25 pm
by Enrico Maria Giordano
Re: HB_FUNC() : wParam, lParam = 0,0 for Macro
Posted: Sun Nov 06, 2022 1:52 pm
by Jimmy
Enrico Maria Giordano wrote:Because it is the correct macro prototype:
uuups ...
i have read Description from LVM_GETSELECTEDCOUNT Message not from ListView_GetSelectedCount Macro
---
in HMG Source i found some AVOID_COMPILER_WARNING when using Listview Macro
HMG use
instead which is like my Xbase++ Style using Ot4XB LIB
not sure if it belong to MinGW Compiler or also BCC / MSVC but it seems to work under Fivewin that Way
Re: HB_FUNC() : wParam, lParam = 0,0 for Macro
Posted: Sun Nov 06, 2022 1:56 pm
by Enrico Maria Giordano
This is not tied to a particular compiler, this is the normal C cast (conversion to type).
Re: HB_FUNC() : wParam, lParam = 0,0 for Macro
Posted: Sun Nov 06, 2022 2:18 pm
by Jimmy
hi Enrico,
Enrico Maria Giordano wrote:This is not tied to a particular compiler, this is the normal C cast (conversion to type).
i talk about Macro which "might" make Problem so HMG use SendMessage() which also work under FiveWin BCC / MSVC
Re: HB_FUNC() : wParam, lParam = 0,0 for Macro
Posted: Sun Nov 06, 2022 3:33 pm
by Enrico Maria Giordano
Ah, ok.