flat assembler
Message board for the users of flat assembler.
![]() Goto page Previous 1, 2 |
Author |
|
MHajduk
What about this:
Code: .wm_notify: mov ebx, [lparam] mov eax, [hToolBar] cmp [ebx], eax jne @f invoke MessageBox,NULL,_error,NULL,MB_ICONERROR+MB_OK @@: jmp .finish0 ![]() |
|||
![]() |
|
Teehee
i'm not sure. i think its working to ToolBar's Handle, but i need to get TBN_DROPDOWN notification.
|
|||
![]() |
|
Teehee
Now, With the lesson of revolution, i get TBN_DROPDOWN notif.
Code: .wm_notify: mov eax, [lparam] ; [lparam] = pointer to NMHDR struct mov ebx, [hToolBar] cmp [eax+ NMHDR.hwndFrom],ebx jne @f cmp [eax+NMTOOLBAR.hdr.code],TBN_DROPDOWN jne @f ; detect which button was pressed ; cmp [eax+NMTOOLBAR.iItem], ID_BUTTON (TBBUTTON.idCommand field) @@: jmp .finish0 Thank you rev. ![]() Last edited by Teehee on 02 Jan 2010, 14:34; edited 2 times in total |
|||
![]() |
|
Teehee
nvm..
I found this solution: Code: invoke ImageList_LoadImage,[wc.hInstance],IDB_TEST,32,0,CLR_DEFAULT,IMAGE_BITMAP,LR_DEFAULTCOLOR+LR_CREATEDIBSECTION+LR_LOADTRANSPARENT invoke SendMessage,[hToolBar],TB_SETIMAGELIST,0,eax |
|||
![]() |
|
Goto page Previous 1, 2 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.