Disable drag in feature over a CDockablePane instance

Intrebari legate de programarea cu biblioteci precum MFC, ATL, WTL si GDI+.
Post Reply
0ptr
Membru
Membru
Posts: 71
Joined: 01 Feb 2011, 23:27
Judet: Ilfov

Disable drag in feature over a CDockablePane instance

Post by 0ptr » 01 Oct 2012, 18:24

Am un proiect VS2010 MDI cu doua splittere. Unul din splittere are un view de derivat din CFormView iar in acest view creez o instanta CPropsWnd derivata din CDockablePane iar pe acesta fereastra creez un CMFCPropertyGridCtrl.

In momentul in care selectez bara de propietati beneficiez de o caracteristica a obiectelor de tip CDockablePane adica agatarea in alte zone.
As dorii sa anulez cumva acest feature de mutare a fereastrei mele de propietati fara a strica arhitectura data. http://i.imgur.com/BWRAG.png
Se poate restrictiona aceast feature si arhitectura data sa-mi ramana?

O alternativa ar fi sa mut ce am in CPropsWnd direct in CPropsView.
dockingTest.zip
(163.53 KiB) Downloaded 244 times



User avatar
Silviu Ardelean
Senior
Senior
Posts: 1175
Joined: 12 Jul 2007, 09:22
Judet: Timiş
Location: Timisoara
Contact:

Re: Disable drag in feature over a CDockablePane instance

Post by Silviu Ardelean » 02 Oct 2012, 16:51

Ce zici daca muti tot ce tine de grid in CPropsView si scoti de tot din ecuatie CPropsWnd?
dockingTest.zip
(164.51 KiB) Downloaded 241 times

0ptr
Membru
Membru
Posts: 71
Joined: 01 Feb 2011, 23:27
Judet: Ilfov

Re: Disable drag in feature over a CDockablePane instance

Post by 0ptr » 02 Oct 2012, 20:07

Silviu Ardelean wrote:Ce zici daca muti tot ce tine de grid in CPropsView si scoti de tot din ecuatie CPropsWnd?
Solutia implica ceva transpiratie din partea mea pe proiectul real dar mi se pare o solutie rezonabila. :thumbup: Multumesc!
Raman deschis si la alte solutii.

Post Reply