在删除list控件的 某一列的消息中
LVCOLUMN column;
::SendMessage(hwnd_list_1,LVM_DELETECOLUMN, 0, (LPARAM)&column);参数3,参数4
表示意思?又应该这样赋值呢?其实我就是想把一个list控件本来所有列全部删除再重新建立各个列。
所以我就要知道 list控件 原来有几列,
应该怎样全部删除。LVCOLUMN结构定义如下:
typedef struct tagLVCOLUMNA
{
    UINT mask;
    int fmt;
    int cx;
    LPSTR pszText;
    int cchTextMax;
    int iSubItem;
#if (_WIN32_IE >= 0x0300)
    int iImage;
    int iOrder;
#endif
} LVCOLUMNA, FAR* LPLVCOLUMNA;

解决方案 »

  1.   

    LRESULT SendMessage(          HWND hWnd,
        UINT Msg,
        WPARAM wParam,
        LPARAM lParam
    );
    ParametershWnd
    [in] 
    Handle to the window whose window procedure will receive the message. If this parameter is HWND_BROADCAST, the message is sent to all top-level windows in the system, including disabled or invisible unowned windows, overlapped windows, and pop-up windows; but the message is not sent to child windows.Microsoft Windows Vista and later. Message sending is subject to User Interface Privilege Isolation (UIPI). The thread of a process can send messages only to message queues of threads in processes of lesser or equal integrity level.Msg
    [in] Specifies the message to be sent.
    wParam
    [in] Specifies additional message-specific information.
    lParam
    [in] Specifies additional message-specific information.