|
|
Comments and Discussions
|
|
 |

|
the pch file is missing. please fix !
thanks,
Shubha Ramani
shubha ramani
shubharamani@yahoo.com
|
|
|
|

|
Turn off use of precompiled headers.
|
|
|
|

|
It's Very good Code,I using These Code in my new project,I showed derivation of these code in my project.Thanks you!
I'm Chinese Programmer.My name is Jianyong.
|
|
|
|

|
This code was also usefull to me,
but if u know how to use the CScrollView
in MDI with base class as CView.
I basically want to display some data
to the user with scrolling capability
but there is and error as the new view
i have crated is a Child to the main
window , an assertion is displayed.
Thanking you
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|

|
Whit this new update the buttons on the controlbar look like a ordinary tab control. In the previous version it looked like plain buttons on a controlbar.
I want the old looking. How do i do that?
|
|
|
|

|
Hello,
Nothing changed. From the Demo menu select "Demo" to display a dialog box. Play with the "View tab button style" you will see how to set all the styles.
The previews version has the "Buttons" and "Flat Buttons" as the default style. The current version has "Normal" as the default style.
If you still have problem, let me know.
Best regards,
Paul.
Jesus Christ is LOVE! Please tell somebody.
|
|
|
|

|
Hi:
I find a bug in the CTabCtrl.When you press "Ctrl+N" to create many views,then close one by one from the end, you will see the drawing of the ctabctrl is not correct.Maybe this is a bug of CTabCtrl, and do you have any idea ?
thanks
benben
|
|
|
|

|
Please can you send me a screenshot of the wrong tab drawing. I am trying to reproduce the bug but still could not get it.
Best regards,
Paul.
Jesus Christ is LOVE! Please tell somebody.
|
|
|
|

|
Open up as many windows that you get the scroll button, which is really a msctls_updown32 control. Resize your window so you get your last view under msctls_updown32 button and also maximaze the tab window by double clicking on title bar. Now start hitting the "x" to close tab from the last, you will see the problem with CTabCtrl that it does not update all the tabs rather the control bar is appeared empty but if you click on comtrol bar area then it updates that tab only. Its a bug in CTabCtrl Microsoft needs to be informed. If some one knows the solution please drop me email. Thanks
|
|
|
|

|
I reproduced the bug, I think you can scroll the tab when it's invisible.
Take the code for scrolling the tab control.
// Get the up-down (spin) control that is associated with the tab control
// and which contains scroll position information.
if( !m_pSpinCtrl )
{
CWnd * pWnd = FindWindowEx( GetSafeHwnd(), 0, _T("msctls_updown32"), 0 );
if( pWnd )
{
// DevNote: It may be somewhat of an overkill to use the MFC version
// of the CSpinButtonCtrl since were actually only using it
// for retrieving the current scroll position (GetPos). A simple
// HWND could have been enough.
m_pSpinCtrl = new CSpinButtonCtrl;
m_pSpinCtrl->Attach(pWnd->GetSafeHwnd());
}
}
CRect rect;
GetClientRect(&rect);
// Examine whether we should scroll left...
if( point.x < rect.left && m_pSpinCtrl )
{
int nPos = LOWORD(m_pSpinCtrl->GetPos());
if( nPos > 0 )
{
InvalidateRect(&m_InsertPosRect,false);
ZeroMemory(&m_InsertPosRect,sizeof(m_InsertPosRect));
SendMessage(WM_HSCROLL,MAKEWPARAM(SB_THUMBPOSITION,nPos-1),0);
}
}
// Examine whether we should scroll right...
if( point.x > rect.right && m_pSpinCtrl && m_pSpinCtrl->IsWindowVisible())
{
InvalidateRect(&m_InsertPosRect,false);
ZeroMemory(&m_InsertPosRect,sizeof(m_InsertPosRect));
int nPos = LOWORD(m_pSpinCtrl->GetPos());
SendMessage(WM_HSCROLL,MAKEWPARAM(SB_THUMBPOSITION,nPos+1),0);
}
original code link is http://www.suodenjoki.dk/us/productions/articles/dragdroptab.htm#Scrolling[^]
|
|
|
|
 |
|
|
General News Suggestion Question Bug Answer Joke Rant Admin
|
A dockable bar containing a tabbed list of open windows
| Type | Article |
| Licence | Public Domain |
| First Posted | 31 Jan 2000 |
| Views | 194,170 |
| Bookmarked | 78 times |
|
|