Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » To add a button in tab Collapse All
Subject Author Date
anil vyas Jan 1, 2008 - 3:22 AM

I have an MDI application with tab.i want to add button in tab so that when i click over button new document window opens.
How is it possible?Waiting for your early reply.

Technical Support Jan 9, 2008 - 6:15 AM

It is possible but it requires some effort. It depends on where this button should be. Is it an empty tab like in Internet Explorer 7 or just a button on the left of tab window? Here is a sample project that illustrates how to add a custom tab button to an MDI tab. When clicking this button the MDI windows dialog is shown but you can change this behavior. The button is painted in the CMainFrame::CExtMyTabWnd::OnTabWndDrawButton() method and you can modify this too.