Author Topic: Problems with OWNERDRAW menu  (Read 3924 times)

xandaz

  • Member
  • ****
  • Posts: 529
  • I luv you babe
    • My asm examples
Re: Problems with OWNERDRAW menu
« Reply #30 on: March 04, 2022, 06:20:25 AM »
   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!
« Last Edit: March 09, 2022, 05:36:00 AM by xandaz »

mikeburr

  • Member
  • **
  • Posts: 189
Re: Problems with OWNERDRAW menu
« Reply #31 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 ...
 

jj2007

  • Member
  • *****
  • Posts: 13957
  • Assembly is fun ;-)
    • MasmBasic
Re: Problems with OWNERDRAW menu
« Reply #32 on: March 04, 2022, 11:33:30 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

  • Member
  • **
  • Posts: 189
Re: Problems with OWNERDRAW menu
« Reply #33 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

jj2007

  • Member
  • *****
  • Posts: 13957
  • Assembly is fun ;-)
    • MasmBasic
Re: Problems with OWNERDRAW menu
« Reply #34 on: March 05, 2022, 11:20:02 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

  • Member
  • **
  • Posts: 189
Re: Problems with OWNERDRAW menu
« Reply #35 on: March 08, 2022, 01:09:15 AM »
wrong jj try it
mike b

jj2007

  • Member
  • *****
  • Posts: 13957
  • Assembly is fun ;-)
    • MasmBasic
Re: Problems with OWNERDRAW menu
« Reply #36 on: March 08, 2022, 01:27:04 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--

  • Administrator
  • Member
  • ******
  • Posts: 10583
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: Problems with OWNERDRAW menu
« Reply #37 on: March 08, 2022, 04:11:52 AM »
Come on guys, don't use the Campus as a debating area, it only makes it more difficult for the folks asking questions.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

jj2007

  • Member
  • *****
  • Posts: 13957
  • Assembly is fun ;-)
    • MasmBasic
Re: Problems with OWNERDRAW menu
« Reply #38 on: March 08, 2022, 05:21:22 AM »
Agreed, Hutch. Move this nonsense to the colosseum.