News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

MENUINFO ??

Started by DrPepUr, April 11, 2008, 05:54:57 AM

Previous topic - Next topic

DrPepUr

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

hutch--

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
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

DrPepUr

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