Announcement

Collapse
No announcement yet.

How to DISABLE the MAXIMIZE option in a menu

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to DISABLE the MAXIMIZE option in a menu

    I have a little problem, When I add a ICON to my window, it gene
    rates a menu (minimize, move, etc) but I like to DISABLE the MAXIMIZE
    item...how is that possible?

    ------------------
    Ivan

    Uncle Droid (Android Apps)

  • #2
    Add this to your window initialization code... modifiy it as needed

    Code:
    'hDlg is the Window handle
    LOCAL lngSystemMenu AS LONG
    lngSystemMenu = GetSystemMenu( hDlg, 0 )
    RemoveMenu lngSystemMenu, %SC_SIZE, %MF_BYCOMMAND 'no resize
    RemoveMenu lngSystemMenu, %SC_CLOSE, %MF_BYCOMMAND 'no close
    RemoveMenu lngSystemMenu, %SC_MAXIMIZE, %MF_BYCOMMAND 'no maximize
    RemoveMenu lngSystemMenu, %SC_MINIMIZE, %MF_BYCOMMAND 'no minimize
    <b>George W. Bleck</b>
    <img src='http://www.blecktech.com/myemail.gif'>

    Comment


    • #3
      ok...thank you very much.

      ------------------
      Ivan

      Uncle Droid (Android Apps)

      Comment

      Working...
      X