I try to create a toolbar at the middle of my dilaog window (as as matter of fact it supposed to replace a button). I wrote something like this (IDC_STATIC_FOR_TOOLBAR ia a static control at the middel of dilaog):
m_ToolBar = new CToolBarCtrl;
m_ToolBar->Create(WS_CHILD|WS_VISIBLE|WS_BORDER|TBSTYLE_FLAT, StaticRect, this, 0);
//Setup image list
My problem is that the toolbar allways appears at the left-up corner of a dilaog (0,0). How I put it at some other place of my dilaog ?
Maybe be I need to evaluate the actual size of my toolbar, but how I do it ?