![]() |
XTP_ID_WINDOWLIST |
Post Reply ![]() |
Author | |
cj_user ![]() Newbie ![]() Joined: 14 August 2006 Status: Offline Points: 23 |
![]() ![]() ![]() ![]() ![]() Posted: 15 August 2006 at 12:42pm |
XtremeCommandBars::ICommandBarControlPtr spItem = spMenu->Add( XtremeCommandBars::xtpControlButton, _variant_t( XtremeCommandBars::XTP_ID_WINDOWLIST ), _bstr_t( "Windows List" )); spItem->Style = XtremeCommandBars::xtpButtonAutomatic; spItem->BeginGroup = true; ====
Using MDI Win32/ATL
Tried the code above but I didnt see any windows enumeration. Just an ordinary menu item with caption "Windows List".
Anything I missed?
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Just tried in WTL sample:
XtremeCommandBars::ICommandBarPopupPtr popup = m_spCommandBars->ActiveMenuBar->Controls->Item[1];
popup->CommandBar->Controls->Add( XtremeCommandBars::xtpControlButton, _variant_t( (long)XtremeCommandBars::XTP_ID_WINDOWLIST ), _bstr_t( "Windows List" )); works as expected.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
cj_user ![]() Newbie ![]() Joined: 14 August 2006 Status: Offline Points: 23 |
![]() ![]() ![]() ![]() ![]() |
Its legacy code. The windows are created using Win32. Not ATL/WTL. I wonder if that has an effect.
Anyway, what is the requirement for the XTP_ID_WINDOWLIST to work? I attached the toolbar to the frame window created during WM_CREATE.
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
this control try to find "MDIClient" child window. Check with Spi++ that class name for MDI Client is "MDIClient"
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
cj_user ![]() Newbie ![]() Joined: 14 August 2006 Status: Offline Points: 23 |
![]() ![]() ![]() ![]() ![]() |
Hi Oleg -- can the name be overriden in the codejock active-x?
|
|
![]() |
|
cj_user ![]() Newbie ![]() Joined: 14 August 2006 Status: Offline Points: 23 |
![]() ![]() ![]() ![]() ![]() |
Ok im lost now -- i tried making the MDI window as MDIClient but it still didnt get the child windows.
I think it is because it is hidden by a window manager that provides tabbing although the windows (that I expect to be on the windows list) are still child of the MDIClient.
From Spy -- the child windows that I have under MDIClient cannot be highlighted whereas in the WTLSample -- the child windows under MDIClient can be highlighted.
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hello,
try create new application, repeat all your code regarding CommandBars/Child and check if it works. If not, attach it here I will show where problem.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
cj_user ![]() Newbie ![]() Joined: 14 August 2006 Status: Offline Points: 23 |
![]() ![]() ![]() ![]() ![]() |
Hi -- how do I attach a zip file or how do i send you the project?
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
In the bottom there is additonal "Post reply" button (near "new topic") press it and in toolbar choose upload file.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
cj_user ![]() Newbie ![]() Joined: 14 August 2006 Status: Offline Points: 23 |
![]() ![]() ![]() ![]() ![]() |
Hmm -- I dont see "Upload file". Only Insert Hyperlink and Upload Image. All asking for a hyperlinks so I dont think this will work: |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
File upload button goes after Inser Hyperlink.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
right, sorry, it was for Admins only. Please try again.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
cj_user ![]() Newbie ![]() Joined: 14 August 2006 Status: Offline Points: 23 |
![]() ![]() ![]() ![]() ![]() |
Hi Oleg/Support -- any updates?
Thanks
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Add line in case WM_CREATE:
ccs.idFirstChild = ATL_IDM_FIRST_MDICHILD; I recommend you change architecture to use WTL, same as in our sample. |
|
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 |