From: boca4711 <boc...@us...> - 2004-10-20 16:33:46
|
Update of /cvsroot/anyedit/AnyEditToolkit/GuiLib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12456/GuiLib Modified Files: GuiTabbed.cpp GuiTabbed.h Log Message: - Implemented OnScrollClose Index: GuiTabbed.cpp =================================================================== RCS file: /cvsroot/anyedit/AnyEditToolkit/GuiLib/GuiTabbed.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** GuiTabbed.cpp 15 Oct 2004 14:01:52 -0000 1.5 --- GuiTabbed.cpp 20 Oct 2004 16:33:33 -0000 1.6 *************** *** 21,26 **** ****************************************************************************/ - - #include "stdafx.h" #include "guitabbed.h" --- 21,24 ---- *************** *** 33,36 **** --- 31,35 ---- #define IDD_COMBOBOX 0x889 + // #define countof(array) (sizeof(array)/sizeof(array[0])) CGuiTabbed::CGuiTabbed(void) *************** *** 323,326 **** --- 322,326 ---- } dc->DrawText(ctb->lpMsg,m_rectTabAux,DT_SINGLELINE|DT_CENTER|DT_VCENTER); + CToolTip.SetToolRect(this, iCont+1, mrt); if (iCont !=m_iSelectTab) *************** *** 392,396 **** Drawtabs(&dc); //RecalLayout(); - } --- 392,395 ---- *************** *** 403,412 **** } void CGuiTabbed::OnScrollClose() { ! //no es nuestro problema lo debe manejar la clase derivada } - int CGuiTabbed::OnCreate(LPCREATESTRUCT lpCreateStruct) { --- 402,412 ---- } + /// Close current window void CGuiTabbed::OnScrollClose() { ! CWnd* pWnd = GetNumWnd(GetCurtab()); ! pWnd->SendMessage(WM_CLOSE); } int CGuiTabbed::OnCreate(LPCREATESTRUCT lpCreateStruct) { *************** *** 487,489 **** return TRUE; ! }*/ \ No newline at end of file --- 487,489 ---- return TRUE; ! }*/ Index: GuiTabbed.h =================================================================== RCS file: /cvsroot/anyedit/AnyEditToolkit/GuiLib/GuiTabbed.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** GuiTabbed.h 15 Oct 2004 14:01:52 -0000 1.2 --- GuiTabbed.h 20 Oct 2004 16:33:33 -0000 1.3 *************** *** 38,41 **** --- 38,43 ---- int m_nDif; ExtTab m_ExtTab; + + public: CGuiTabbed(void); |