News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Radasm3 Addin

Started by ragdog, April 17, 2011, 12:40:55 PM

Previous topic - Next topic

ragdog

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

Gunner

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
~Rob (Gunner)
- IE Zone Editor
- Gunners File Type Editor
http://www.gunnerinc.com