Hi All,
Recently i migrated my project to VS2010 from VS2005 post migration I am not able to see the windows properly.Earlier tool bar and command bar was alligned in the same line but now the Windows appear to be distorted and has background window image Coomand BAr and tool bar is overlapped . I am using WTL71 libraries.Below is the some lines of code
LRESULT CMainFrame::OnCreate(UINT , WPARAM , LPARAM , BOOL & )
{
::hFrameWnd = m_hWnd;
HWND hWndCmdBar = m_CmdBar.Create(m_hWnd, rcDefault, NULL, ATL_SIMPLE_CMDBAR_PANE_STYLE);
m_CmdBar.AttachMenu(GetMenu());
m_CmdBar.LoadImages(IDR_MAINFRAME);
SetMenu(NULL);
HWND hWndToolBar = CreateSimpleToolBarCtrl(m_hWnd, IDR_MAINFRAME, FALSE, ATL_SIMPLE_TOOLBAR_PANE_STYLE);
CreateSimpleReBar(ATL_SIMPLE_REBAR_NOBORDER_STYLE);
CToolBarCtrl Toolbar(hWndCmdBar);
int nBtnCount = Toolbar.GetButtonCount();
RECT ItemRect;
Toolbar.GetItemRect(nBtnCount - 1, &ItemRect);
int cxBandWidth = ItemRect.right + BANDHEADERSIZE;
AddSimpleReBarBand(hWndCmdBar, 0, FALSE, cxBandWidth);
AddSimpleReBarBand(hWndToolBar, 0, FALSE);
CreateSimpleStatusBar();
RECT rect = { 0, 0, 1, 1 };
m_hWndClient = m_wndTSheetCtrl.Create(m_hWnd, rect, NULL,
Does ATL_SIMPLE_CMDBAR_PANE_STYLE and ATL_SIMPLE_TOOLBAR_PANE_STYLE has some issues in VS2010 ?
Please advise.
Thank you.