Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How disable docking pane change size
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How disable docking pane change size

 Post Reply Post Reply
Author
Message
stephen_hyc View Drop Down
Newbie
Newbie


Joined: 27 January 2005
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote stephen_hyc Quote  Post ReplyReply Direct Link To This Post Topic: How disable docking pane change size
    Posted: 02 February 2005 at 1:01am

how to make docking pane disable to change its size.I mean to fix its size.

Back to Top
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 516
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post Posted: 02 February 2005 at 2:45am
Hi,

Pane send a Notify to MainFrame
LRESULT CMainFrame::OnDockingPaneNotify(WPARAM wParam, LPARAM lParam)
here you can handle the action
    if (wParam == XTP_DPN_ACTION)
        {
        XTP_DOCKINGPANE_ACTION* pAction = (XTP_DOCKINGPANE_ACTION*)lParam;
        switch(pAction->action)
            {
            case xtpPaneActionClosing:
            case xtpPaneActionClosed:
                    pAction->bCancel = TRUE;
                break;
            }
        return TRUE;
        }

Test it for sizeing, i'm not realy sure.

  Jimmy

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 02 February 2005 at 4:29am
See latest Pane sample
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
stephen_hyc View Drop Down
Newbie
Newbie


Joined: 27 January 2005
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote stephen_hyc Quote  Post ReplyReply Direct Link To This Post Posted: 02 February 2005 at 7:25pm
can you give me a link. I can't find the solution from any sample existed.
Back to Top
stephen_hyc View Drop Down
Newbie
Newbie


Joined: 27 January 2005
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote stephen_hyc Quote  Post ReplyReply Direct Link To This Post Posted: 02 February 2005 at 7:38pm
i see the sample.but after you hide the pane and then make it show again, you will find it can be resized again . how to deal with it.
Back to Top
stephen_hyc View Drop Down
Newbie
Newbie


Joined: 27 January 2005
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote stephen_hyc Quote  Post ReplyReply Direct Link To This Post Posted: 16 February 2005 at 10:30pm
i mean in the state of hide , how can i make the docking pane unable to resize.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.