Re: ListView_InsertColumn() question {revised]

2006-10-07 Thread Andrew Talbot
Dmitry Timoshkov wrote: > I really can't type today. > I'm glad I'm not the only one. :)) -- A.

Re: ListView_InsertColumn() question [revised]

2006-10-07 Thread Andrew Talbot
Dmitry Timoshkov wrote: > > Sorry for the ambiguous answer, I missed "not" in "am I not", and it > slightly confused me, leading to an inversed logic in thinking. > I should have made the question less verbose. :) I think we are agreeing that LVCOLUMN * const pcol; is the correct equival

Re: ListView_InsertColumn() question {revised]

2006-10-07 Thread Dmitry Timoshkov
I really can't type today. "Dmitry Timoshkov" <[EMAIL PROTECTED]> wrote: LVCOLUMN * const pcol; This one is an equivalent of 'LPLVCOLUMN pcol'; s/'LPLVCOLUMN pcol'/'const LPLVCOLUMN pcol' -- Dmitry.

Re: ListView_InsertColumn() question {revised]

2006-10-07 Thread Dmitry Timoshkov
"Dmitry Timoshkov" <[EMAIL PROTECTED]> wrote: "Andrew Talbot" <[EMAIL PROTECTED]> wrote: Given (for a type T) that const T * and T const * are equivalent, and given the right-to-left nature of pointer declarations, am I not right in thinking that const LPLVCOLUMN pcol is really equivalent to:

Re: ListView_InsertColumn() question {revised]

2006-10-07 Thread Dmitry Timoshkov
"Andrew Talbot" <[EMAIL PROTECTED]> wrote: Given (for a type T) that const T * and T const * are equivalent, and given the right-to-left nature of pointer declarations, am I not right in thinking that const LPLVCOLUMN pcol is really equivalent to: LVCOLUMN * const pcol; not const LVCOLU

Re: ListView_InsertColumn() question {revised]

2006-10-06 Thread Andrew Talbot
[I meant to say that pointer declarations are read right-to-left, not left-to-right. So the corrected question is:] Can you verify something for me, please? The SDK declares ListView_InsertColumn() as: int ListView_InsertColumn( HWND hwnd, int iCol, const LPLVCOLUMN pcol ); In commc

ListView_InsertColumn() question

2006-10-06 Thread Andrew Talbot
Can you verify something for me, please? The SDK declares ListView_InsertColumn() as: int ListView_InsertColumn( HWND hwnd, int iCol, const LPLVCOLUMN pcol ); In commctrl.h, we have: #define ListView_InsertColumnA(hwnd,iCol,pcol) \ (INT)SNDMSGA((hwnd),LVM_INSERTCOLUMNA,(WPARAM)(