Resizing Property Grid |
Post Reply |
Author | |
MLatimer
Newbie Joined: 20 June 2005 Location: United Kingdom Status: Offline Points: 9 |
Post Options
Thanks(0)
Posted: 02 September 2005 at 3:14am |
We are creating the property grid in the a CXTResizeDialog as you do in the samples. Namely:
OnInitDialog: SetResize(IDC_PROPERTY_GRID, SZ_TOP_LEFT, SZ_BOTTOM_RIGHT); // get the size of the place holder, this will be used when creating the grid. CRect rc; m_wndPlaceHolder.GetWindowRect( &rc ); ScreenToClient( &rc ); // create the property grid. if ( m_wndPropertyGrid.Create( rc, this, IDC_PROPERTY_GRID ) ) But when the dialog resizes, the property grid does not. What actions should we take where to resize the property gid |
|
Barto
Groupie Joined: 27 February 2005 Location: Germany Status: Offline Points: 60 |
Post Options
Thanks(0)
|
my code looks like this and works fine: BOOL CKeyboardDlg::OnInitDialog() CKeyboard::Backup(); // get the size of the place holder, this will be used when creating the grid. GetDlgItem(IDC_GRID)->DestroyWindow(); // create the property grid. FillGrid(); SetResize(IDC_GRID, SZ_TOP_LEFT, SZ_BOTTOM_RIGHT); // Load window placement
|
|
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 |