I would like to find the values of some of windows API constants, such as, but not limited to LVM_ENABLEGROUPVIEW & WM_SHOWWINDOW
Looking on the n
LVM_ENABLEGROUPVIEW and co are located in CommCtrls.pas - they probably are in Delphi 2007, but I haven't checked:
LVM_FIRST = $1000;
LVM_SETGROUPMETRICS = LVM_FIRST + 155;
LVM_GETGROUPMETRICS = LVM_FIRST + 156;
LVM_ENABLEGROUPVIEW = LVM_FIRST + 157;
LVM_SORTGROUPS = LVM_FIRST + 158;
WM_SHOWWINDOW
should be in Windows.pas for Delphi 2007 - start searching for SW_HIDE
. Alternatively you could go look at this post on translating API calls, which not only has the values you're looking for but also shows how to use them in a type-safe manner.
Delphi 2007's CommCtrl.pas has a lot of messages and API macros that are not used anywhere in the VCL, are not documented in Delphi and the unit is always well worth a look.
More generally, if you look up any API call on MSDN (or the Delphi help files), it lists the name of the header file right at the bottom under Function Information. If this header is in Win*.h, go look at Windows.pas. Most other things are to be found in the pas file with that name (so commctrl.h becomes commctrl.pas).
Update: LVM_ENABLEGROUPVIEW
as well as the ListView_EnableGroupView
macro are available on Delphi 2007.