![]() |
Adding a Toolbar to a Dialog |
Post Reply ![]() |
Author | |
Wolfgang ![]() Newbie ![]() Joined: 01 December 2003 Status: Offline Points: 36 |
![]() ![]() ![]() ![]() ![]() Posted: 16 September 2004 at 3:32am |
Hi! This time a simple question, i want to add an CXTPToolbar to an Dialog, which is quite easy, but I need it on the right side of the dialog. How must I insert and initialize the CXTPDialog therefore? Thanx in advance Wolfgang |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
class CRightToolBar : public CXTPToolBar BEGIN_MESSAGE_MAP(CRightToolBar, CXTPToolBar) LRESULT CRightToolBar::OnSizeParent(WPARAM, LPARAM lParam) if (GetStyle() & WS_VISIBLE) CSize sizeAvail = rect.Size(); // get maximum requested size if (lpLayout->hDWP == NULL) dwMode &= ~LM_COMMIT; CSize size = CalcDockingLayout(32000, dwMode); size.cx = min(size.cx, sizeAvail.cx); lpLayout->sizeTotal.cy += size.cy; rect.left = rect.right - size.cx; // only resize the window if doing layout and not just rect query |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |