The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: DrPepUr on April 11, 2008, 05:54:57 AM

Title: MENUINFO ??
Post by: DrPepUr on April 11, 2008, 05:54:57 AM
I have wore google out, I can not find nothing on this. I am trying to change the BGcolor of a menu.

I have done this in vb6 and was trying to sorta go off that. the problem I am having is with the MENUINFO structure

ex

.code
start:
Dlgproc proc hWnd:DWORD,uMsg:DWORD,wParama:DWORD,lParama:DWORD
Local mi:MENUINFO

DlgProc endp
end start

I have not tried to put anything in to the structure(nor is this my whole dialog process) but I get a compile error....

error A2006: undefined symbol : MENUINFO
error A2195: parameter or local cannot have void type

I am pretty confident I can figure out the rest if I could just get past this. I have searched everywhere thinking someone else may have had this problem before but to no avail.

Thanks in advance ,

DrPepUr
Title: Re: MENUINFO ??
Post by: hutch-- on April 11, 2008, 06:18:28 AM
Hi Doc,

Welcome on board.

Put this in the start of your app to see if it does the job.


MENUINFO STRUCT
  cbSize          DWORD ?
  fMask           DWORD ?
  dwStyle         DWORD ?
  cyMax           DWORD ?
  hbrBack         DWORD ?
  dwContextHelpID DWORD ?
  dwMenuData      DWORD ?
MENUINFO ENDS
Title: Re: MENUINFO ??
Post by: DrPepUr on April 11, 2008, 07:05:09 AM
Thanks hutch that was exactly what I was looking for, got it working in 2.5 ...... hard to belive I couldnt find that nowhere else.........none the less thanks again,


DrPepUr