@ hutch
i experiment with imagelist and found a error in the windows.inc
your items works not an give me a error if i compile my project
A2206: missing operator in expression
BCM_GETIDEALSIZE equ (BCM_FIRST + 0x0001)
BCM_SETIMAGELIST equ (BCM_FIRST + 0x0002)
BCM_GETIMAGELIST equ (BCM_FIRST + 0x0003)
BCM_SETTEXTMARGIN equ (BCM_FIRST + 0x0004)
BCM_GETTEXTMARGIN equ (BCM_FIRST + 0x0005)
i have change to:
BCM_GETIDEALSIZE equ (BCM_FIRST + 01)
BCM_SETIMAGELIST equ (BCM_FIRST + 02)
BCM_GETIMAGELIST equ (BCM_FIRST + 03)
BCM_SETTEXTMARGIN equ (BCM_FIRST + 04)
BCM_GETTEXTMARGIN equ (BCM_FIRST + 05)
this works
greets ragdog
Yep, in Version 1.30 Release 7 March 2006 I find 15 instances of "0x".
Thanks, I will be working on WINDOWS.INC very soon so these and any others like missing equates will be very useful.
Try this, I have removed the "0x" I can find and used the ciorrect ASM notation with the trailing "h".
[attachment deleted by admin]
The WINDOWPOS structure description in the Win32 Programmer's Reference uses cx to specifies the window width, in pixels. The windows.inc lists it as lx. This can cause some frustration of a struct member not being recognized.
Raymond
Ray,
there is not a lot I can do about it, "cx" is a register. Many years ago befre the convention went in the direction of "_cx" I renamed it to "lx" so it would not conflict with the register.