News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Do mdi children comport menus?

Started by xandaz, November 25, 2020, 06:13:34 AM

Previous topic - Next topic

xandaz

   i was going through my own experiencies. WM_MDISETMENU was prolly commented. But did you get it to work? and [edi.CREATESTRUCT.hwndParent is not the way that's in the header. i din't know about the align_2 issue. Seems to work fine. Soryr if i wasted your time. Don't need to be rude. Thanks anyway

xandaz

   But did you get the menu to work? ty ty

xandaz

   It doesn't throw error. Assembles just fine. the supposed CREATESTRUCT.hwndParent issue doesn't even deserve to be mentioned. ît's a header problem. And the align_2 issue. I really don't see the point cause it's working just fine. I'm sorry and disgusted for myself for not being able to live up to your God-level or coding.

jj2007

The code you posted at http://masm32.com/board/index.php?topic=8967.msg98143#msg98143 does not assemble, due to several little problems (I tried with MASM and UASM), and it does not contain the WM_MDISETMENU message that you say is not working.

xandaz

   It's not fully able but i think that this is the way WM_MDISETMENU message works. Haven't been able to make it restore the original frame window Menu but it seems that it's all. No child window menus allowed. ty

xandaz

   It appears that this is all that can be done. An exchange of menus using WM_NCMOUSEMOVE works perfectlly. No menus for child windows. ty. If you're interested to check it out it's under MdiChildProc and WndProc, tahnks JJ

jj2007

Error A2063: Symbol not defined : CREATESTRUCTW.hwndParent

Did you "adjust" your Windows.inc?

xandaz

    no i did not because that's not very important. but i'll get there

jj2007

So explain to me how you can assemble the code you posted, in spite of the undefined CREATESTRUCT.hwndParent issue. Or do you post code that assembles with errors?

xandaz

    Is it possible to assemble with errors? it has some issues i know but it assembles. How could there be an executable if it didn't?

jj2007

Quote from: xandaz on November 28, 2020, 01:38:43 AMHow could there be an executable if it didn't?

That is a valid argument, but then how is it possible that you don't get an error message for CREATESTRUCT.hwndParent? Can you post your Windows.inc? This is mysterious, I'd like to understand what's going on.

xandaz

  from windows.inc
.CREATESTRUCTA STRUCT
  lpCreateParams    DWORD      ?
  hInstance         DWORD      ?
  hMenu             DWORD      ?
  hwndParent        DWORD      ?
  ly                DWORD      ?
  lx                DWORD      ?
  y                 DWORD      ?
  x                 DWORD      ?
  style             DWORD      ?
  lpszName          DWORD      ?
  lpszClass         DWORD      ?
  ExStyle           DWORD      ?
CREATESTRUCTA ENDS

CREATESTRUCTW STRUCT
  lpCreateParams    DWORD      ?
  hInstance         DWORD      ?
  hMenu             DWORD      ?
  hwndParent        DWORD      ?
  ly                DWORD      ?
  lx                DWORD      ?
  y                 DWORD      ?
  x                 DWORD      ?
  style             DWORD      ?
  lpszName          DWORD      ?
  lpszClass         DWORD      ?
  ExStyle           DWORD      ?
CREATESTRUCTW ENDS

jj2007

My version says hWndParent, from Windows.inc, 977412 bytes, 10.1.2012 00:21

So you have an obsolete or "adjusted" Windows.inc :cool:

CREATESTRUCTA STRUCT
  lpCreateParams    DWORD      ?
  hInstance         DWORD      ?
  hMenu             DWORD      ?
  hWndParent        DWORD      ?
  ly                DWORD      ?
  lx                DWORD      ?
  y                 DWORD      ?
  x                 DWORD      ?
  style             DWORD      ?
  lpszName          DWORD      ?
  lpszClass         DWORD      ?
  ExStyle           DWORD      ?
CREATESTRUCTA ENDS

xandaz

   you're repeating yourself. I alreadu know that. Assembles with  error. it's a special argument ml ?.asm /TAS (take all shit)

jj2007

You have an obsolete or "adjusted" Windows.inc

Which means whatever source code you post may not run on the machines of other members.

There is a reason why I asked you above to post your Windows.inc