Please test this code, because any ways to show gripper no effect. I saw your sample ProfUIS_Controls but your sample code not workin in this situation
BOOL CtestDlg::OnInitDialog()
{
.....
//I create any CWnd object
m_cwnd.Create(NULL, NULL, AFX_WS_DEFAULT_VIEW,
CRect(0, 50, 300, 200),
this, -1, NULL);
//then create toolbar in it
m_wndToolBar.Create(NULL,m_cwnd->GetSafeHwnd(),AFX_IDW_DIALOGBAR,
WS_CHILD | WS_VISIBLE | CBRS_TOP | CBRS_GRIPPER |
CBRS_TOOLTIPS | CBRS_HIDE_INPLACE);
//add button for example
INT nCmdID = ID_TEST;
CString sToolBarBtnText("");
sToolBarBtnText.LoadString(nCmdID);
CExtCmdItem * p_cmd = g_CmdManager->CmdAllocPtr
(
g_CmdManager->ProfileNameFromWnd(GetSafeHwnd()),
nCmdID
);
ASSERT( p_cmd != NULL );
p_cmd->m_sToolbarText = sToolBarBtnText;
m_wndToolBar.InsertButton( -1, nCmdID, FALSE );
.....
}
Of course i call RepositionBars in Class of m_cwnd and there is no Gripper in this m_toolbar