Hi, in my last tread i found out, that i have to get a handle(form a button) first get in a variavle.
How i can realize that ?
I work with resources.

thanks for your attention !
Posted on 2003-03-16 08:49:43 by Forginforcer
Hi Red,

If your button is on a dialog box from a resource then use GetDlgItem to retreive it's handle, just pass the handle of the dialog and the ID of the button. For example in your dialogproc:
DialogProc proc hWnd:HWND, uMsg:UINT, wParam:WPARAM, lParam:LPARAM

mov eax,hWnd
mov hDlg,eax
invoke GetDlgItem,hDlg,MyButtonID
mov hMyButton,eax

Dialog enp
Posted on 2003-03-16 12:04:39 by donkey
Hi !
Im very happy ! You all are very niche and give me more mutivation to programmm !

Thanks a lot !
Posted on 2003-03-16 12:39:37 by Forginforcer