flat assembler
Message board for the users of flat assembler.

Index > Windows > getmenubarinfo error

Author
Thread Post new topic Reply to topic
dv4-fa



Joined: 08 Feb 2013
Posts: 14
dv4-fa
Getmenubarinfo gives me return code 87 invalid parameter. Invoke GetMenuBarInfo,[hwnddlg],0xfffffffd,0,mbi

What am i doing wrong?
Post 04 Mar 2013, 12:49
View user's profile Send private message Reply with quote
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr
dv4-fa,

Have you set mbi.cbSize to sizeof MENUBARINFO?
Post 04 Mar 2013, 16:26
View user's profile Send private message Reply with quote
dv4-fa



Joined: 08 Feb 2013
Posts: 14
dv4-fa
Fixed it. The menubarinfo struct has two bool variables which i defined as dwords. The function failed because my struct was four bytes too long.
Post 05 Mar 2013, 11:15
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.