Click here to Skip to main content
15,891,951 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Disable toolbar button (easy?) Pin
Michael Dunn15-Sep-02 11:09
sitebuilderMichael Dunn15-Sep-02 11:09 
GeneralRe: Disable toolbar button (easy?) Pin
FlyingWren15-Sep-02 15:28
FlyingWren15-Sep-02 15:28 
GeneralRe: Disable toolbar button (easy?) Pin
Michael Dunn15-Sep-02 15:58
sitebuilderMichael Dunn15-Sep-02 15:58 
GeneralDetecting modal loop Pin
Ravi Bhavnani15-Sep-02 9:59
professionalRavi Bhavnani15-Sep-02 9:59 
GeneralRe: Detecting modal loop Pin
Michael Dunn15-Sep-02 11:12
sitebuilderMichael Dunn15-Sep-02 11:12 
GeneralRe: Detecting modal loop Pin
Ravi Bhavnani15-Sep-02 11:42
professionalRavi Bhavnani15-Sep-02 11:42 
GeneralExcel Like Tab Pin
insanely42015-Sep-02 9:09
insanely42015-Sep-02 9:09 
GeneralRe: Excel Like Tab Pin
JohnnyG15-Sep-02 10:34
JohnnyG15-Sep-02 10:34 
I know this is MFC but the extended styles should apply for MFC and Win32 API. I'm not sure what the Excel like tabs are like but this style makes buttons out of the tabs. Is that what you're looking for?

m_pTabCtrl = new CMyTabCtrl;
CRect cltRect;
GetClientRect(&cltRect); // CRect(0,0, 370, 600)
m_pTabCtrl->Create(WS_CHILD|WS_VISIBLE | TCS_BUTTONS | TCS_FLATBUTTONS, cltRect, this, IDC_TAB1);
DWORD dwExtStyle = m_pTabCtrl->GetExtendedStyle();
m_pTabCtrl->SetExtendedStyle(dwExtStyle | TCS_EX_FLATSEPARATORS);
m_pTabCtrl->ShowWindow(true);
TC_ITEM TabCtrlItem;
TabCtrlItem.mask = TCIF_TEXT;
TabCtrlItem.iImage = -1;
for(i = gSites.size(); i > 0; i--)
{
 TabCtrlItem.pszText = gSites[i-1].GetId();
 m_pTabCtrl->InsertItem( 0, &TabCtrlItem );
}

m_pTabCtrl->SetCurSel(0);

QuestionUpdate MSDAC or JET ??? Pin
Hadi Rezaee15-Sep-02 9:00
Hadi Rezaee15-Sep-02 9:00 
AnswerRe: Update MSDAC or JET ??? Pin
Michael P Butler15-Sep-02 9:54
Michael P Butler15-Sep-02 9:54 
GeneralRe: Update MSDAC or JET ??? Pin
Hadi Rezaee15-Sep-02 10:35
Hadi Rezaee15-Sep-02 10:35 
AnswerRe: Update MSDAC or JET ??? Pin
Pavel Klocek15-Sep-02 19:03
Pavel Klocek15-Sep-02 19:03 
GeneralRe: Update MSDAC or JET ??? Pin
Hadi Rezaee16-Sep-02 22:06
Hadi Rezaee16-Sep-02 22:06 
GeneralRe: Update MSDAC or JET ??? Pin
Pavel Klocek17-Sep-02 6:22
Pavel Klocek17-Sep-02 6:22 
GeneralProblem with float ( differnce between float and integer) Pin
CHEICKNA TRAORE15-Sep-02 8:56
CHEICKNA TRAORE15-Sep-02 8:56 
GeneralRe: Problem with float ( differnce between float and integer) Pin
Hadi Rezaee15-Sep-02 9:05
Hadi Rezaee15-Sep-02 9:05 
GeneralRe: Problem with float ( differnce between float and integer) Pin
Pavel Klocek15-Sep-02 19:06
Pavel Klocek15-Sep-02 19:06 
GeneralGetting ADO version ! Pin
Hadi Rezaee15-Sep-02 8:44
Hadi Rezaee15-Sep-02 8:44 
GeneralRegistering DLLs or ActiveX !!! Pin
Hadi Rezaee15-Sep-02 8:32
Hadi Rezaee15-Sep-02 8:32 
GeneralRe: Registering DLLs or ActiveX !!! Pin
Dave Bryant15-Sep-02 16:09
Dave Bryant15-Sep-02 16:09 
GeneralRe: Registering DLLs or ActiveX !!! Pin
Hadi Rezaee16-Sep-02 22:09
Hadi Rezaee16-Sep-02 22:09 
GeneralUsing Dialog Box in DLL Pin
Atlence15-Sep-02 7:36
Atlence15-Sep-02 7:36 
GeneralRe: Using Dialog Box in DLL Pin
Michael P Butler15-Sep-02 9:58
Michael P Butler15-Sep-02 9:58 
GeneralRe: Using Dialog Box in DLL Pin
Mike Nordell16-Sep-02 0:24
Mike Nordell16-Sep-02 0:24 
QuestionWhere can I find the registry key for the path of the current WebBrowser / EmailReader? Pin
Ștefan-Mihai MOGA15-Sep-02 6:14
professionalȘtefan-Mihai MOGA15-Sep-02 6:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.