I'm creating an ownerdraw menu, but it is not working.. Does anyone know where are the mistakes? I'm getting crazy trying to find them..

Thanks
Posted on 2004-11-02 22:35:42 by Marginais
hi
could u give us some more input where ur problem is
(i can actually only see it?s not even starting here)
also u need to set the OWNERDRAWN flag (didn't see that so far)
also u missed in your message loop IsDialogMessage
seems all in all pretty incomplete so far to me
Posted on 2004-11-04 06:00:33 by Allanon
Hi

I made some changes in the code to simplify and turn it smaller. I have already set the OWNERDRAWN flag in the resource file and I think it is ok. Take a look...Thanks
Posted on 2004-11-06 16:06:12 by Marginais
since u use tasm i can?t really test it
but actually when u run into WM_DRAWITEM u don't check CtlType of the Drawitemstruct so u might do a check before if it?s really a menu


MOV EDI, [WND_lParam]

TEST DWORD PTR [EDI + DRAWITEMSTRUCT.CtlType],ODT_MENU
JNE @@1
TEST DWORD PTR [EDI + DRAWITEMSTRUCT.itemAction], ODA_SELECT
JE @@1

Posted on 2004-11-07 13:56:31 by Allanon
fmz, I have already figured everything out and it's working very well... thank you for helping... vlw
Posted on 2004-11-10 18:03:21 by Marginais