Hi
I try to Radasm hwnd
InstallAddin proc uses ebx,hWin:DWORD
mov ebx,hWin
;Get pointer to handles struct
invoke SendMessage,ebx,AIM_GETHANDLES,0,0;
mov lpHandles,eax
;Get pointer to proc struct
invoke SendMessage,ebx,AIM_GETPROCS,0,0
mov lpProc,eax
;Get pointer to data struct
invoke SendMessage,ebx,AIM_GETDATA,0,0
mov lpData,eax
DlgProc proc hWnd:HWND,uMsg:UINT,wParam:WPARAM,lParam:LPARAM
.if uMsg==WM_INITDIALOG
mov eax,lpHandles
invoke SendMessage,addr [eax].ADDINHANDLES.hWnd,WM_SETICON,NULL,hIcon
But without any Result
Have your an idea?
Thanks
This works no problem
.if eax == BN_CLICKED
invoke LoadIcon, hInst, 1
mov ecx, lpHandles
invoke SendMessage, (ADDINHANDLES ptr[ecx]).hWnd, WM_SETICON, NULL, eax
addr [eax].ADDINHANDLES.hWnd
This is wrong, you do not need to use addr because [eax].ADDINHANDLES.hWnd is a pointer to the hWnd