How do I lock the splitter window so that user cannot move the divider line?

Ans: If you want to create a splitter window but do not wish to allow user to resize the panes, derive a class from CSplitterWnd. For this select Insert | New Class. Select ‘Class type’ as generic. Give the class name and enter name of base class as CSplitterWnd. Add the message handlers for the messages WM_LBUTTONDOWN, WM_MOUSEMOVE and WM_SETCURSOR. In these handlers call only the base class implementation. Define the object of this user-defined class in CMainFrame class instead of CSplitterWnd for creating the splitter windows.

Note that you will have to add the message map entries, declaration and definition of the handlers manually.

It's very calm over here, why not leave a comment?

Leave a Reply




Categories

UserOnline

Improve the web with Nofollow Reciprocity.

Powered by Yahoo! Answers