You don't need to call SHCreateMenuBar() as FWPPC does it automatically. It seems as something has changed in Windows CE 6. We are testing this now: https://social.msdn.microsoft.com/Forums/expression/en-US/54f8233f-fc57-48eb-a7e1-3405ec4266dc/shcreatemenubar-fails-in-windows-mobile-...
Cristobal, some compiler Errors in menudraw.c: You must calculate the error-linenumber -9 as i compile with #pragma begindump! Warnung W8004 C:\\prg_allgemein\\menudraw.prg 1699: 'nPos' wurde ein Wert zugewiesen, der nie verwendet wird in Funktion FwSelectedItem(tagDRAWITEMSTRUCT *,HMENU__ *,int,lon...
... properly initializing l2007 and l2010 for submenus, so this is the right code: static function ResBuild( oMenu ) ... if ( hSubMenu := GetSubMenu( hMenu, n - 1 ) ) != 0 oSubMenu = TMenu() oSubMenu:l2007 = oMenu:l2007 // new oSubMenu:l2010 = oMenu:l2010 // new oSubMenu:hMenu = hSubMenu oSubMenu:lSysMenu ...
Hello, is it possible to reactivate a menu-item after it is disabled using RemoveMenu( ... ? The system-exit-button is disabled using : hMenu := GetSystemMenu( oWinDlg:hWnd, .F. ) nCount := GetMItemCount( hMenu ) RemoveMenu( hMenu, nCount-1, nOR( 1024 ) ) how to activate X again at runtime ...
... en la creación del ::aKeyCon, y no lo muestro como código porque no se muestra el mensaje function menuPrincipal local /*oMenu, */xMenu, nLen, hMenu, cCont local self := qSelf() ::aKeyCon := { ; // Lista de funciones programables "TIPO" => " " , "x"- ...
aItems tiene las opciones del menú, pero no se si todas caben en un solo renglón y hMenu no me dio la información wndHeight(), supongo que es porque no es ventana.