1 // TabBrowser.cpp : main source file for TabBrowser.exe
15 #include "BrowserView.h"
16 #include "CustomTabView.h"
17 #include "AddressCombo.h"
19 #include "WindowsDlg.h"
25 int Run(LPTSTR
/*lpstrCmdLine*/ = NULL
, int nCmdShow
= SW_SHOWDEFAULT
)
28 _Module
.AddMessageLoop(&theLoop
);
32 if(wndMain
.CreateEx() == NULL
)
34 ATLTRACE(_T("Main window creation failed!\n"));
38 wndMain
.ShowWindow(nCmdShow
);
40 int nRet
= theLoop
.Run();
42 _Module
.RemoveMessageLoop();
46 int WINAPI
_tWinMain(HINSTANCE hInstance
, HINSTANCE
/*hPrevInstance*/, LPTSTR lpstrCmdLine
, int nCmdShow
)
48 HRESULT hRes
= ::CoInitialize(NULL
);
49 ATLASSERT(SUCCEEDED(hRes
));
51 // this resolves ATL window thunking problem when Microsoft Layer for Unicode (MSLU) is used
52 ::DefWindowProc(NULL
, 0, 0, 0L);
54 AtlInitCommonControls(ICC_COOL_CLASSES
| ICC_BAR_CLASSES
| ICC_USEREX_CLASSES
);
56 hRes
= _Module
.Init(NULL
, hInstance
);
57 ATLASSERT(SUCCEEDED(hRes
));
61 int nRet
= Run(lpstrCmdLine
, nCmdShow
);