能力值:
( LV13,RANK:420 )
|
-
-
2 楼
.elseif eax==WM_NOTIFY
.if wParam==IDC_SBR ;状态栏上"插入"与"改写"的更换
mov eax,lParam
mov eax,[eax+NMHDR.code]
.if eax==NM_CLICK
invoke GetCursorPos,addr @pt
invoke GetWindowRect,hWinStatus,addr @rect
mov eax,@rect.left
mov ecx,eax
add eax,300
add ecx,350
.if ( @pt.x>= eax) && ( @pt.x <= ecx) ;状态栏设置的位置区域
mov eax,lpsz1
xchg eax,lpsz2
mov lpsz1,eax
invoke SendMessage,hWinStatus,SB_SETTEXT,4,lpsz1
invoke SendMessage,hREd,WM_KEYDOWN,VK_INSERT,24 ;向编辑框发送消息
.endif
.endif
.endif
然后在处理消息
.elseif eax==WM_KEYDOWN ;处理消息
mov eax,wParam
.if eax==VK_INSERT
mov eax,lpsz1
xchg eax,lpsz2
mov lpsz1,eax
invoke SendMessage,hWinStatus,SB_SETTEXT,4,lpsz1
.endif
这样就能实现单击状态栏实现插入与改写状态的改变了!!!
|