I'm not sure if this will help but check out OBJTOCLIENT(). It will give you the X,Y coordinate of the header based on its form position.
HTH.
>Hello,
>
>I have a grid, and I position an image at a certain position on one of the headers to indicate the active sorting of the grid.
>This works fine, and I calculate the position using the column order and counting all column widths until this column together and add this value to the left position of the grid.
>
>This doesn't work when the grid is scrolled horizontal.
>Is there a way to find the real position of the column even if the grid is scrolled horizontal?
>
>Thanks for your help in advance!
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao