Sometime back my boss asked me to write a test application for a layout manager. This test application was for testing layout manager on a property sheet! Hmm so property sheet cannot be resized even if you modify the style of a property sheet. Well the reason why it can’t be resized is because SC_SIZE […]
Continue reading…
Posts tagged with 'GetSystemMenu'
How to disable close button on window caption bar?
This is how we do it: [sourcecode language=’cpp’]CMenu *pMenu = GetSystemMenu(FALSE); pMenu->RemoveMenu(SC_CLOSE, MF_BYCOMMAND);[/sourcecode] Yup done!
Continue reading…
Creating an unmovable dialog!
Just try this from OnInitDialog, this trick will make any window unmovable. [sourcecode language=’cpp’]CMenu* pSysMenu = GetSystemMenu(FALSE); pSysMenu->RemoveMenu(SC_MOVE, MF_BYCOMMAND);[/sourcecode] Lol lol now it’s not moving. Ah no!!! Now tell me how can I make it movable again? Lol the funniest question of the century…ROTFL. 🙂
Continue reading…