Python论坛  - 讨论区

标题:[python-chinese] 怎样通过win32gui向一个SysListView32发送LVM_SETITEMSTATE消息

2006年09月18日 星期一 19:33

尹祥龙 yinxianglong在gmail.com
星期一 九月 18 19:33:43 HKT 2006

Çë½Ìlimodou£¬ÔõÑùͨ¹ýwin32guiÏòÒ»¸öSysListView32·¢ËÍLVM_SETITEMSTATEÏûÏ¢£¬
¸Ð¼¤²»¾¡¡£

ÕâÊÇmsdnÉÏÃæ¶ÔLVM_SETITEMSTATEÏûÏ¢µÄÃèÊö
 LVM_SETITEMSTATE

This message changes the state of an item in a list-view control. You can
send this message explicitly or by using the *ListView_SetItemState* macro.

*LVM_SETITEMSTATE **wParam* = *(WPARAM)(int)* *i**;*
  *lParam* =* (LPARAM)(LVITEM FAR *)* *pitem**;*

Parameters *i * Index of the list-view item. If this parameter is ¨C1, then
the state change is applied to all items. *pitem * Pointer to an
*LVITEM*structure. The
*stateMask* member specifies which state bits to change, and the
*state*member contains the new values for those bits. The other
members are
ignored. Return Values

If you send this message explicitly, TRUE indicates success. FALSE indicates
failure.
Remarks

*Related macro:*
ListView_SetItemState<http://msdn.microsoft.com/library/en-us/wceui40/html/cereflistview_setitemstate.asp>
Requirements

*OS Versions:* Windows CE 1.0 and later.
*Header:* Commctrl.h.
See Also

ListView_SetItemState<http://msdn.microsoft.com/library/en-us/wceui40/html/cereflistview_setitemstate.asp>|
List-View
Controls Messages<http://msdn.microsoft.com/library/en-us/wceui40/html/ceconlistviewcontrolsmessages.asp>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://python.cn/pipermail/python-chinese/attachments/20060918/008afbd3/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年09月18日 星期一 19:37

limodou limodou在gmail.com
星期一 九月 18 19:37:49 HKT 2006

On 9/18/06, ÒüÏéÁú <yinxianglong在gmail.com> wrote:
>
> Çë½Ìlimodou£¬ÔõÑùͨ¹ýwin32guiÏòÒ»¸öSysListView32·¢ËÍLVM_SETITEMSTATEÏûÏ¢£¬
> ¸Ð¼¤²»¾¡¡£
>
> ÕâÊÇmsdnÉÏÃæ¶ÔLVM_SETITEMSTATEÏûÏ¢µÄÃèÊö
>
>
> LVM_SETITEMSTATE
>
>
> This message changes the state of an item in a list-view control. You can
> send this message explicitly or by using the ListView_SetItemState
> macro.LVM_SETITEMSTATE wParam =
> (WPARAM)(int) i;
>  lParam = (LPARAM)(LVITEM FAR *) pitem;
>
> Parameters i Index of the list-view item. If this parameter is ¨C1, then the
> state change is applied to all items. pitem Pointer to an LVITEM structure.
> The stateMask member specifies which state bits to change, and the state
> member contains the new values for those bits. The other members are
> ignored.
> Return Values
>
> If you send this message explicitly, TRUE indicates success. FALSE indicates
> failure.
> Remarks
>
> Related macro: ListView_SetItemState
> Requirements
>
> OS Versions: Windows CE 1.0 and later.
> Header: Commctrl.h.
> See Also
>
> ListView_SetItemState | List-View Controls Messages

ÎÒû¸ã¹ý£¬Ã»ÔõôÓùýpywin32°ü¡£²»¹ýÓÐÒ»±¾Êé½Ð Python Programming on
win32Óв»ÉÙ¹ØÓÚÔÚwindowsÉϱàÂ룬ʹÓÃpywin32µÄÀý×Ó£¬Äã¿ÉÒԲο¼Ò»Ï¡£ÓÐÒ»¸öftpµØÖ·Äã¿ÉÒÔÕÒµ½£º

ftp://202.96.64.144/pub/books/

-- 
I like python!
My Blog: http://www.donews.net/limodou
UliPad Site: http://wiki.woodpecker.org.cn/moin/UliPad
UliPad Maillist: http://groups.google.com/group/ulipad

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号