Link to home
Start Free TrialLog in
Avatar of addicktz
addicktz

asked on

Removing only the X from a windows form

?
SOLUTION
Avatar of Alexandre Simões
Alexandre Simões
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You can not remove 'X' button but yes you can disable the 'X' button so user wouldn't be able to click it. If that's what you are looking for then let me know.

Jatinder
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
oops, that example will just disable the X... to remove it you'd use

             RemoveMenu(hMenu, i, MF_BYPOSITION)