请问下,如何把主窗口里面的控件句柄传到DLL里面?是不是在dll里面只能用sendmessage对操口进行窗作呢?

解决方案 »

  1.   


    是不是在dll里面只能用sendmessage对窗口进行操作呢?
    还有就是我是要对一个列表进行操作.有什么要对我说的吗?谢谢上面字打反了..
      

  2.   

    ListBox_AddString
    ListBox_DeleteString
    ListBox_Dir
    ListBox_Enable
    ListBox_FindItemData
    ListBox_FindString
    ListBox_FindStringExact
    ListBox_GetCaretIndex
    ListBox_GetCount
    ListBox_GetCurSel
    ListBox_GetHorizontalExtent
    ListBox_GetItemData
    ListBox_GetItemHeight
    ListBox_GetItemRect
    ListBox_GetSel
    ListBox_GetSelCount
    ListBox_GetSelItems
    ListBox_GetText
    ListBox_GetTextLen
    ListBox_GetTopIndex
    ListBox_InsertItemData
    ListBox_InsertString
    ListBox_ResetContent
    ListBox_SelectItemData
    ListBox_SelectString
    ListBox_SelItemRange
    ListBox_SetCaretIndex
    ListBox_SetColumnWidth
    ListBox_SetCurSel
    ListBox_SetHorizontalExtent
    ListBox_SetItemData
    ListBox_SetItemHeight
    ListBox_SetSel
    ListBox_SetTabStops
    ListBox_SetTopIndex
      

  3.   

    如果窗口是你自己写的 也可以考虑share memory的方式来进行交互啊~
      

  4.   

    我的意思是用sendmessage 对一个 list 操作 Report 的样式.请问我要用哪些Constants获取列表中的数值,和修改.