Hide maximize button |
Post Reply |
Author | |
Nick
Groupie Joined: 23 July 2012 Location: United Kingdom Status: Offline Points: 30 |
Post Options
Thanks(0)
Posted: 24 October 2012 at 1:20pm |
Commandbars OCX v15.2.1, Visual Basic 6, Windows XP. Using ribbonbars.
No problem getting my ribbonbar to work, but I need to hide the "maximize window" button as full-screen doesn't make sense for my application. There's a code snippet in the help file: 'This sample code illustrates how to hide the maximize MDI
button on the menu bar. CommandBars(1).SetFlags xtpFlagHideMaximizeBox, 0 but it doesn't work. The maximize button is still visible. I've tried the other flag options, but none of them seem to achieve anything - the minimize, maximize and close buttons are always visible no matter what combination of flags I use. I also tried CommandBars.ActiveMenuBar.SetFlags, with the same results (not surprising as it's the same thing really). Anyone tried this and got it to work? Nick.
|
|
Nick
Groupie Joined: 23 July 2012 Location: United Kingdom Status: Offline Points: 30 |
Post Options
Thanks(0)
|
further info: I realised that this code snippet is probably for the MDI buttons on a child form in an MDI application. But I have an SDI application. It seems that the enabled and disabled maximize buttons on the themed form look the same.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |