why AIM_MDIACTIVATE message is nto being send by RadASM to DllProc of addin when i open new DialogEditor... i want to made something like has FlipCase addin - hiding/showing Output but what i want to do is: when i activate/open a dialogeditor ToolBar will show and when i will edit some txt ToolBar will hide.
i've done this so far:
has any one any sugestion?!?!
cya
i've done this so far:
.elseif uMsg==AIM_MDIACTIVATE
.const
ID_DIALOG equ 65502
.code
mov eax,hWin
.if eax==lParam
invoke GetWindowLong,hWin,0
.if eax==ID_DIALOG
invoke ShowToolB, TRUE
.EndIf
.endif
mov eax,hWin
.if eax==wParam
invoke GetWindowLong,hWin,0
.if eax==ID_DIALOG
invoke ShowToolB, FALSE
.endif
.endif
ShowToolB proc fShow:DWORD
;Call tool message
push 0
push 15 ;TLM_GET_STRUCT
mov eax,[lpHStruct]
push eax,(ADDINHANDLES ptr [eax]).hTlb
mov eax,[lpPStruct]
mov eax,(ADDINPROCS ptr [eax]).lpToolMessage
call eax
mov edx,[eax+8] ;.Visible
.if edx!=fShow && !fStayVisible
mov edx,[eax+12] ;.Docked
.if edx
;Save focus
invoke GetFocus
push eax
;Call tool message
push 0
push 5 ;TLM_HIDE is a xor function
mov eax,[lpHStruct]
push eax,(ADDINHANDLES ptr [eax]).hTlb
mov eax,[lpPStruct]
mov eax,(ADDINPROCS ptr [eax]).lpToolMessage
call eax
;Restore focus
pop eax
invoke SetFocus,eax
.endif
.endif
ret
ShowToolB endp
has any one any sugestion?!?!
cya
Hi NEMO
AIM_MDIACTIVATE is the same as WM_MDIACTIVATE and is not sent when the first mdi child get focus, only when you change focus to another mdi child. In 1.0.8 I will also send AIM_MDIACTIVATE in this case.
KetilO
AIM_MDIACTIVATE is the same as WM_MDIACTIVATE and is not sent when the first mdi child get focus, only when you change focus to another mdi child. In 1.0.8 I will also send AIM_MDIACTIVATE in this case.
KetilO
thanx KetilO, so i have to wait for new release (or think of something else) -- 1.0.8. BTW when can i expect of this WONDERFUL IDE -- RasASM ???
cya
cya
Hi NEMO
I expect to be finished debugging early next week.
KetilO
I expect to be finished debugging early next week.
KetilO
In DlgToWin, KetilO uses the following code:
.elseif uMsg==WM_INITMENUPOPUP
;Always return FALSE
;Enable/gray menuitem
;Check if there is a topmost dialog edit window
mov eax,[lpHStruct]
mov eax,(ADDINHANDLES ptr [eax]).hDialog
.if eax
mov edx,MF_ENABLED
.else
mov edx,MF_GRAYED
.endif
;Enable/disable the menuitem
mov eax,[lpHStruct]
mov eax,(ADDINHANDLES ptr [eax]).hMenu
invoke EnableMenuItem,eax,nMenuID,edx
Will this not work for you?