I don't know what it is, but I really like this look. Is it possible with MaxGUI?:
Extern "Win32" Function LoadImageA:Int(hInst%,filename$z,typ%,desiredX%,desiredY%,fuLoad%) Function LoadBitmap:Int(hInstance,lpBitmapName$)="LoadBitmapA@8" Function SetMenuItemBitmaps:Int(hMenu,uPosition,uFlags,hBitmapUnchecked,hBitmapChecked)="SetMenuItemBitmaps@20" EndExtern w=400 h=300 style=WINDOW_TITLEBAR+WINDOW_RESIZABLE+WINDOW_STATUS+WINDOW_MENU window:tgadget=CreateWindow("Menu Icons",(ClientWidth(Desktop())-w)/2,(ClientHeight(Desktop())-h)/2,w,h,Null,style) root:TGadget=WindowMenu(window) menu:TGadget=CreateMenu("File",0,root) menuitem:TGadget=CreateMenu("Open...",69,menu) UpdateWindowMenu window hbitmap=LoadImageA(Null,AppDir$+"\test.bmp",0,0,0,$10) If hbitmap hmenu=QueryGadget(root,QUERY_HWND) If hmenu result=SetMenuItemBitmaps(hmenu,1,1024,hbitmap,hbitmap) If Not result Notify "SetMenuItemBitmaps() failed." Else Notify "Failed to retrieve menu handle." EndIf Else Notify "LoadImageA() failed." EndIf Repeat Select WaitEvent() Case EVENT_WINDOWCLOSE End EndSelect Forever
'checkmenu image change 'by Birdie Strict Extern "win32" Function LoadImage_( hInst, fName$z, uType, dx, dy, fuLoad ) = "LoadImageA@24" Function SetMenuItemBitmaps( hMenu, uPosition, uFlags, hBitUnChecked, hBitChecked ) = "SetMenuItemBitmaps@20" Function GetMenu( hWnd ) = "GetMenu@4" Function GetSubMenu( hMenu, pos ) = "GetSubMenu@8" EndExtern Local window:TGadget = CreateWindow("Test",0,0,640,480,Desktop(),WINDOW_MENU|WINDOW_TITLEBAR|WINDOW_STATUS) Local file:TGadget = CreateMenu("&File",1,WindowMenu(window)) Local open:TGadget = CreateMenu("Open",101,file) CreateMenu("Save",102,file) CreateMenu("Exit",199,file) Local edit:TGadget = CreateMenu("Edit",201,WindowMenu(window)) CreateMenu("Paste",202,edit) UpdateWindowMenu WindowMenu(window) Local bi = loadimage_( 0,CurrentDir()+"/logo.bmp",0,0,0,$10 ) Local mainmenu=GetMenu(WindowMenu(window).query(QUERY_HWND)) AddImage mainmenu, bi While WaitEvent() Select EventID() Case EVENT_WINDOWCLOSE End EndSelect Wend Function AddImage( root_menu, bitmap ) Local INDEX=0 Local sub_menu Local done = 0 Repeat sub_menu = GetSubMenu( root_menu, index ) If sub_menu AddImage sub_menu,bitmap EndIf If SetMenuItemBitmaps( root_menu, index, MF_BYPOSITION, bitmap, bitmap ) = 0 done = True EndIf index :+1 Until done EndFunction