Announcement

Collapse
No announcement yet.

How to DISABLE the MAXIMIZE option in a menu

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

  • Ivan Iraola
    replied
    ok...thank you very much.

    ------------------

    Leave a comment:


  • George Bleck
    replied
    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

    Leave a comment:


  • Ivan Iraola
    started a topic How to DISABLE the MAXIMIZE option in a menu

    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?

    ------------------
Working...
X