News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Problems with OWNERDRAW menu

Started by xandaz, February 16, 2022, 04:12:36 AM

Previous topic - Next topic

xandaz

#30
   Hey guys. It's still not crash free but it's working. The ownerdrawn menus are a bit ugly but it'll get better. Thanks all for the help!

mikeburr

jj .. thats because youre not doing the same thing

         invoke GetDlgItemInt, hWnd, 103, esi, -1
         invoke GetDlgItemInt, hWnd, esi, ...
... blackboard eraser whisles through the air ... ouch
cummon pay attention in class ...

jj2007

Quote from: mikeburr on March 04, 2022, 11:03:07 PM
jj .. thats because youre not doing the same thing

         invoke GetDlgItemInt, hWnd, 103, esi, -1
         invoke GetDlgItemInt, hWnd, esi, ...
... blackboard eraser whisles through the air ... ouch
cummon pay attention in class ...

Post complete code, please. I bet the reason is a different one. And btw why should one use esi to pass a control ID? It's a constant.

mikeburr

jj running out a load of boxes !!! .. bet all you like but try it first
regards mikeb

jj2007

Quote from: mikeburr on March 05, 2022, 09:51:30 AM
jj running out a load of boxes !!! .. bet all you like but try it first
regards mikeb

Mike,

Your claim is wrong unless you prove the contrary with a complete piece of code. End of story, sorry.

mikeburr


jj2007

Quote from: mikeburr on March 08, 2022, 01:09:15 AM
wrong jj try it
mike b

Try what?? Give me a piece of code that makes sense. You can modify the code that I posted for you. I told you already that your  invoke GetDlgItemInt, hWnd, esi, ... makes no sense because no sane programmer would pass the ID (a constant) after hWnd in a register.

hutch--

Come on guys, don't use the Campus as a debating area, it only makes it more difficult for the folks asking questions.

jj2007

Agreed, Hutch. Move this nonsense to the colosseum.